start new:
tmux
start new with session name:
tmux new -s myname
http://guides.rubyonrails.org/migrations.html
| <!DOCTYPE html> | |
| <html lang="en"> | |
| <head> | |
| <meta charset="utf-8"> | |
| <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.js"></script> | |
| <script type="text/javascript"> | |
| </script> | |
| <style text="text/css"> |
Install ImageMagick for image conversion:
brew install imagemagick
Install tesseract for OCR:
brew install tesseract --all-languages
Or install without --all-languages and install them manually as needed.
cribbed from http://pastebin.com/xgzeAmBn
Templates to remind you of the options and formatting for the different types of objects you might want to document using YARD.
| # https://github.com/gzigzigzeo/carrierwave-meta | |
| # Integrating CarrierWave with JCrop | |
| # Let implement the behavior like at this demo: deepliquid.com/projects/Jcrop/demos.php?demo=thumbnail | |
| # The uploader: | |
| class CropUploader < SobakaUploader | |
| include CarrierWave::Meta | |
| # Crop source is a source image converted from original which could be bigger than source area (left image in the example). | |
| version :crop_source do |
| # 0 is too far from ` ;) | |
| set -g base-index 1 | |
| # Automatically set window title | |
| set-window-option -g automatic-rename on | |
| set-option -g set-titles on | |
| #set -g default-terminal screen-256color | |
| set -g status-keys vi | |
| set -g history-limit 10000 |
| sudo ln -sf /usr/share/zoneinfo/UTC /etc/localtime |
| # _plugins/haml_converter.rb | |
| module Jekyll | |
| class HamlConverter < Converter | |
| safe true | |
| def setup | |
| return if @setup | |
| require 'haml' | |
| @setup = true |
| # -*- coding: utf-8 -*- | |
| """MyCompany Fabric script. | |
| * Deploy code | |
| * Set up a local development environment | |
| There are two ways to deploy the myrepo code: | |
| 1. :func:`deploy` will do a full virtualenv installation/update and expand a | |
| tarball of the specified git revision (defaults to HEAD) to a timestamped |