Skip to content

Instantly share code, notes, and snippets.

View keitheis's full-sized avatar

Keith Yang keitheis

View GitHub Profile
@keitheis
keitheis / color_picker.py
Created June 25, 2012 02:59
A Sample Color Picker by Python
#!/usr/bin/python
import gtk, sys
def tohex(c):
#Convert to hex string
#little hack to fix bug
s = ['#',hex(int(c[0]*256))[2:].zfill(2),hex(int(c[1]*256))[2:].zfill(2),hex(int(c[2]*256))[2:].zfill(2)]
for item in enumerate(s):
if item[1]=='100':
s[item[0]]='ff'
print s
@keitheis
keitheis / gist:2382657
Created April 14, 2012 07:36
npm install ethercalc
% npm install ethercalc
npm http GET https://registry.npmjs.org/ethercalc
npm http 200 https://registry.npmjs.org/ethercalc
npm http GET https://registry.npmjs.org/ethercalc/-/ethercalc-0.20120408.192847.tgz
npm http 200 https://registry.npmjs.org/ethercalc/-/ethercalc-0.20120408.192847.tgz
npm http GET https://registry.npmjs.org/zappa
npm http GET https://registry.npmjs.org/redis
npm http GET https://registry.npmjs.org/uuid-pure
npm http GET https://registry.npmjs.org/node-uuid
npm http GET https://registry.npmjs.org/express