Create droplet of your liking (ubuntu 12.10 x32)
ssh to root in terminal with your server ip
ssh [email protected]
Add ssh fingerprint and enter password provided in email
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
Create droplet of your liking (ubuntu 12.10 x32)
ssh to root in terminal with your server ip
ssh [email protected]
Add ssh fingerprint and enter password provided in email
# db/migrate/20111218135715_globalize_models.rb | |
class GlobalizeModels < ActiveRecord::Migration | |
def up | |
NewsItem.create_translation_table!( | |
{:title => :string, :body => :text}, | |
{:migrate_data => true} | |
) | |
end |
This helper has finally been moved into a gem called nav_lynx!
https://github.com/vigetlabs/nav_lynx
http://rubygems.org/gems/nav_lynx
Thanks to @brianjlandau and @reagent for getting that set up and tested!
{ | |
"AL": "Alabama", | |
"AK": "Alaska", | |
"AS": "American Samoa", | |
"AZ": "Arizona", | |
"AR": "Arkansas", | |
"CA": "California", | |
"CO": "Colorado", | |
"CT": "Connecticut", | |
"DE": "Delaware", |
/* | |
* Updated to use the function-based method described in http://www.phpied.com/social-button-bffs/ | |
* Better handling of scripts without supplied ids. | |
* | |
* N.B. Be sure to include Google Analytics's _gaq and Facebook's fbAsyncInit prior to this function. | |
*/ | |
(function(doc, script) { | |
var js, | |
fjs = doc.getElementsByTagName(script)[0], |
sudo ln -sf /usr/share/zoneinfo/UTC /etc/localtime |
/** | |
* Implement function check (text) which checks whether brackets within text are correctly nested. | |
* You need to consider brackets of three kinds: (), [], {}. | |
*/ | |
/** | |
* STACK approach | |
*/ | |
function check(str){ | |
var brackets = "()[]{}", |
xcodebuild -exportArchive -exportFormat ipa -archivePath {PATH}/MyApp.xcarchive -exportPath ~/Desktop/MyApp.ipa |