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 | |
brew install go | |
mkdir -p ~/Developer/go | |
export GOPATH=$HOME/Developer/go | |
go get golang.org/x/tour/gotour | |
cd $GOPATH | |
./bin/gotour |
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
# Install tmux on Centos release 6.5 | |
# install deps | |
yum install gcc kernel-devel make ncurses-devel | |
# DOWNLOAD SOURCES FOR LIBEVENT AND MAKE AND INSTALL | |
curl -OL https://github.com/downloads/libevent/libevent/libevent-2.0.21-stable.tar.gz | |
tar -xvzf libevent-2.0.21-stable.tar.gz | |
cd libevent-2.0.21-stable | |
./configure --prefix=/usr/local |
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 fabric.api import env, local, run, require, cd, sudo | |
import os | |
from fabric.context_managers import cd | |
env.project_name = 'weight' | |
def prod(): | |
"Use the actual webserver" |
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 unicode_literals | |
''' | |
About __future__ from the docs: | |
------------------------------- | |
1. A future statement is a directive to the compiler that a particular module should be compiled using | |
syntax or semantics that will be available in a specified future release of Python. | |
2. The future statement is intended to ease migration to future versions of Python that introduce | |
incompatible changes to the language. | |
3. It allows use of the new features on a per-module basis before the release in |
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 lettuce import before, after, world | |
from splinter.browser import Browser | |
from django.test.utils import setup_test_environment, teardown_test_environment | |
from django.core.management import call_command | |
from django.db import connection | |
from django.conf import settings | |
from django.test.simple import DjangoTestSuiteRunner | |
from django.contrib.auth.models import User | |
import logging |