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
$('#something') | |
.queue(function(){ | |
$(this).addClass("turned-on"); | |
$(this).dequeue(); | |
}) | |
.delay(2000) | |
.queue(function(){ | |
$(this).removeClass("turned-on"); | |
$(this).dequeue(); | |
}) |
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 foldl(f, z, xs) { | |
return xs.length === 0 ? z : foldl(f, f(z, xs[0], xs.slice(1))); | |
} | |
function foldr(f, z, xs) { | |
return xs.length === 0 ? z : f(xs[0], foldr(f, z, xs.slice(1))); | |
} |
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
[user] | |
name = Your Name | |
email = your@email.com | |
[color] | |
status = auto | |
branch = auto | |
diff = auto | |
ui = auto | |
[color "branch"] | |
current = yellow reverse |
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
#!/bin/bash | |
# Downloads and installs the latest version of Chromium onto your Mac OS X. | |
# Requires curl, unzip, and rsync. | |
set -eu | |
curl="/usr/bin/curl" | |
unzip="/usr/bin/unzip" | |
rsync="/usr/bin/rsync" |
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
// what does this do?: | |
(function(){ | |
var i = 5; | |
}()); | |
// What this does is create an anonymous function then assigns a local variable 'i' | |
// with an integer value of 5 to it. Then it runs the function. |
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
$.fn.duplicate = function(count, cloneEvents, callback) { | |
var stack = [], el; | |
while(count--) { | |
el = this.clone( cloneEvents ); | |
callback && callback.call(el); | |
stack.push( el.get()[0] ); | |
} | |
return this.pushStack( stack ); | |
}; |
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
<?xml version='1.0' encoding='UTF-8'?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:apps='http://schemas.google.com/apps/2006'> | |
<title>Mail Filters</title> | |
<id>tag:mail.google.com,2008</id> | |
<updated>2010-09-24T07:17:47Z</updated> | |
<entry> | |
<category term='filter'></category> | |
<title>Mail Filter</title> | |
<id>tag:mail.google.com,2008</id> | |
<updated>2010-09-24T07:17:47Z</updated> | |
<content></content> |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8" /> | |
<title>Single and Double Click</title> | |
<link rel="stylesheet" type="text/css" href="style.css"> | |
</head> | |
<body> | |
<div id="the_div"></div> | |
<span>Double click the block</span> |
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
[2010-11-18: REVISION 1623] | |
[FIXED] Java bundle’s Compile & Run again works with non-ASCII source code. | |
[FIXED] Include latest Ruby on Rails bundle. | |
[FIXED] Avoid using fcntl(F_SETOWN) when Interactive Input is not present. Ticket F66289D9. | |
[NEW] It is possible to set DisableColumnSelectionTogglingOnOption (via defaults write) to disable ⌥ behavior. Ticket 5C202273. |
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
{ | |
"auto_indent": true, | |
"color_scheme": "Packages/Color Scheme - Default/Sunburst.tmTheme", | |
"ensure_newline_at_eof_on_save": true, | |
"font_face": "Monaco", | |
"font_size": 11, | |
"highlight_line": true, | |
"tab_size": 3, | |
"translate_tabs_to_spaces": true, | |
"trim_automatic_white_space": true, |