This file contains 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
Updating fefeb0c..3b85f14 | |
Fast-forward | |
.gitignore | 1 + | |
Gemfile | 21 ++++++++++++++------- | |
Gemfile.lock | 110 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ | |
app/assets/javascripts/assignments.js.coffee | 3 +++ | |
app/assets/javascripts/courses.js.coffee | 3 +++ | |
app/assets/javascripts/study_plans.js.coffee | 3 +++ | |
app/assets/javascripts/users.js.coffee | 3 +++ | |
app/assets/stylesheets/assignments.css.scss | 3 +++ |
This file contains 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
require "bundler/capistrano" | |
set :application, "awesome" | |
set :user, "vagrant" | |
set :deploy_to, "/home/#{user}/apps/#{application}" | |
set :deploy_via, :remote_cache | |
set :use_sudo, false | |
set :scm, "git" | |
set :repository, "git@github.com:7hunderbird/#{application}.git" |
This file contains 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
require "bundler/capistrano" | |
server "192.168.33.10", :web, :app, :db, primary: true | |
set :application, "awesome" | |
set :user, "vagrant" | |
set :deploy_to, "/home/#{user}/apps/#{application}" | |
set :deploy_via, :remote_cache | |
set :use_sudo, false |
This file contains 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
require "bundler/capistrano" | |
set :application, "awesome" | |
set :user, "vagrant" | |
set :deploy_to, "/home/#{user}/apps/#{application}" | |
set :deploy_via, :remote_cache | |
set :use_sudo, false | |
set :scm, "git" | |
set :repository, "git@github.com:7hunderbird/#{application}.git" |
This file contains 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
run "cd #{current_path} && bundle exec rake db:migrate" do |channel, stream, data| | |
puts # line break | |
puts "#{channel[:server]} -> #{data}" | |
break if stream == :err | |
end |
This file contains 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
reset_folders() { | |
# take the current directory's folder's and remove them | |
find . -d 1 -type d -name "*" -print0 | xargs -0 rm -rf | |
} | |
clone_repos() { | |
# http://www.thegeekstuff.com/2010/06/bash-array-tutorial/ | |
# 15. Load Content of a File into an Array | |
repos=(`cat "repos.cfg"`) |
This file contains 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
rails plugin new my_engine --full --mountable | |
Engines Checklist | |
* Copy and namespace models, views, controllers, and helpers | |
* Copy routes | |
* Copy tests, add :use_route # so your test know which route to hit. | |
* Configure defaults | |
* Add dependencies to your gemspec | |
* Require your dependencies # because bundler doesn't boot strap them, etc. |
This file contains 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
require 'rubygems' | |
require 'nokogiri' | |
require 'open-uri' | |
puts "Give me a UPC code:" | |
upc = gets.chomp | |
url = "http://www.upcdatabase.com/item/" + upc | |
doc = Nokogiri::HTML(open(url)) |
This file contains 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
[demo_app (master)]$ rake -T | |
WARNING: Global access to Rake DSL methods is deprecated. Please include | |
... Rake::DSL into classes and modules which use the Rake DSL methods. | |
WARNING: DSL method DemoApp::Application#task called at /Users/tbird/.rvm/gems/ruby-1.8.7-p334/gems/railties-3.0.7/lib/rails/application.rb:215:in `initialize_tasks' | |
rake about # List versions of all Rails frameworks and the environment | |
rake db:create # Create the database from config/database.yml for the current Rail... | |
rake db:drop # Drops the database for the current Rails.env (use db:drop:all to ... | |
rake db:fixtures:load # Load fixtures into the current environment's database. | |
rake db:migrate # Migrate the database (options: VERSION=x, VERBOSE=false). | |
rake db:migrate:status # Display status of migrations |
This file contains 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
Installing ri documentation for builder-2.1.2... | |
ERROR: While generating documentation for builder-2.1.2 | |
... MESSAGE: Unhandled special: Special: type=17, text="<!-- HI -->" | |
... RDOC args: --ri --op /Users/tbird/.rvm/gems/ruby-1.8.7-p334@rails31/doc/builder-2.1.2/ri --title Builder -- Easy XML Building --main README --line-numbers lib CHANGES Rakefile README doc/releases/builder-1.2.4.rdoc doc/releases/builder-2.0.0.rdoc doc/releases/builder-2.1.1.rdoc --title builder-2.1.2 Documentation --quiet |