#Programming Manifesto
##Books Ruby
- Learn to Program by Chris Pine
- The Well-Grounded Rubyist by David Black
- Eloquent Ruby by Russ Olsen
- Practical Object-Oriented Design in Ruby by Sandi Metz
- Confident Ruby by Avdi Grimm
#Programming Manifesto
##Books Ruby
L1 cache reference ......................... 0.5 ns
Branch mispredict ............................ 5 ns
L2 cache reference ........................... 7 ns
Mutex lock/unlock ........................... 25 ns
Main memory reference ...................... 100 ns
Compress 1K bytes with Zippy ............. 3,000 ns = 3 µs
Send 2K bytes over 1 Gbps network ....... 20,000 ns = 20 µs
SSD random read ........................ 150,000 ns = 150 µs
Read 1 MB sequentially from memory ..... 250,000 ns = 250 µs
$('a').draggable({ containment: "table", revert: 'invalid' }); | |
$('td').droppable({ | |
drop: function(ev, ui) { | |
var dropped = ui.draggable; | |
var droppedOn = $(this); | |
$(droppedOn).droppable("disable"); | |
$(dropped).parent().droppable("enable"); | |
$(dropped).detach().css({top: 0, left: 0}).appendTo(droppedOn); | |
} | |
}); $('td').not('td:empty').droppable("disable"); |
(function () { | |
// The test queue: | |
var tests = []; | |
// Function to add tests: | |
this.test = function test (name, cb) { | |
tests.push({name: name, test: cb}); | |
}; |