-
Install XQuartz.
-
Install dwm using Homebrew (or whatever):
brew install dwm -
Create a
xinitrc.dscript for dwm:
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| -# put this in your layout | |
| -# what this does it is loads the split_asset application.css file using the correct sprockets name | |
| /[if lt IE 10] | |
| = stylesheet_link_tag stylesheet_path('application').gsub(/\/assets\//, '/split_assets/') |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Capybara.add_selector :record do | |
| xpath { |record| XPath.css("#" + ActionController::RecordIdentifier.dom_id(record)) } | |
| match { |record| record.is_a?(ActiveRecord::Base) } | |
| end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class ApplicationController < ActionController::Base | |
| # Creates an accessor which is exposed to the view | |
| def self.view_accessor(*names) | |
| attr_accessor *names | |
| helper_method *names | |
| end | |
| end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class ViewController | |
| include TableSection | |
| def numberOfSectionsInTableView(tableView) | |
| 2 | |
| end | |
| def numberOfRowsInSection0(tableView) | |
| @data.count | |
| end |
You will be creating a movies app using Sinatra and the OMDB API.
- Ability to search for a movie by title
- Ability to click on a search result to see detailed information about a movie including:
- Title
- Year
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env bash | |
| source super.bash | |
| foo() { | |
| echo hello | |
| } | |
| super_function foo | |
| foo() { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env ruby | |
| ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../Gemfile', __FILE__) | |
| require 'bundler/setup' | |
| require 'sequel' | |
| if ARGV.size != 2 | |
| puts "usage: #{__FILE__} <DATA_PATH> <DB_PATH>" | |
| puts " #{__FILE__} ~/Desktop/sites.txt ~/Desktop/database.sqlite" | |
| abort |