Skip to content

Instantly share code, notes, and snippets.

@gsathya
gsathya / ff.md
Created July 6, 2014 01:54 — forked from paulrouget/ff.md
@gsathya
gsathya / k2.py
Created January 23, 2012 09:48 — forked from j605/k2.py
simple coding question
def change_base(n, b):
rem = ''
while n > 0:
rem += str((n % b))
n /= b
return rem[::-1]
def pal_base(n):
base = 2
while 1:
@gsathya
gsathya / tail.py
Created January 16, 2012 17:49 — forked from shadeslayer/tail.py
import sys
import linecache
import os
if os.path.isfile(sys.argv[1]):
try:
with open(sys.argv[1], 'r') as f:
content = f.readlines()
length = len(content)
except IOError as e:
@gsathya
gsathya / about.md
Created August 9, 2011 23:53 — forked from jasonrudolph/about.md
Programming Achievements: How to Level Up as a Developer