Skip to content

Instantly share code, notes, and snippets.

#!/bin/bash
current_dir=$(cd $(dirname $0) && pwd)
export THEOS=/opt/theos
# clone theos.git
cd /opt
git clone git://github.com/DHowett/theos.git
# clone iphoneheaders.git
cd $THEOS
@tknhs
tknhs / permutations.py
Created November 26, 2013 16:46
順列生成
from itertools import permutations
[i for i in permutations(range(0, 2))]
@tknhs
tknhs / flatten.py
Created November 26, 2013 16:42
多次元配列を平坦化(python2.6以降.python3では廃止)
from compiler.ast import flatten
flatten([0, [1, 2], [3, 4, [5, 6]], 7])