A little demo of live translation synchronization
A Pen by Riley Shaw on CodePen.
def assoc(_d, key, value): | |
from copy import deepcopy | |
d = deepcopy(_d) | |
d[key] = value | |
return d | |
def set_canada_as_country(band): | |
return assoc(band, 'country', "Canada") | |
def strip_punctuation_from_name(band): |
A little demo of live translation synchronization
A Pen by Riley Shaw on CodePen.
A Pen by Riley Shaw on CodePen.
How I like to think of myself..
A Pen by Riley Shaw on CodePen.
Takes a series of characters ('abcad') and a series of space-delimited words ('red blue green red redux') and checks if they match the same sequence.
Mega-Glorious Pattern Matcher Takes a series of characters ('abcad') and a series of non-space-delimited words ('redbluegreenredredux') and checks if they match the same sequence. Hardcore.
Updated version here, on GitHub here.
A Pen by Riley Shaw on CodePen.
.container | |
- for i in 1..16 | |
- for j in 1..256 | |
div class="l#{i}" | |
p.on ON | |
p OFF |
Generates a plot of total cycle depth for the Kaprekar Routine for the range [0, 10k). Also see the heavyweight 1M version here.
A Pen by Riley Shaw on CodePen.
Generates a plot of total cycle depth for the Kaprekar Routine for the range [0, 1M). Generation can take upwards of a minute and it will hang your tab while generating, so be patient...
Try the lightweight 10k version here.
A Pen by Riley Shaw on CodePen.
Generates an Ulam Spiral of prime numbers for the range (0, 998000].
A Pen by Riley Shaw on CodePen.
Generates an Ulam Spiral of total cycle depth for the Kaprekar Routine for the range [0, 998k].
Try the linear [0, 1M] version here.
A Pen by Riley Shaw on CodePen.