Implicit blocks with yield are faster than explicit blocks with #call.
require 'benchmark/ips'
def explicit(&block)
block.call
endThings we need to get from the API
(Install jq for these examples http://stedolan.github.io/jq/)
Single commits
curl 'http://0.0.0.0:5000/repos/restfulgit/commits/8990ae2cd9bfa2d94f4fd37ae8026c71bfe7d8ef/' | jq '.'
| #!/bin/sh | |
| for dotfile in *; do | |
| source="$PWD/$dotfile" | |
| target="$HOME/.$dotfile" | |
| if [[ "$dotfile" != "README" && "$dotfile" != "install.sh" ]]; then | |
| ln -s "$source" "$target" | |
| fi | |
| done |
Add directory_index: false to the frontmatter of your page
--
directory_index: false
--
| namespace :assets do | |
| task :precompile do | |
| sh 'middleman build' | |
| end | |
| end |
| # If you have OpenSSL installed, we recommend updating | |
| # the following line to use "https" | |
| source 'https://rubygems.org' | |
| ruby "2.1.0" | |
| gem "middleman", "~> 3.1.0" | |
| gem "middleman-blog" | |
| gem "middleman-livereload" | |
| gem "middleman-syntax" |
If you want to get master back into a stable state, say from a tag you know is deployed on production, you can do this:
git checkout master
git reset --hard <tag name>
git push --force origin master
http://stackoverflow.com/questions/6872223/git-revert-master-branch-to-a-tag