Skip to content

Instantly share code, notes, and snippets.

View rai-shahnawaz's full-sized avatar
🎯
Focusing

Rai Shahnawaz Khan rai-shahnawaz

🎯
Focusing
View GitHub Profile
@reusee
reusee / py2php.py
Created June 20, 2011 16:49
Python to php translator, compile python script to php
import ast
from cStringIO import StringIO
import sys
INFSTR = '1e308'
def interleave(inter, f, seq):
seq = iter(seq)
try:
f(next(seq))