Talk by Carin Meier @gigasquid
http://www.infoq.com/presentations/Why-is-a-Monad-Like-a-Writing-Desk
import java.util.*; | |
import java.util.concurrent.*; | |
public class RandomWeightedSelection { | |
public static void main(String [] args) { | |
runIterations( 100); | |
runIterations( 10_000); |
http://www.infoq.com/presentations/Why-is-a-Monad-Like-a-Writing-Desk
apply plugin: 'checkstyle' | |
checkstyleMain { | |
ignoreFailures = false | |
reports { | |
include ( '**/*.java') | |
xml { | |
destination "${rootProject.buildDir}/reports/checkstyle/main.xml" | |
} | |
} |
from collections import deque | |
try: | |
set() | |
except: | |
from sets import Set as set | |
/** | |
* hacky plugin to allow removal of the jquery tools tooltip objects. | |
* | |
* Doesn't pay any attention to the special event configuration, and will blindly unbind all | |
* mouse[enter|leave] listeners from the trigger element. | |
*/ | |
(function($){ | |
var tooltip = $.fn.tooltip, | |
slice = Array.prototype.slice; |