The idea is based on a gist by @jimbojsb.
You can use Pygments or Highlight.
brew install python
# Sometimes, especially when working with JSON APIs, | |
# when testing I found myself wanting to test the "shape" of data and | |
# only some particular elements, rather than either: | |
# | |
# 1. test everything - which is tricky with things like auto_increment primary keys, | |
# created_at fields etc | |
# 2. test only subset of data - do stuff like: | |
# `JSON(response.body).map { |h| h['name'] }.should == ['Item 1', 'Item 2'] | |
# | |
# Here, I want to try something different. See: |
The idea is based on a gist by @jimbojsb.
You can use Pygments or Highlight.
brew install python
// Future versions of Hyper may add additional config options, | |
// which will not automatically be merged into this file. | |
// See https://hyper.is#cfg for all currently supported options. | |
module.exports = { | |
config: { | |
// default font size in pixels for all tabs | |
fontSize: 14, | |
// font family with optional fallbacks |
#!/usr/bin/env sh | |
git log origin/production..master --no-merges --pretty=format:%s | | |
egrep -o "[0-9]{6,}" | | |
xargs -n1 -I :story_id echo "https://www.pivotaltracker.com/story/show/:story_id" |
#!/bin/sh | |
# Called by "git push" after it has checked the remote status, | |
# but before anything has been pushed. | |
# | |
# If this script exits with a non-zero status nothing will be pushed. | |
# | |
# Steps to install, from the root directory of your repo... | |
# 1. Copy the file into your repo at `.git/hooks/pre-push` | |
# 2. Set executable permissions, run `chmod +x .git/hooks/pre-push` |
Locate the section for your github remote in the .git/config
file. It looks like this:
[remote "origin"]
fetch = +refs/heads/*:refs/remotes/origin/*
url = [email protected]:joyent/node.git
Now add the line fetch = +refs/pull/*/head:refs/remotes/origin/pr/*
to this section. Obviously, change the github url to match your project's URL. It ends up looking like this:
Get Homebrew installed on your mac if you don't already have it
Install highlight. "brew install highlight". (This brings down Lua and Boost as well)
# Guide | |
# Configure the essential configurations below and do the following: | |
# | |
# Repository Creation: | |
# cap deploy:repository:create | |
# git add . | |
# git commit -am "initial commit" | |
# git push origin master | |
# | |
# Initial Deployment: |