Skip to content

Instantly share code, notes, and snippets.

View karantan's full-sized avatar
💭
❤️✖️❓🤖

Gasper Vozel karantan

💭
❤️✖️❓🤖
View GitHub Profile
@karantan
karantan / problem.py
Last active February 24, 2017 15:37 — forked from Sorseg/problem.py
Mocking await calls in python 3.5 is a problem
async def some_coroutine():
await async.sleep(10.0)
await another_coroutine()
return 'test'
async def another_coroutine():
pass
@karantan
karantan / build-python-2.7.9.sh
Created February 1, 2016 07:22
upgrade Python 2.7.6 -> 2.7.9 on Ubuntu 14.04
#!/bin/sh
#
# Installs Python 2.7.9 on Ubuntu 14.04 to include security updates
# Run this script with superuser privileges.
#
BASEDEPS="build-essential python-pip"
BUILDDEPS="libbz2-dev \
libc6-dev \
libgdbm-dev \