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
var $tabs = $('#details > ul').tabs({ | |
'select': function(e, ui) { | |
alert('selected!'); | |
} | |
}); |
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
def help | |
Helper.instance | |
end | |
class Helper | |
include Singleton | |
include ActionView::Helpers::NumberHelper | |
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
# Link to local copy of edge rails | |
inside('vendor') { run 'ln -s ~/dev/rails rails' } | |
# Delete unnecessary files | |
run "rm README" | |
run "rm public/index.html" | |
run "rm public/favicon.ico" | |
run "rm public/robots.txt" | |
run "rm public/images/rails.png" |
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
module Spree | |
module NorthernfliesCouponCalculator | |
class Calculator | |
def applyCoupon(order) | |
end | |
end | |
end | |
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
SELECT order_id,product_name,qty | |
FROM orders | |
INTO OUTFILE '/tmp/orders.csv' | |
FIELDS TERMINATED BY ',' | |
ENCLOSED BY '"' | |
LINES TERMINATED BY '\n' |
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
# Link to local copy of edge rails | |
#inside('vendor') { run 'ln -s ~/dev/rails rails' } | |
# Delete unnecessary files | |
run "rm README" | |
run "rm public/index.html" | |
run "rm public/favicon.ico" | |
run "rm public/robots.txt" | |
run "rm public/images/rails.png" | |
run "rm -f public/javascripts/*" |
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
<div id="menu" > | |
<r:find url="/nl/"> | |
<ul class="adxm menu"> | |
<r:snippet name="menu" /> | |
</ul> | |
</r:find> | |
</div> | |
The snippet "menu" : |
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
# config.gem "rspec", :lib => false, :version => ">=1.2.6" unless File.directory?(File.join(Rails.root, 'vendor/plugins/rspec')) | |
# config.gem "rspec-rails", :lib => 'spec/rails', :version => ">=1.2.6" unless File.directory?(File.join(Rails.root, 'vendor/plugins/rspec-rails')) |
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
namespace :assets do | |
desc "create symlinks from shared resources to the release path" | |
task :symlink, :roles => :app do | |
assets.create_dirs | |
run "rm -rf #{release_path}/public/images/products" | |
run "rm -rf #{release_path}/public/assets/products" | |
run "mkdir -p #{release_path}/public/assets" | |
run "ln -nfs #{shared_path}/uploaded-files #{release_path}/public/images/products" | |
run "ln -nfs #{shared_path}/uploaded-files #{release_path}/public/assets/products" |
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
OrderMailer.class_eval do | |
def confirm(order, resend = false) | |
@subject = (resend ? "[RESEND] " : "") | |
@subject += Spree::Config[:site_name] + ' ' + 'Order Confirmation #' + order.number | |
@body = {"order" => order} | |
@recipients = order.email | |
@from = Spree::Config[:order_from] | |
@bcc = order_bcc | |
@sent_on = Time.now | |
@content_type = "multipart/mixed" |
OlderNewer