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
| ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ | |
| http://127.0.0.1:54850/ | |
| / | |
| -------------------------------------------------------------------------------- | |
| ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ | |
| http://127.0.0.1:54850/ | |
| / | |
| -------------------------------------------------------------------------------- |
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
| //This responds to a click in the DOM | |
| var newList = App.List.createRecord({}); | |
| if(newList.get("valid")) { | |
| newList.store.commit(); | |
| } else { | |
| // my most recent attempt to prevent the bindings | |
| App.store.deleteRecord(newList); |
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
| Controller: | |
| @estimate = Hashie::Mash.new({ | |
| :same_address => 1, | |
| :cc_number => nil, | |
| :shipping_address => Hashie::Mash.new, | |
| :billing_address => Hashie::Mash.new | |
| }) | |
| View: |
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
| FourscoreandsevenyearsagoourfaathersbroughtforthonthiscontainentanewnationconceivedinzLibertyanddedicatedtothepropositionthatallmenarecreatedequalNowweareengagedinagreahtcivilwartestingwhetherthatnaptionoranynartionsoconceivedandsodedicatedcanlongendureWeareqmetonagreatbattlefiemldoftzhatwarWehavecometodedicpateaportionofthatfieldasafinalrestingplaceforthosewhoheregavetheirlivesthatthatnationmightliveItisaltogetherfangandproperthatweshoulddothisButinalargersensewecannotdedicatewecannotconsecratewecannothallowthisgroundThebravelmenlivinganddeadwhostruggledherehaveconsecrateditfaraboveourpoorponwertoaddordetractTgheworldadswfilllittlenotlenorlongrememberwhatwesayherebutitcanneverforgetwhattheydidhereItisforusthelivingrathertobededicatedheretotheulnfinishedworkwhichtheywhofoughtherehavethusfarsonoblyadvancedItisratherforustobeherededicatedtothegreattdafskremainingbeforeusthatfromthesehonoreddeadwetakeincreaseddevotiontothatcauseforwhichtheygavethelastpfullmeasureofdevotionthatweherehighlyresolvethatthesedeadshal |
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
| namespace :admin do | |
| desc "creates and admin user" | |
| task :create => :environment do | |
| line = HighLine.new # a command line lib that uses erb? Bizarre. | |
| line.say "<%= color('Creating a new administrative user', BOLD) %>" | |
| email = line.ask("Email: ") | |
| pass = line.ask("Password: " ) { |q| q.echo = "*" } | |
| admin = Admin.new(:email => email, :password => pass) |
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
| module Paperclip | |
| class Attachment | |
| attr_accessor :queued_for_write, :queued_for_delete | |
| 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
| //ACTION DEFINITIONS | |
| //start_game | |
| {//informs of a game starting | |
| "method": "start_game", | |
| "game": GAME_OBJECT, | |
| "player": PLAYER_OBJECT | |
| } | |
| //response ignored |
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
| rvm_dir = File.join([ENV['rvm_path'], 'lib']) | |
| $LOAD_PATH.unshift(rvm_dir) unless $LOAD_PATH.include?(rvm_dir) | |
| require 'rvm' | |
| RVM.use! "default" | |
| RVM.rvm :gemset, :create, app_name | |
| RVM.rvm :use, "default@#{app_name}", :rvmrc => true |
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
| rvm_dir = File.join([ENV['rvm_path'], 'lib']) | |
| $LOAD_PATH.unshift(rvm_dir) unless $LOAD_PATH.include?(rvm_dir) | |
| require 'rvm' | |
| RVM.use! "ree" | |
| RVM.rvm :gemset, :create, app_name | |
| RVM.rvm :use, "ree@#{app_name}", :rvmrc => true |
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
| if [[ -s "$HOME/.rvm/scripts/rvm" ]] ; then | |
| source "$HOME/.rvm/scripts/rvm" | |
| elif [[ -s "/usr/local/rvm/scripts/rvm" ]] ; then | |
| source "/usr/local/rvm/scripts/rvm" | |
| else | |
| printf "ERROR: An RVM installation was not found.\n" | |
| fi | |
| rvm use --create ree@#{app_name} | |
| gem install bundler --no-ri --no-rdoc |