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
$(document).ready(function(){ | |
var r=function(e){ | |
alert("Hello World"); | |
}; | |
$("#remove").click(r); | |
}); |
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
gate@tolanna:~/Work/project-rails/project$ RUBBER_ENV=rubbertest cap rubber:create_staging | |
triggering load callbacks | |
* executing `rubber:init' | |
* executing `rubber:create_staging' | |
Hostname to use for staging instance [rubbertest]: | |
Roles to use for staging instance [web,app,db:primary=true]: | |
* executing `rubber:create' | |
* Creating new security group: project_rubbertest_app | |
* Creating new security group: project_rubbertest_passenger | |
* Creating new security group: project_rubbertest_default |
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 |
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
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
//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
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
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
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
Controller: | |
@estimate = Hashie::Mash.new({ | |
:same_address => 1, | |
:cc_number => nil, | |
:shipping_address => Hashie::Mash.new, | |
:billing_address => Hashie::Mash.new | |
}) | |
View: |
OlderNewer