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
" I like highlighted search results | |
set hlsearch | |
" Use incremental searching | |
set incsearch | |
" Auto indent after a { | |
set autoindent | |
set smartindent | |
" Do not wrap lines automatically |
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
PROMPT="$(print '[%{\e[3%(!.1.2)m%}%n@%{\e[0;m%}%m:%{\e[34;m%}%3~%{\e[0m%}]%(!.#.$)') " # default prompt | |
# Source global definitions | |
if [ -f /etc/zshrc ]; then | |
. /etc/zsh/zshrc | |
fi | |
# enable color support of ls and also add handy aliases | |
if [ "$TERM" != "dumb" ]; then | |
eval "`dircolors -b`" | |
alias ls='ls --color=auto' |
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
/** | |
* minimal jquery/zepto compatibility layer | |
* be aware that won't mimic jquery/zepto at all but offer a similar api for basic stuffs as querySelectorAll and addEventListener ... | |
* @author jgotti at modedemploi dot fr for agence-modedemploi.com | |
* @licence Dual licence LGPL / MIT | |
* @changelog | |
* - 2013-01-18 - add isArray/isFunction/isNumeric/isObject/isEmptyObject/isPlainObject/filter/not methods | |
* - is/filter/not may now use selector, domElement, function or collection to match against | |
* - first attempt for adding selectors and namespaces supports to on and off methods | |
* - 2012-12-11 - add hasClass/addClass/removeClass/toggleClass/hide/show/toggle/is/closest methods |
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
/*jshint forin:true, noarg:true, noempty:true, eqeqeq:true, bitwise:true, strict:true, undef:true, unused:true, curly:true, indent:2, maxerr:50, laxcomma:true, expr:true, white:false, expr:true, latedef:true*/ | |
/*global exports*/ | |
/** | |
* attempt of a simple defer/promise library for mobile development | |
* @author Jonathan Gotti for agence-modedemploi.com | |
* @since 2012-10 | |
* @changelog | |
* - 2013-01-25 - add rethrow method | |
* - nextTick optimisation -> add support for process.nextTick + MessageChannel where available | |
* - 2012-12-28 - add apply method to promise |
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
printReplace=function(str,vars){ | |
if( typeof vars !== 'object' ){ | |
return str; | |
} | |
return str.replace(/(%+)([a-z0-9_-]+)/g,function(m,p,k){ | |
if( p.length === 1 && typeof vars[k] !== 'undefined'){ | |
return vars[k] || ''; | |
} | |
return m; | |
}); |
NewerOlder