9/5/2013 @ 6:30pm
UX Speakeasy (VT)
9/7/2013 @ 2:00pm
Vermont Makers (FIRST Robotics Ice Cream Social)
9/12/2013 @ 6:00pm
Burlington Healthcare Innovators
9/14/2013 @ 9:30am
public static int contarRepetidos(ArrayList<Objeto> a) { | |
Map<Integer, Integer> freqMap = new HashMap<Integer, Integer>(); | |
for (Objeto obj : a) { | |
freqMap.put(obj.getValor(), (freqMap.get(obj.getValor()) == null ? 1 : (freqMap.get(obj.getValor()) + 1))); | |
} | |
return Collections.max(freqMap.values()); | |
} |
var five = require("../lib/johnny-five.js"), | |
board, distance, vibration, accel, | |
red, green, blue; | |
board = new five.Board(); | |
board.on("ready", function() { | |
var status = new five.Led(13); | |
status.on(); |
# A poor man's complexity measure for a file or group of files | |
puts ARGF.lines.grep(/^([ \t]*)/) { $1 }.map(&:length).reduce(0, :+) |
def field_names | |
@field_names ||= @expression.flatten | |
.each_cons(2) | |
.select {|marker, _| marker == :@ivar } | |
.map {|_,name| field_name(name) } | |
end | |
--returns rows in random order | |
select * from sometable order by random(); | |
--use '::' for casting | |
select '2013-01-01'::date; | |
-- date | |
-------------- | |
-- 2013-01-01 | |
select 1 / 10 as non_casted, 1::float8 / 10 as casted; | |
-- non_casted | casted |
9/5/2013 @ 6:30pm
UX Speakeasy (VT)
9/7/2013 @ 2:00pm
Vermont Makers (FIRST Robotics Ice Cream Social)
9/12/2013 @ 6:00pm
Burlington Healthcare Innovators
9/14/2013 @ 9:30am
Rx LINQ Operator Precis | |
Brian Beckman, May 2013 | |
================================================================================ | |
Introduction | |
================================================================================ | |
This is a highly abbreviated "cheat-sheet" for the LINQ operators over Rx, the | |
Reactive Extensions. Its purpose is to TEACH by laying bare the regular and | |
tasteful structure of the API. This structure can be difficult to perceive from | |
ordinary documentation and source code because comparable and contrastable |
class Object | |
def method_missing m, *args | |
Object.respond_to?(m, true) ? Object.send(m, self, *args) : super | |
end | |
end |
default prefix: Ctrl+b | |
start new session: tmux | |
list sessions: tmux ls | |
attach to session: tmux attach [-t <session>] | |
attach to session forcely: tmux attach -d | |
detach: prefix then d | |
Windows: |
$ ab -n 1000 -c 10 http://twitter.com/help/test.json | |
This is ApacheBench, Version 2.3 <$Revision: 655654 $> | |
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/ | |
Licensed to The Apache Software Foundation, http://www.apache.org/ | |
Benchmarking twitter.com (be patient) | |
Completed 100 requests | |
Completed 200 requests | |
Completed 300 requests | |
Completed 400 requests |