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
/*! | |
* imageloader : a jquery plugin for preloading images | |
* Version: 0.2.0 | |
* Original Author: Nick Jonas - @nick-jonas | |
* Edited by: Ernesto Méndez - @derdesign | |
* Website: http://www.workofjonas.com | |
* Gist: https://gist.github.com/derdesign/5588986 | |
* Gitbub: https://github.com/modernassembly/imageloader | |
* License: MIT | |
*/ |
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 node | |
var fs = require('fs'); | |
var util = require('util'); | |
var pathmod = require('path'); | |
var EXTENSION = 'vimproj'; | |
var EXT_REGEX = new RegExp('\\.' + EXTENSION + '$'); | |
var TEMPLATE = '\ |
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 | |
for file in `find . | grep .DS_Store`; do echo "$file" && rm "$file"; done; |
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
# To undo a git push | |
git push -f origin HEAD^:master | |
# To get to previous commit (preserves working tree) | |
git reset --soft HEAD | |
# To get back to previous commit (you'll lose working tree) | |
git reset --hard HEAD^ | |
# To get back to a specific commit |
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
-module(server). | |
-compile([export_all]). | |
% To be used with escript | |
main(_Args) -> | |
ok = inets:start(), | |
{ok, _Pid} = inets:start(httpd, [ | |
{port, 8080}, |
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
-module(test_server). | |
-behaviour(gen_server). | |
% Callback exports | |
-export([init/1, | |
handle_call/3, | |
handle_cast/2, | |
handle_info/2, | |
terminate/2, |
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 | |
# Get first argument | |
if [ $1 ] | |
then | |
FILE=$1 | |
else | |
FILE=$HOME | |
fi |
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
-module(dict_server). | |
-export([start/0, stop/0, stop/1, get/1, get/2, set/1, set/2]). | |
-vsn("1.0"). | |
start() -> | |
register(?MODULE, self()), | |
Table = ets:new(?MODULE, []), | |
io:format("Initializing Dictionary Server...~n", []), | |
loop(Table). |
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
{ | |
"af": "Afrikaans", | |
"sq": "Albanian", | |
"am": "Amharic", | |
"ar_DZ": "Arabic - Algeria", | |
"ar_BH": "Arabic - Bahrain", | |
"ar_EG": "Arabic - Egypt", | |
"ar_IQ": "Arabic - Iraq", | |
"ar_JO": "Arabic - Jordan", | |
"ar_KW": "Arabic - Kuwait", |