Skip to content

Instantly share code, notes, and snippets.

@rhettallain
rhettallain / space_agency_model.py
Created May 21, 2013 14:31
Orbital Motion to model the orbit (with thrust) in the iPhone app Space Agency
from visual import *
Earth=sphere(pos=vector(0,0,0), radius =1, material=materials.earth)
R=2.75 #orbita radius in terms of radius of the planet
GM=1.47 #GM as determined from the game
v=sqrt(GM/R) #starting speed for a circular orbit
rt=0.0338 #this is the acceleration due to the rocket
#sc is the spacecraft
@skenqbx
skenqbx / readme.markdown
Created September 23, 2012 22:22
parser speed comparison node_redis vs. node-redjs

Two instances of each parser are created. Each test is run 10 times for each parser instance. One test consists of 65536 replies in one buffer.

sum is the time in ns for parsing ALL 655360 replies.

mean is the time in ns for parsing e.g. ONE +OK\r\n reply.

65536 x +OK\r\n
@felixge
felixge / postverzollung.txt
Created May 4, 2012 13:33
Example for not wasting your time at the customs office
TO: zollamt-schoeneberg@zab-schoeneberg.bfinv.de (usually provided on the card you get)
Sehr geehrtes Zollamt,
am DD.MM.YYYY erhielt ich ein Schreiben über den Eingang einer Sendung bei der keine Rechnung angebracht war.
lfd. Nr: <NR>
Empfänger: <Name>, <Adresse>, <PLZ> <Ort>
Bei dem Paket handelt es sich um ein T-Shirt das mir geschenkt wurde da ich in meiner Freizeit kostenlose Software für die Integration mit einem Datenanalyse Dienst geschrieben habe (siehe http://support.metrics.librato.com/knowledgebase/articles/53548). Das T-Shirt ist vermutlich mit dem Logo des Dienstes bedruckt / hat keinen offiziellen Marktwert. Die Materialkosten sind wahrscheinlich ~20 EUR.