- lengthy
This file contains hidden or 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
SpiderMonkey, implementation in C, ECMA-262 Edition 3 (Gecko) | |
Rhino, implementation in Java, ECMA-262 Edition 3 (none) | |
Nitro aka SquirrelFish (WebKit) | |
V8 (WebKit) | |
TraceMonkey (FF) | |
JagerMonkey (FF, Nitro/TraceMonkey cross child) | |
Futhark | |
Carakan (Presto) | |
Chakra (IE) |
This file contains hidden or 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
// need to mess with document.defaultAction = true/false to block default action; | |
// idea from http://www.quirksmode.org/js/keys.html | |
window.onload = function () { | |
var keyCodeUp, | |
keyCodeDown, | |
currentIndex, | |
fonts, | |
currentFont, | |
setGlobalFont, |
This file contains hidden or 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
MySQL commands (from http://www.pantz.org/software/mysql/mysqlcommands.html) | |
Create a database on the sql server. | |
mysql> create database [databasename]; | |
List all databases on the sql server. | |
mysql> show databases; | |
Switch to a database. | |
mysql> use [db name]; |
This file contains hidden or 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
def tip(msg); puts; puts msg; puts "-"*100; end | |
# | |
# 30 Ruby 1.9 Tips, Tricks & Features: | |
# http://www.igvita.com/2011/02/03/new-ruby-19-features-tips-tricks/ | |
# | |
tip "Upgrading to Ruby 1.9 is simple: rvm install 1.9.2 && rvm --default 1.9.2" | |
tip "Ruby 1.9 supports named captures in regular expressions!" |
This file contains hidden or 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
Object | |
Behavior | |
ClassDescription | |
Class | |
Metaclass | |
BlockClosure | |
Boolean | |
False | |
True | |
Browser |
This file contains hidden or 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
autocmd FocusGained * call s:CmdTFlush() | |
function s:CmdTFlush(...) | |
if exists(":CommandTFlush") == 2 | |
CommandTFlush | |
endif | |
endfunction |
This gist is part of a blog post. Check it out at:
http://jasonrudolph.com/blog/2011/08/09/programming-achievements-how-to-level-up-as-a-developer
It appears that there are enormous differences of opinion as to the probability of a failure with loss of vehicle and of human life. The estimates range from roughly 1 in 100 to 1 in 100,000. The higher figures come from the working engineers, and the very low figures from management. What are the causes and consequences of this lack of agreement? Since 1 part in 100,000 would imply that one could put a
RubyConf 2011 | 2011-09-29 | Gregory Moeck (@gregmoeck)
- Recommended as the best book on mocks: Growing Object-Oriented Software, Guided by Tests by Steve Freeman & Nat Pryce
- Common arguments against mocks
- They duplicate implementation
- They lead to brittle tests
- Mock objects + procedural programming = bad idea
- If you're doing traditional Rails development (which tends to follow more of a "procedural", do-this-and-then-do-that style), mock objects probably aren't for you