Profile cover photo
Profile photo
Miki Tebeka
140 followers -
A person (arguably)
A person (arguably)

140 followers
About
Miki's interests
View all
Miki's posts

Post has attachment
SQL Files as Attributes
I like to save SQL queries in .sql files. This way we get syntax highlighting, indentation and diffs on SQL changes are contained to the SQL files.  Here's a nice way to treat these files as regular attributes from Python.

Post has attachment
353Solutions - 2016 in Review
Happy new year! Let's see how  353solutions  did in 2016. We'll start with the numbers and then some insights and future goals. Numbers Total of 193 work days (days where customer were billed) Up 23 days from 2015 Out of 261 work days in 2016 Out of these 6...

Post has attachment
Automatically Running BigQuery Flows
At a current project we're using Google's BigQuery to crunch some petabyte scale data. We have several SQL scripts that we need to run in specific order. The below script detects the table dependencies and run the SQL scripts in order. As a bonus you can ru...

Post has attachment
Using built-in slice for indexing
At one place I consult I saw something like the following code: This is good and valid Python code, however we can use the slice built-in slice to do the same job. Also when you're writing your own _getitem_ consider that key might be a slice object.

Post has attachment
Weighted Rating
Notebook here .

Post has attachment
First Contact with Data
Notebook here .

Post has attachment
Simple Object Pools
Sometimes we need object pools to limit the number of resource consumed. The most common example is database connnections. In Go  we sometime use a buffered channel as a simple object pool. In Python, we can dome something similar with a Queue . Python's co...

Post has attachment
"Manual" Breakpoints in Go
When debugging, sometimes you need to set conditional breakpoints. This option is available both in gdb and delve . However sometimes when the condition is complicated, it's hard or even impossible to set it. A way around is to temporary write the condition...

Post has attachment
Generate Relation Diagram from GAE ndb Model
Working with GAE , we wanted to create relation diagram from out ndb model . By deferring the rendering to dot  and using Python's reflection this became an easy task. Some links are still missing since we're using ancestor queries , but this can be handled...

Post has attachment
Testing numpy Code

Wait while more posts are being loaded