⌘T | go to file |
⌘⌃P | go to project |
⌘R | go to methods |
⌃G | go to line |
⌘KB | toggle side bar |
⌘⇧P | command prompt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function () { | |
// The test queue: | |
var tests = []; | |
// Function to add tests: | |
this.test = function test (name, cb) { | |
tests.push({name: name, test: cb}); | |
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$('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"); |
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
#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