Skip to content

Instantly share code, notes, and snippets.

@wanderer
wanderer / osm2geo.js
Created April 3, 2012 17:52 — forked from tecoholic/osm2geo.js
OSM2GEO - A JS Converter to convert OSM to GeoJSON
/**************************************************************************
* OSM2GEO - OSM to GeoJSON converter
* OSM to GeoJSON converter takes in a .osm XML file as input and produces
* corresponding GeoJSON object.
*
* AUTHOR: P.Arunmozhi <aruntheguy@gmail.com>
* DATE : 26 / Nov / 2011
* LICENSE : WTFPL - Do What The Fuck You Want To Public License
* LICENSE URL: http://sam.zoy.org/wtfpl/
*
@wanderer
wanderer / gotham.py
Created August 23, 2012 06:20 — forked from jart/gotham.py
Gothic Poetry Generator
r"""
gotham
~~~~~~
Gothic Poetry Generator
"""
import sys
@wanderer
wanderer / gotham.py
Created August 23, 2012 06:20 — forked from jart/gotham.py
Gothic Poetry Generator
r"""
gotham
~~~~~~
Gothic Poetry Generator
"""
import sys
@wanderer
wanderer / gotham.py
Created August 23, 2012 06:21 — forked from jart/gotham.py
Gothic Poetry Generator
r"""
gotham
~~~~~~
Gothic Poetry Generator
"""
import sys
IN: lib/hooks/index
// Mix in middleware from blueprints
if(_.isUndefined(controller.find))
controller.find = Controller.find;
if(_.isUndefined(controller.create))
Controller.create = Controller.create;
if(_.isUndefined(controller.update))
controller.update = Controller.update;
if(_.isUndefined(controller.destroy))
@wanderer
wanderer / map.geojson
Created August 14, 2013 16:05
via:geojson.io
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
#!/bin/bash
# removes orphaned appledouble files
# by null_radix
DIR="/path/to/dir"
cd $DIR
for i in ./._*
do
FILE=${i:4}
"""
Compute discrete log modulo a prime p
In other words finds a x such that h=g^x in ℤp.
Implements the meet in the middle attack
author: mjbecze <mjbecze@gmail.com>
"""
import gmpy2
from gmpy2 import mpz
.node circle {
fill: #fff;
stroke: steelblue;
stroke-width: 1.5px;
}
.node {
font: 10px sans-serif;
}