Skip to content

Instantly share code, notes, and snippets.

@kts
kts / multcoeff.py
Last active January 9, 2017 01:31
Python code to efficiently compute multinomial coefficients
"""
Compute multinomial coefficients iteratively.
Probably needs some more testing...
Example: the sum of 1000 6-sided dice:
$ time python multcoeff.py 6 1000 > out
Pascal's triangle:
@kts
kts / README.md
Last active December 23, 2015 22:59 — forked from mbostock/.block

Demo...

@kts
kts / index.html
Last active December 12, 2015 07:09
Testing world map
<!DOCTYPE html>
<meta charset="utf-8">
<style>
</style>
<button id="zoomin">Zoom in</button>
<button id="zoomout">Zoom out</button>
<script>