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
/* Author: Remy Sharp / @rem - adds <details> support to the browser */ | |
(function (window, document) { | |
if ('open' in document.createElement('details')) return; | |
// made global by myself to be reused elsewhere | |
var addEvent = (function () { | |
if (document.addEventListener) { | |
return function (el, type, fn) { |
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
google.pacman || | |
function () { | |
var a = true, | |
e = false, | |
g = {}, | |
i = [1, 4, 2, 8], | |
l = { | |
0: { | |
axis: 0, | |
increment: 0 |
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 | |
# If it redirects to http://www.facebook.com/login.php at the end, wait a few minutes and try again | |
EMAIL='YOUR_EMAIL' # edit this | |
PASS='YOUR_PASSWORD' # edit this | |
COOKIES='cookies.txt' | |
USER_AGENT='Firefox/3.5' |
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 | |
# allows you to send pull requests from the command line | |
# usage: git req username [comparetobranch] | |
# or: git req username -m 'message' | |
# put somewhere in your PATH as git-req and make executable | |
usage() | |
{ | |
cat << EOF | |
usage: $0 options |
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 | |
# Sendmail replacement inspired by CheckAttach script for mutt. | |
# http://wiki.mutt.org/?ConfigTricks/CheckAttach for the original script. | |
# To use, simply add the following line to your .muttrc: | |
# set sendmail="/path/to/this/script" | |
# Then restart mutt. | |
# The script uses simple pattern matching to make an oninion on whether or not |
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
Mime: { | |
".3gp" : "video/3gpp", | |
".a" : "application/octet-stream", | |
".ai" : "application/postscript", | |
".aif" : "audio/x-aiff", | |
".aiff" : "audio/x-aiff", | |
".asc" : "application/pgp-signature", | |
".asf" : "video/x-ms-asf", | |
".asm" : "text/x-asm", | |
".asx" : "video/x-ms-asf", |
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
#Newbie programmer | |
def factorial(x): | |
if x == 0: | |
return 1 | |
else: | |
return x * factorial(x - 1) | |
print factorial(6) | |
#First year programmer, studied Pascal |
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
# Newbie Programmer | |
def factorial(x) | |
if x == 0 | |
return 1 | |
else | |
return x * factorial(x - 1) | |
end | |
end | |
puts factorial(6) | |
puts factorial(0) |
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
How the way people code “Hello World” varies depending on their age and job: | |
High School/Jr. High | |
10 PRINT "HELLO WORLD" | |
20 END | |
First year in College | |
program Hello(input, output) | |
begin | |
writeln('Hello World') |
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 accident; | |
register voters; | |
static electricity; | |
struct by_lightning; | |
void *where_prohibited; | |
char broiled; | |
short circuit; | |
short changed; | |
long johns; | |
long dong_silver; /* Submitted by Juan Carlos Castro */ |
OlderNewer