- Indent with 2 spaces and
expandtabon (With exceptions like Java).
- Use underscores in long method names, like this:
| #!/bin/sh -e | |
| # Usage: license | |
| # Prints an MIT license appropriate for totin' around. | |
| # | |
| # $ license > COPYING | |
| #!/bin/sh | |
| echo "Copyright (c) `date +%Y` weddingcakes | |
| Licensed under the Apache License, Version 2.0 (the "License"); | |
| you may not use this file except in compliance with the License. |
| class Drink | |
| def name | |
| "Drink" | |
| end | |
| def ingredients | |
| %w() | |
| end | |
| end |
| user system total real | |
| Excon 0.050000 0.030000 0.080000 ( 5.392849) | |
| Typhoeus 0.040000 0.010000 0.050000 ( 2.189296) | |
| Typhoeus::Hydra 0.040000 0.010000 0.050000 ( 3.153995) | |
| Net::HTTP 0.050000 0.030000 0.080000 ( 2.503522) | |
| Curb 0.030000 0.040000 0.070000 ( 4.071390) |
| source :rubygems;['sqlite3','json','jquery-rails'].each {|gem| gem "#{gem}"};group :assets do;gem 'sass-rails';gem 'coffee-rails';gem 'uglifier';end;gem "rails", "3.2.9" |