NOTE: This post now lives (and kept up to date) on my blog: http://hakunin.com/rails3-load-paths
Do nothing. All files in this dir are eager loaded in production and lazy loaded in development by default.
| # Expectations | |
| must_have_button | |
| wont_have_button | |
| must_have_checked_field | |
| wont_have_checked_field | |
| must_have_content | |
| wont_have_content |
NOTE: This post now lives (and kept up to date) on my blog: http://hakunin.com/rails3-load-paths
Do nothing. All files in this dir are eager loaded in production and lazy loaded in development by default.
| # config/deploy.rb | |
| namespace :upstart do | |
| desc 'Generate and upload Upstard configs for daemons needed by the app' | |
| task :update_configs, except: {no_release: true} do | |
| upstart_config_files = File.expand_path('../upstart/*.conf.erb', __FILE__) | |
| upstart_root = '/etc/init' | |
| Dir[upstart_config_files].each do |upstart_config_file| | |
| config = ERB.new(IO.read(upstart_config_file)).result(binding) |
Ideas are cheap. Make a prototype, sketch a CLI session, draw a wireframe. Discuss around concrete examples, not hand-waving abstractions. Don't say you did something, provide a URL that proves it.
Nothing is real until it's being used by a real user. This doesn't mean you make a prototype in the morning and blog about it in the evening. It means you find one person you believe your product will help and try to get them to use it.
Steps for Sass file syntax highlighting and auto build of Sass -> CSS on save. Tested under Ubuntu Linux.
$ sudo apt-get install rubygems$ sudo gem install sass$ cd ~/.config/sublime-text-2/Packages$ git clone -b SublimeText2 git://github.com/kuroir/SCSS.tmbundle.git SCSS| # no config | |
| Time.now is localtime | |
| 1.second.from_now is UTC | |
| Timestamp stored in UTC | |
| AR not translated | |
| Time.now: Fri Aug 24 10:22:25 +0930 2012 | |
| 1.second.from_now 2012-08-24 00:52:26 UTC |
| #!/bin/sh | |
| ### | |
| # SOME COMMANDS WILL NOT WORK ON macOS (Sierra or newer) | |
| # For Sierra or newer, see https://github.com/mathiasbynens/dotfiles/blob/master/.macos | |
| ### | |
| # Alot of these configs have been taken from the various places | |
| # on the web, most from here | |
| # https://github.com/mathiasbynens/dotfiles/blob/5b3c8418ed42d93af2e647dc9d122f25cc034871/.osx |
| # How Clearance / Hoptoad does it | |
| module Clearance | |
| class << self | |
| attr_accessor :configuration | |
| end | |
| def self.configure | |
| self.configuration ||= Configuration.new | |
| yield(configuration) | |
| end |