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
| def create | |
| @signup = Signup.new(params[:signup]) | |
| if @signup.save | |
| redirect_to(root_path, :notice => "Success. Your email has been added.") | |
| else | |
| flash[:notice] = "Unsuccessful. Please check for errors." | |
| render "new", :layout => "launch" | |
| 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
| var G = { | |
| // Input | |
| data: [ | |
| {w: 0, b: 1}, | |
| {w: 2, b: 3}, | |
| {w: 3, b: 0} | |
| ], | |
| pickTwo: function(array) { |
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
| <h1>New User (under <%= @facility %>)</h1> | |
| <% if @user.errors.any? && @user.errors.messages[:email].include?("has already been taken") %> | |
| <h2>Note: This email address already belongs to an active member. Would you like to invite them to this facility?</h2> | |
| <%= simple_form_for [@facility, @facility.employments.new] do |f| %> | |
| <%= f.input :user_id, :name => "Hello", :as => :hidden %> | |
| <p><%= f.button :submit, :value => "Invite User" %></p> | |
| <% 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
| Started POST "/facilities/field-house/employments" for 127.0.0.1 at 2011-08-08 17:06:33 +1000 | |
| Processing by EmploymentsController#create as HTML | |
| Parameters: {"utf8"=>"✓", "authenticity_token"=>"1bB5yxqfc3+6Xd6QR2q2w8aKnv4ywntE1WaxT+cmvVc=", "commit"=>"Invite User", "facility_id"=>"field-house"} | |
| User Load (0.6ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1 | |
| Facility Load (0.4ms) SELECT "facilities".* FROM "facilities" INNER JOIN "employments" ON "facilities"."id" = "employments"."facility_id" WHERE "employments"."user_id" = 1 AND "facilities"."id" = $1 LIMIT 1 [["id", 15]] | |
| (0.3ms) BEGIN | |
| Facility Load (0.7ms) SELECT "facilities".* FROM "facilities" WHERE "facilities"."id" = 15 LIMIT 1 | |
| Facility Load (0.6ms) SELECT "facilities".* FROM "facilities" WHERE "facilities"."activation_token" IS NULL LIMIT 1 | |
| SQL (0.7ms) INSERT INTO "employments" ("created_at", "ended_at", "facility_id", "role", "started_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id |
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
| (function(exports){ | |
| // | |
| // | |
| // | |
| // Remember to remove the jquip library from window!!! | |
| // | |
| // | |
| // | |
| // |
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
| <!DOCTYPE html> <html lang="en-us"> | |
| <head> | |
| <title>TIDNZ Widget</title> | |
| <!-- <link rel="stylesheet" type="text/css" href="styles.css" /> --> | |
| <script src="jquip.js"></script> | |
| <script src="jquip.widgetCountryAutocomplete.js"></script> | |
| <script src="countries.js"></script> | |
| </head> |
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
| root@dev:/persistent/www/travellr# ruby script/server | |
| => Booting Mongrel | |
| => Rails 2.3.9 application starting on http://0.0.0.0:3000 | |
| no such file to load -- facebooker2 | |
| /persistent/opt/ruby-enterprise-1.8.7-2009.10/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:36:in `gem_original_require' | |
| /persistent/opt/ruby-enterprise-1.8.7-2009.10/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:36:in `require' | |
| /persistent/opt/ruby-enterprise-1.8.7-2009.10/lib/ruby/gems/1.8/gems/activesupport-2.3.9/lib/active_support/dependencies.rb:182:in `require' | |
| /persistent/opt/ruby-enterprise-1.8.7-2009.10/lib/ruby/gems/1.8/gems/activesupport-2.3.9/lib/active_support/dependencies.rb:547:in `new_constants_in' | |
| /persistent/opt/ruby-enterprise-1.8.7-2009.10/lib/ruby/gems/1.8/gems/activesupport-2.3.9/lib/active_support/dependencies.rb:182:in `require' | |
| /persistent/opt/ruby-enterprise-1.8.7-2009.10/lib/ruby/gems/1.8/gems/rails-2.3.9/lib/rails/gem_dependency.rb:215:in `load' |
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
| upstream travellr { | |
| server dev.travellr:3000 weight=3; | |
| # server dev.travellr:9000 backup; | |
| } | |
| upstream travellr_admin { | |
| server dev.travellr:4000; | |
| } | |
| #upstream location_services { |
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
| // | |
| // ExpandableBillUIView.m | |
| // Split | |
| // | |
| // Created by Emmet Rogan on 7/04/13. | |
| // Copyright (c) 2013 Emmet Rogan. All rights reserved. | |
| // | |
| #import "ExpandableBillUIView.h" | |
| #import "BasicImageUIView.h" |
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
| // Use Gists to store code you would like to remember later on | |
| console.log(window); // log the "window" object to the console |