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
<body> | |
<script> | |
window.fbAsyncInit = function() { | |
FB.init({ | |
appId : 'YOUR_APP_ID', // App ID | |
status : true, // check login status | |
}); | |
// check if the view has registered an "after facebook load callback" | |
if(typeof window.appSpecificFbAsyncInit == 'function') { |
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
/* | |
* John Barton | |
* 201165023 | |
* jrba@deakin.edu.au | |
* | |
* The purpose of this program is to read a file, do some things with the data | |
* in that file, then output the results into another file. | |
* | |
* About the only thing i learnt about software development from this is that | |
* sitting down to do some "proper" pseudocode does me no good, when i look |
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
Mozilla/5.0 (iPhone; U; CPU iPhone OS 4_1 like Mac OS X; en-us) AppleWebKit/532.9 (KHTML, like Gecko) Version/4.0.5 Mobile/8B117 Safari/6531.22.7 (compatible; Googlebot-Mobile/2.1; +http://www.google.com/bot.html) |
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
/** | |
* Fuckin' list stylin' | |
*/ | |
li { | |
list-style-type: none; | |
margin-top: 5px; | |
} | |
li:before { |
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
/** | |
* Goodfilms New Header | |
*/ | |
/* Rectangle 4: */ | |
.box { | |
background: #FFA700; | |
width: 960px; | |
height: 100px; |
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
when_john_fucked_up = Time.new(2012, 4, 3, 2) # 2am the 3rd april UTC = roughly when i ran the emails in dev | |
EmailSubscription.where(:user_id => user_ids_sent_from_dev).map do |email_subscription| | |
email_subscription.update_attribute(:last_sent_at, when_john_fucked_up) | |
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
class AddEmailSubscriptions < ActiveRecord::Migration | |
def up | |
# ...SNIP... irreversible code | |
end | |
def down | |
raise "once you've gone black" | |
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
# Add this to your capfile if you're getting burned on first deploy to a new host | |
# If you're getting 'Host key verification failed.' errors on your initial | |
# checkout of a repo using capistrano, this will fix it up | |
task :a_friend_of_mine_is_a_friend_of_yours do | |
# transfer what *I* know about github to the host | |
github_known_hosts_line = `cat ~/.ssh/known_hosts | grep github.com` | |
run "echo #{github_known_hosts_line} >> ~/.ssh/known_hosts" | |
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
ObjectSpace.each_object do |object| | |
object.force_encoding("utf-8") if object.respond_to?(:force_encoding) | |
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
Note: For bist efict, rid these out loud!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! | |
Milbun – Capital of Victoria | |
Peck – To fill a suitcase | |
Pissed aside – Chemical which kills insects | |
Pigs – For hanging out washing | |
Pug – Large animal with curly tail | |
Nin tin dough – Computer game | |
Munner stroney – Soup | |
Min – Male of the species |