This file contains hidden or 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 logger = console.log;//<?php function logger($msg) {echo "\n".$msg;}; | |
| function fibonacci($seq) { | |
| if ($seq < 2) { | |
| return $seq; | |
| } else { | |
| return fibonacci($seq - 1) + fibonacci($seq - 2); | |
| } | |
| } |
This file contains hidden or 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
| set nocompatible " not compatible with the old-fashion vi mode | |
| set backspace=2 " allow backspacing over everything in insert nc >kkmode | |
| set history=1000 " keep 1000 lines of command line history | |
| set undolevels=100 | |
| set ruler " show the cursor position all the time | |
| set autoread " auto read when file is changed from outside | |
| set wrap | |
| set linebreak | |
| set nolist | |
| set hidden |
This file contains hidden or 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
| /** | |
| * sprintf() | |
| */ | |
| (function() { | |
| define(function() { | |
| return function() { | |
| var convert = function(match, nosign) { | |
| if (nosign) { |
This file contains hidden or 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 | |
| cd $HOME | |
| wget -qO- http://outland.s3.amazonaws.com/outland.tar.gz | tar zxvf - | |
| #git clone git://github.com/louisje/outland.git | |
| outland/bin/ol-build | |
| echo | |
| echo "You need to \`source .bash_profile\` to make everything active" | |
| echo |
This file contains hidden or 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
| /** | |
| * RequireJS Plugin - CSS Loader | |
| * | |
| * [ex.] | |
| * define(['css!jquery-ui-css', 'jquery', 'jquery-ui'], { }); | |
| * | |
| * Its better to put 'css!' in front of other js dependencies to get | |
| * faster loading speed | |
| * | |
| */ |
NewerOlder