Idiom for generics on static methods
I always forget this idiom: [sourcecode language=”java”] public static Collection getFirstN(int numRecs, Collection records) { List rtn = new Ar...
I always forget this idiom: [sourcecode language=”java”] public static Collection getFirstN(int numRecs, Collection records) { List rtn = new Ar...
Return a processed array, leaving underlying array unaltered var arr = Array.apply(null, Array(5)).map(function (_, i) {return i;}); var processedArr = $.ma...
Tried using Freewall, a small tiling library written in jquery. It looked nice in the demos and easy to incorporate but didn’t like tiles composed dynamic aj...