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
JSON.stringify(object, null, 4) |
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
zip -r9 file.zip * -x file.ext \*folder\* *.DS_Store |
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
sudo rm -rf /usr/local/{bin/{node,npm},lib/node_modules/npm,lib/node,share/man/*/node.*} | |
sudo brew uninstall node | |
brew update | |
brew upgrade --all | |
brew cleanup | |
brew install node | |
sudo chown -R YourUsernameHere /usr/local | |
brew link --overwrite node | |
sudo brew postinstall node |
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
echo 'lol' | pbcopy | |
pbpaste > file.txt |
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
path.getTotalLength(); |
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
export PS1="\[\033[36m\]\u\[\033[m\]@\[\033[32m\]\h:\[\033[33;1m\]\w\[\033[m\]\$ " | |
export CLICOLOR=1 | |
export LSCOLORS=ExFxBxDxCxegedabagacad | |
alias ls='ls -GF' | |
alias ll='ls -l' | |
alias la='ls -la' |
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
if ( min > max ) { | |
max = [ min, min = max ][ 0 ]; | |
} |
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 uncache( url ) { | |
var uncached = Math.round( Math.random() * 10000 ) + Date.now(); | |
uncached = ( /\?/.test( url ) ? "&" : "?" ) + "_=" + uncached; | |
return url + uncached; | |
} |
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 myRequest = new XMLHttpRequest(); | |
myRequest.open("GET", url + ((/\?/).test(url) ? "&" : "?") + (new Date()).getTime()); | |
myRequest.open("POST", "http://www.cedeber.fr/"); | |
myRequest.setRequestHeader("Cache-Control", "no-cache"); | |
myRequest.setRequestHeader("Content-Type", "text/plain"); | |
myRequest.setRequestHeader("Content-Type", "application/x-www-form-urlencoded"); | |
myRequest.onload = myOnLoadHandlerFunction; | |
myRequest.send(data||params); |
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 should = require( "should" ), | |
webdriver = require( "selenium-webdriver" ), | |
test = require( "selenium-webdriver/testing" ); | |
test.describe( "MouseEvent", function () { | |
var driver, windo; | |
this.timeout( 5000 ); | |
test.before( function () { |
OlderNewer