Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000
node_modules/ | |
fixtures/ | |
output/ | |
config.json |
Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000
// sign up | |
account.signUp('[email protected]', 'secret'); | |
// sign in | |
account.signIn('[email protected]', 'secret'); | |
// sign in via oauth | |
account.signInWith('twitter'); | |
// sign out |
convert favicon.png -resize 16x16 favicon.ico; | |
convert favicon.png -resize 16x16 favicon_16x16.png; | |
convert favicon.png -resize 32x32 favicon_32x32.png; | |
convert favicon.png -resize 64x64 favicon_64x64.png; | |
convert favicon.png -resize 128x128 favicon_128x128.png; | |
echo "conversion complete"; |
Let's say you have an iOS project, and you want to use some external library, like AFNetworking. How do you integrate it?
Add the project to your repo:
git submodule add [email protected]:AFNetworking/AFNetworking.git Vendor/AFNetworking
or something to that effect.
Sometimes it is necessary (and desireable) to work on a git repository on multiple development machines. We want to be able to push and pull between repositories without having to use an intermediary bare repository, and for this to work symetrically in both repositories.
First clone we clone an existing repository:
git clone ssh://user@hostname:/path/to/repo
By default this will name the remote as origin, but let's assume we want to reserve that name for a master repository that commits will eventually get pushed to:
var canvasElem = document.getElementById("game"); | |
var world = boxbox.createWorld(canvasElem); | |
world.createEntity({ | |
name: "player", | |
shape: "circle", | |
radius: 1, | |
image: "pig.png", | |
imageStretchToFit: true, | |
density: 4, |