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
git fetch --all | |
git reset --hard origin/master | |
git fetch downloads the latest from remote without trying to merge or rebase anything. | |
Then the git reset resets the master branch to what you just fetched. |
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
{ | |
"data": { | |
"team": "Bayern München", | |
"season": "2014/15", | |
"squad": [ | |
{"tee": 1, "name": "Manuel Neuer", "position": "GK"}, | |
{"tee": 22, "name": "Tom Starke", "position": "GK"}, | |
{"tee": 4, "name": "Dante", "position": "DF"}, | |
{"tee": 13, "name": "Rafinha", "position": "DF"}, | |
{"tee": 17, "name": "Jérôme Boateng", "position": "DF"}, |
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 $_GET(q,s) { | |
s = (s) ? s : window.location.search; | |
var re = new RegExp('&'+q+'=([^&]*)','i'); | |
return (s=s.replace(/^\?/,'&').match(re)) ?s=s[1] :s=''; | |
} |
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
{ | |
"data": { | |
"team": "Chelsea", | |
"season": "2014/15", | |
"squad": [ | |
{"tee": 1, "name": "Petr Čech", "position": "GK"}, | |
{"tee": 23, "name": "Mark Schwarzer", "position": "GK"}, | |
{"tee": 46, "name": "Jamal Blackman", "position": "GK"}, | |
{"tee": 13, "name": "Thibaut Courtois", "position": "GK"}, | |
{"tee": 2, "name": "Branislav Ivanović", "position": "DF"}, |
Add this to package.json
"scripts": {
"prepublish": "find node_modules -name '*.info' -exec rm -f {} \\;"
}
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 | |
if [ -z "$1" ] | |
then | |
echo "Which website would like to download?" | |
exit 1 | |
fi | |
wget \ | |
--recursive \ |
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
from __future__ import with_statement | |
import os.path | |
from fabric.api import * | |
from fabric.contrib.project import * | |
""" | |
Environments | |
""" |
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 $bajq, domUrl, browsealoud = { | |
CAPTURE_ANALYTICS: false, | |
BASE_ADDRESS: "babm.texthelp.com", | |
URL_INFO_ADDRESS: "babm.texthelp.com", | |
COOKIE_NAME: "__ba_plus", | |
ELEMENT_PREFIX: "_ba_", | |
GA_PROPERTY_ID: "UA-4669579-7", | |
LIGHTBOX_WIDTH: 450, | |
LIGHTBOX_HEIGHT: 160, | |
LANG_MAP: [{ |
OlderNewer