See how a minor change to your commit message style can make you a better programmer.
Format: <type>(<scope>): <subject>
<scope> is optional
| # import config. | |
| # You can change the default config with `make cnf="config_special.env" build` | |
| cnf ?= config.env | |
| include $(cnf) | |
| export $(shell sed 's/=.*//' $(cnf)) | |
| # import deploy config | |
| # You can change the default deploy config with `make cnf="deploy_special.env" release` | |
| dpl ?= deploy.env | |
| include $(dpl) |
| sudo: required #is required to use docker service in travis | |
| language: php #can be any language, just php for example | |
| services: | |
| - docker # required, but travis uses older version of docker :( | |
| install: | |
| - echo "install nothing!" # put your normal pre-testing installs here |
| PREFIX=~/work | |
| BENTO4_HEAD=1-4-3-607 | |
| # Installing Bento4 | |
| cd ${PREFIX} | |
| wget http://sourceforge.net/projects/bento4/files/Bento4-SRC-1-4-3-607.zip | |
| unzip Bento4-SRC-${BENTO4_HEAD}.zip | |
| rm Bento4-SRC-${BENTO4_HEAD}.zip | |
| cd Bento4-SRC-${BENTO4_HEAD} | |
| scons -u build_config=Release |
| if _, err := os.Stat("/path/to/whatever"); os.IsNotExist(err) { | |
| // path/to/whatever does not exist | |
| } | |
| if _, err := os.Stat("/path/to/whatever"); !os.IsNotExist(err) { | |
| // path/to/whatever exists | |
| } |
| class MyForm(forms.ModelForm): | |
| requested_asset = None | |
| def __init__(self, *args, **kwargs): | |
| other_variable = kwargs.pop('other_variable') | |
| super(MyForm, self).__init__(*args, **kwargs) |
| #!/usr/bin/env zsh | |
| if [[ $# != 1 ]]; then | |
| cat - << USAGE | |
| Usage: `basename $0` <branch> | |
| USAGE | |
| return 1 | |
| fi | |
| local old_branch=$(git rev-parse --abbrev-ref HEAD) |