Skip to content

Instantly share code, notes, and snippets.

View mikeboers's full-sized avatar

Mike Boers mikeboers

View GitHub Profile
import re
from mako.template import Template
source = '''pre %{for i in range(10)}
${- i -}
%{- if i % 2 -}
-
%{- else -}
|
%{- endif -}
from __future__ import division
import random
import math
import hashlib
import hmac
def str_to_int(input):
out = 0
for c in input:
# encoding: utf8
from __future__ import print_function
import base64
import ast
def dumps(x):
if x in (True, False, None):
return repr(x)
t = type(x)