Kieran Hunt
  • Member for 7 years
  • Last seen more than a month ago
Recreate an xkcd graph procedurally with your favorite plotting tool
5 votes

Python Makes use of the slightly cheat-y xkcd method in matplotlib: import numpy as np import matplotlib.pyplot as plt from scipy.ndimage.filters import gaussian_filter1d plt.xkcd() x = np....

View answer
Map a random number to pi
1 votes

Python, 147 bytes import math as m,random as r L=lambda t:[_ for _ in str(t)] p=L(m.pi) R=L(r.random()) A="" print R #subtracted from byte count for n in p: try:R.remove(n);A+=n except:A+='x' ...

View answer
Running length of the movie in a human readable format
0 votes

Python 2, 102 bytes a=int(raw_input().split()[0]);h=a/60;m=a%60;l="s\0";print"%s hour%s %s minute%s"%(h,l[h==1],m,l[m==1])

View answer