This is my new favorite thing to do when I want to read a README file written in markdown. This assumes you are macosx and have the redcarpet gem installed.
alias readme='redcarpet README.md > readme.html; open readme.html'
readme| create_table :users, id: false do |t| | |
| t.uuid :id, primary: true, null: false | |
| # ... | |
| end |
| #!/usr/bin/env bash | |
| sudo apt-get -y update | |
| sudo apt-get -y install build-essential zlib1g-dev libssl-dev libreadline6-dev libyaml-dev | |
| cd /tmp | |
| wget ftp://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.3-p362.tar.gz | |
| tar -xvzf ruby-1.9.3-p362.tar.gz | |
| cd ruby-1.9.3-p362/ | |
| ./configure --prefix=/usr/local | |
| make | |
| sudo make install |
This is my new favorite thing to do when I want to read a README file written in markdown. This assumes you are macosx and have the redcarpet gem installed.
alias readme='redcarpet README.md > readme.html; open readme.html'
readme| # Gemfile | |
| … | |
| gem 'uuidtools' | |
| … |
| class ApplicationJob | |
| def self.set_priority(queue, priority) | |
| if [:high, :medium, :low].include?(priority) | |
| self.instance_eval do | |
| @queue = "#{queue}_#{priority}".to_sym | |
| end | |
| end | |
| end | |
| end |