Skip to content

Instantly share code, notes, and snippets.

View mollymorphic's full-sized avatar

Molly mollymorphic

View GitHub Profile
@mollymorphic
mollymorphic / keybase.md
Created March 27, 2020 22:23
keybase.md

Keybase proof

I hereby claim:

  • I am mollymorphic on github.
  • I am mollymorphic (https://keybase.io/mollymorphic) on keybase.
  • I have a public key ASDZGW-PmooBivi7Z_YSCLfdepbV74W9XN2Pp2HfATiucQo

To claim this, I am signing this object:

@mollymorphic
mollymorphic / Bench.java
Last active August 29, 2015 14:01
D vs Java - some benchmarks comparing D and Java in allocating dynamically sized arrays
/**
Bench.java -
Allocation/Garbage collection benchmark for Java
*/
import java.util.ArrayList;
import java.util.Collections;
/**
*
* @author tommy
@mollymorphic
mollymorphic / fibs.js
Last active December 11, 2015 20:49
Clojuresque Fibs in JS.
function allfibs(end) {
var x = 0, y = 1, count = 1;
yield 1;
while (count++ < end) {
[x,y] = [y,x + y];
yield y;
}
}