$ git clone [email protected]:berkeley-food-recommendations/data-gathering.git
You're cloning the main repository - be careful! We're going to enforce a "no committing to master directly" rule, so no committing directly to master, please.
# coding: utf-8 | |
# PYTHON IMPORTS | |
from django.utils import six | |
from django.core.exceptions import ImproperlyConfigured | |
# REST IMPORTS | |
from rest_framework.settings import api_settings | |
from rest_framework.filters import BaseFilterBackend |
#!/bin/sh | |
# First, open up GitX | |
cd ~/Code/Python/django-haystack; gitx | |
tmux start-server | |
tmux new-session -d -s Haystack -n git | |
tmux new-window -tHaystack:1 -n test | |
tmux new-window -tHaystack:2 -n solr | |
tmux new-window -tHaystack:3 -n docs | |
tmux new-window -tHaystack:4 -n runserver |
#Create bitbucket branch
##Create local branch
$ git checkout -b sync
Switched to a new branch 'sync'
$ git branch
master
* sync
git branch -m old_branch new_branch # Rename branch locally | |
git push origin :old_branch # Delete the old branch | |
git push --set-upstream origin new_branch # Push the new branch, set local branch to track the new remote |
# Credit http://stackoverflow.com/a/2514279 | |
for branch in `git branch -r | grep -v HEAD`;do echo -e `git show --format="%ai %ar by %an" $branch | head -n 1` \\t$branch; done | sort -r |
/* bling.js */ | |
window.$ = document.querySelectorAll.bind(document); | |
Node.prototype.on = window.on = function (name, fn) { | |
this.addEventListener(name, fn); | |
} | |
NodeList.prototype.__proto__ = Array.prototype; |
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