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
# Delete all containers | |
docker rm $(docker ps -a -q) | |
# Delete all images | |
docker rmi $(docker images -q) |
git checkout -b feature_branch_name ... edit files, add and commit ... git push -u origin feature_branch_name
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
try { | |
var Spooky = require('spooky'); | |
} catch (e) { | |
var Spooky = require('../lib/spooky'); | |
} | |
var spooky = new Spooky({ | |
child: { | |
transport: 'http' | |
}, |
Add this to your .travis.yml if you want to run your casperjs test on travis-ci
before_script: - wget https://github.com/n1k0/casperjs/archive/1.1-beta3.tar.gz -O /tmp/casper.tar.gz - tar -xvf /tmp/casper.tar.gz - export PATH=$PATH:$PWD/casperjs-1.1-beta3/bin/ script: casperjs test yourtests.js
/* Large desktop */ @media (min-width: 1200px) { ... } /* Portrait tablet to landscape and desktop */ @media (min-width: 768px) and (max-width: 979px) { ... } /* Landscape phone to portrait tablet */ @media (max-width: 767px) { ... }
heroku config:set HEROKU=1
travis setup heroku
The first thing to do is to install the dependencies.
sudo apt-get build-dep python-psycopg2
After that go inside your virtualenv and use pip install psycopg2
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
#heroku config:set HEROKU=1 | |
import os | |
import urlparse | |
import psycopg2 | |
from flask import Flask | |
from flask_peewee.db import Database | |
if 'HEROKU' in os.environ: |