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
'use strict'; | |
module.exports = function($) { | |
$.opts({ | |
linkPrefix: '/', | |
inDir: './in', | |
outDir: './out', | |
outFile: 'index.html', | |
tmplDir: './tmpl', |
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 gp() { | |
git commit -m '$1' | |
if [ "$#" -eq 2 ]; then | |
git push origin $2 | |
else | |
git push origin master | |
fi | |
} | |
$ gp 'foo bar' |
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
#include <stdio.h> | |
int main() | |
{ | |
int i = 1; | |
printf("%d\n", i); //=> 1 | |
{ | |
printf("%d\n", i); //=> 1 | |
int i = 2; | |
printf("%d\n", i); //=> 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
{ "keys": ["`"], "command": "insert_snippet", "args": {"contents": "`${0:$SELECTION}`"}, "context": | |
[ | |
{ "key": "setting.auto_match_enabled", "operator": "equal", "operand": true }, | |
{ "key": "selection_empty", "operator": "equal", "operand": false, "match_all": true } | |
] | |
} |
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
Show hidden characters
{ | |
"cmd": ["sbcl", "--load", "$file"] | |
} |
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
0000 | |
00 00 | |
00 00 | |
00 00 | |
0000 | |
1111 | |
11 | |
11 | |
11 |
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 | |
# 10,000 iterations in 1.9696619510651s | |
function frontMatterExplode($str) | |
{ | |
$lines = explode(PHP_EOL, $str); | |
if (rtrim($lines[0]) === '---') { | |
unset($lines[0]); | |
$i = 1; | |
$yaml = array(); |
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
# File | |
- filePath: '/foo/bar/baz.qux' | |
- fileName: 'baz.qux' | |
- dirPath: '/foo/bar' | |
- dirName: 'bar' | |
- baseName: 'baz' | |
- extension: 'qux' | |
# Directory |
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
$ curl -s http://php-osx.liip.ch/install.sh | bash -s 5.3 | |
$ /usr/local/php5/bin/php -v | |
$ sudo ln -s /usr/local/php5/bin/php /usr/bin/php53 | |
$ php53 -v |
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 | |
error_reporting(E_ALL); | |
ini_set('display_errors', 1); | |
# error | |
use Foo; | |
use Bar\Foo; # cannot use Bar\Foo as Foo because the name is already in use | |
# ok |