I hereby claim:
- I am aisipos on github.
- I am aisipos (https://keybase.io/aisipos) on keybase.
- I have a public key ASD-ZBCV-bWLgrbYByevZNFD5_2rMEunMnZnM3EGqtfgpgo
To claim this, I am signing this object:
import json | |
from functools import wraps | |
from flask import redirect, request, current_app | |
def support_jsonp(f): | |
"""Wraps JSONified output for JSONP""" | |
@wraps(f) | |
def decorated_function(*args, **kwargs): | |
callback = request.args.get('callback', False) | |
if callback: |
""" | |
An interactive HTTP server, starting a python debugger on each http request. | |
Set the value of "hr" to what you want the HTTP response to be, | |
and then type "c" to continue | |
Requires ipdb and bottle | |
""" | |
from bottle import * | |
import ipdb | |
@route('/favicon.ico') |
""" | |
A module to populate a DB schema using sqlalchemy for the problems on this webpage: | |
http://www.jitbit.com/news/181-jitbits-sql-interview-questions/ | |
Questions and my answers: | |
-- List employees (names) who have a bigger salary than their boss | |
select e.name from Employees as e | |
join Employees as b on e.BossId = b.EmployeeID | |
where e.Salary > b.Salary |
import logging | |
import inspect | |
from dataclasses import dataclass, field | |
from typing import List, ClassVar | |
import pytest | |
logging.basicConfig(level=logging.DEBUG) | |
logger = logging.getLogger('rose') |
namespace :db do | |
[ :migrate, :rollback ].each do |n| | |
namespace n do |migration_task| | |
original_task = migration_task.instance_variable_get("@scope").to_a.reverse.join ":" | |
[:with_sql, :to_sql ].each do |t| | |
desc "Run migration, and generated SQL" if t == :with_sql | |
desc "Generate migration SQL" if t == :to_sql |
import simplejson as json | |
import lxml | |
class objectJSONEncoder(json.JSONEncoder): | |
"""A specialized JSON encoder that can handle simple lxml objectify types | |
>>> from lxml import objectify | |
>>> obj = objectify.fromstring("<Book><price>1.50</price><author>W. Shakespeare</author></Book>") | |
>>> objectJSONEncoder().encode(obj) | |
'{"price": 1.5, "author": "W. Shakespeare"}' | |
""" |
I hereby claim:
To claim this, I am signing this object:
# npm mirroring, courtesy @jbuck and Mozilla. | |
# See https://github.com/jbuck/npm-readonly-mirror | |
curl npmrc.zeke.xxx >> .npmrc | |
git add .npmrc | |
git commit -m "mozilla .npmrc" | |
git push heroku master |
==> Downloading http://download.qt-project.org/official_releases/pyside/shiboken-1.2.1.tar.bz2 | |
Already downloaded: /Library/Caches/Homebrew/shiboken-1.2.1.tar.bz2 | |
==> Verifying shiboken-1.2.1.tar.bz2 checksum | |
tar xf /Library/Caches/Homebrew/shiboken-1.2.1.tar.bz2 | |
==> Patching | |
/usr/bin/patch -f -p1 -i 000-homebrew.diff | |
patching file ext/sparsehash/google/sparsehash/sparseconfig.h | |
brew: PYTHONPATH=/usr/local/Cellar/shiboken/1.2.1/lib/python2.7/site-packages:/usr/local/Cellar/shiboken/1.2.1/libexec/lib/python2.7/site-packages | |
==> cmake -DCMAKE_INSTALL_PREFIX=/usr/local/Cellar/shiboken/1.2.1 -DCMAKE_BUILD_TYPE=None -DCMAKE_FIND_FRAMEWORK=LAST -DCMAKE_VERBOSE_MAKEFILE=ON -Wno-dev -DBUILD_TESTS=ON -DPYTHON_INCLUDE_DIR='/usr/local/opt/python/Frameworks/Python.framework/Versions/2.7/Headers' -DPYTHON_LIBRARY='/usr/local/opt/python/Frameworks/Python.framework/Versions/2.7/lib/python2.7/config/libpython2.7.dylib' .. | |
-- The C compiler identification is Clang 5.0.0 |