Skip to content

Instantly share code, notes, and snippets.

View refnode's full-sized avatar
🎯
Focusing

Sven Wilhelm refnode

🎯
Focusing
View GitHub Profile
@refnode
refnode / buildout.cfg
Created December 19, 2012 20:10
buildout.cfg for mozilla/circus
## Installation notes for Debian/Ubuntu
## To use buildout you need some c-headerfiles.
## Simply call:
##
## $: wget http://www.python-distribute.org/bootstrap.py
## $: sudo apt-get install libzmq-dev python-dev
## $: python bootstrap.py
## $: bin/buildout
##
## Have fun with the examples
@refnode
refnode / gist:4181565
Created December 1, 2012 11:19
Check build deps for python-for-android
DEB_UBUNTU="build_essential zlib1g-dev cython"
# Check installation state of a debian package list.
# Return all missing packages.
function check_pkg_deb_installed() {
PKGS=$1
MISSING_PKGS=""
for PKG in $PKGS; do
CHECK=$(dpkg -s $PKG 2>&1)
if [ $? -eq 1 ]; then
@refnode
refnode / yt-tag
Created September 21, 2012 12:04
liquid template - youtube tag example
{% youtube youtube_video_id %}
@refnode
refnode / encoder_empty_text.patch
Created September 11, 2011 16:11
XML2Dict Patch for handling empty text, returned as None. NoneType has no String Methods
diff --git a/encoder.py b/encoder.py
index 9b4dc41..f5c1829 100644
--- a/encoder.py
+++ b/encoder.py
@@ -34,9 +34,12 @@ class XML2Dict(object):
ctag = child.tag
cattr
@refnode
refnode / buildout.cfg
Created August 23, 2011 15:59
sp_buildout
##
## buildout configuration file
##
## Project: springpython.context
## Generated: 2011-09-01
[buildout]
parts =
python
scripts