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"?> | |
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>EnvironmentVariables</key> | |
<dict> | |
<key>PATH</key> | |
<string>/usr/local/Cellar/ruby/1.9.3-p125/bin:/usr/local/share/npm/bin:/usr/local/sbin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/local/share/npm/bin:/usr/local/sbin:/usr/X11/bin:/Users/gitlab/.rvm/bin</string> | |
</dict> | |
<key>KeepAlive</key> |
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
<?php | |
class Redis { | |
const CRLF = "\r\n"; | |
private $connection; | |
/** | |
* Create a new instance of the class. |
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
<?php | |
/** | |
* A simple PHP class to interact with the Sifter API. | |
*/ | |
class Sifter | |
{ | |
/** | |
* Sifter account hostname (example.sifterapp.com) |
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
"Don't think about using arrow keys in vim | |
noremap <Up> :q!<Enter> | |
noremap! <Up> <Esc>:q!<Enter> | |
noremap <Down> :q!<Enter> | |
noremap! <Down> <Esc>:q!<Enter> | |
noremap <Left> :q!<Enter> | |
noremap! <Left> |
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/sh | |
REQUEST="http://example.com" | |
NUM_REQ=100 | |
CONCURENT=10 | |
# Set up parallel processes (http://mlo.io/blog/2012/06/13/parallel-processes-in-bash.html) | |
mkfifo pipe | |
exec 3<>pipe | |
rm -rf pipe |
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
#!/usr/bin/env bash | |
# Add or source this from .bash_profile/.bashrc | |
# usage: project project_name | |
PROJECT_DIR="~/Code" | |
project() { | |
PROJECTS=( $(find $PROJECT_DIR -type d -iname "$1") ) | |
if [[ "${#PROJECTS[@]}" -gt 1 ]]; then |
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
var irc = require('irc'), | |
werewolf = require('./game'); | |
var client = new irc.Client('server', 'Werebot', { | |
channels: [ '#channel' ], | |
autoConnect: false | |
}); | |
client.connect(); | |
client.addListener('registered', function(msg) { |
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
Index: include/curl/multi.h | |
=================================================================== | |
RCS file: /cvsroot/curl/curl/include/curl/multi.h,v | |
retrieving revision 1.45 | |
diff -u -r1.45 multi.h | |
--- curl-old/include/curl/multi.h 20 May 2008 10:21:50 -0000 1.45 | |
+++ curl-new/include/curl/multi.h 29 Jan 2010 23:45:18 -0000 | |
@@ -135,6 +135,19 @@ | |
int *max_fd); | |
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
// MooTools | |
var onImagesLoad = function(callback){ | |
var images = 0, | |
check; | |
$$("img").each(function(item, key){ | |
images++; | |
var img = new Image(); | |
img.onload = function(){ | |
images--; | |
}; |
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
html, body, div, span, applet, object, iframe, | |
h1, h2, h3, h4, h5, h6, p, blockquote, pre, | |
a, abbr, acronym, address, big, cite, code, | |
del, dfn, em, img, ins, kbd, q, s, samp, | |
small, strike, strong, sub, sup, tt, var, | |
b, u, i, center, | |
dl, dt, dd, ol, ul, li, | |
fieldset, form, label, legend, | |
table, caption, tbody, tfoot, thead, tr, th, td, | |
article, aside, canvas, details, embed, |