http://www.mcdonalds.com.au
http://www.mcdonalds.co.kr
http://www.lonelyplanet.com
http://www.schweppes.com.au
http://www.visitvictoria.com
http://www.nsw.gov.au
http://www.intel.com
http://www.wheresocksgo.com
http://www.tushare.com
http://www.icmsworldwide.com
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
bundle exec cap production rails:console | |
c = Custcare::Contact.where(:email => '[email protected]').first | |
c.confirm! |
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
ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEA+FCOW20oxzv6i7hPMNycrlJ0SsmTSNl8IH6yI9CMXv0B4cwOt24dLNEaX95CaXWoHaqMv6u6vkfS8T7MSRMzCTBl7HIrkszXCT/WDtNTV/qaHurRPn0dlxJSeDc52p01+MdGC+b+e7rNRQSt0fV68X0R2EXn3amKfesLqNsv6GQXkzhvNpkafbBc+jIwsfFr0H8sdJODmdjMtugbysPrB+9b/lTPryg01J4Fubwux43X+rSqD5qbCEATeyFeKmb01rjFUQLtfFMRozaeMyzZqxtgQvGoiBiSNB/9hXoJA/oWog1l3yHfakBnkx3L10eN6HfHg2s+Uj6rEPxa2fal3Q== [email protected] |
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
#!/bin/bash | |
current_branch=$(git branch --no-color 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/\1/') | |
if [ "$current_branch" != "master" ]; then | |
echo "WARNING: You are on branch $current_branch, NOT master." | |
fi | |
echo -e "Fetching merged branches...\n" | |
git remote update --prune | |
remote_branches=$(git branch -r --merged | grep -v '/master$' | grep -v "/$current_branch$") |
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
class Mailer < ActionMailer::Base | |
default from: "[email protected]" | |
def notify | |
'notify' | |
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
def a | |
true | |
end | |
def b | |
true | |
end | |
def c | |
true | |
end | |
def d |
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
# Doesn't work when code = nil because the operator in the SQL should be 'is' not '=' | |
def shipping_options | |
if @promotion.present? | |
code = @promotion.code | |
else | |
code = nil | |
end | |
Shipping.where('promotion_code = ? AND is_bulky = ? AND minimum_spend <= ?', | |
code, self.bulky_order?, self.calculate_total_price.to_f) |
You don't drink beer, oh ok well I didn't know that you just said false things for the fun of it, why would you make multiple references to drinking beer at railscamp if you don't drink any beer? Or do you just put out a different appearance in public than you do in private?
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
require 'spec_helper' | |
describe "request spec test" do | |
before(:each) do | |
#log into devise (testing sub domains with capybara work around) | |
create_user() | |
sign_in | |
click_link_to_a_page() | |
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
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> | |
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> | |
<head> | |
<title>Test for large thing in iframe</title> | |
</head> | |
<body> | |
<div style="width: 2200px; height: 700px; background: gold;"> </div> | |
</body> | |
</html> |