Skip to content

Instantly share code, notes, and snippets.

View L3viathan's full-sized avatar
🦊

Jonathan Oberländer L3viathan

🦊
View GitHub Profile
@L3viathan
L3viathan / SML quine
Last active August 29, 2015 14:01
Shortest SML quine I could come up with
(fn y=>(fn x=>(print(x^y^x^y))))(implode[chr(34)])"(fn y=>(fn x=>(print(x^y^x^y))))(implode[chr(34)])"
@L3viathan
L3viathan / wurstfact.js
Last active August 29, 2015 14:00
daily wurst fun fact, js edition (v1)
function pickRandomProperty(obj) {
// from http://stackoverflow.com/questions/2532218/pick-random-property-from-a-javascript-object
var result;
var count = 0;
for (var prop in obj)
if (Math.random() < 1/++count)
result = prop;
return result;
}