Create droplet of your liking (ubuntu 12.10 x32)
ssh to root in terminal with your server ip
ssh root@123.123.123.123
Add ssh fingerprint and enter password provided in email
class MyCustomCell < UITableViewCell | |
# This method is used by ProMotion to instantiate cells. | |
def initWithStyle(style_name, reuseIdentifier: reuseIdentifier) | |
super | |
stylish | |
self | |
end | |
# A delegate method when the user clicks the Row(it's blue by default) |
// Find the class of an object | |
const char* classNameChar = class_getName([viewObject class]); | |
NSString *className = [NSString stringWithFormat:@"%s", classNameChar]; |
quintesential |
/* FACEBOOK EVENTS BEST PRACTICES | |
=========================== | |
1. For most cases, you will want to subscribe to auth.authResponseChange rather than auth.statusChange. | |
The response is returned as a javascript array, not encoded as JSON. | |
2. Note that for some cases, the value of response is unkeyed, but when more than one variable is returned, it contains the appropriate keys. | |
3. You can subscribe multiple callbacks to one event using different function names. | |
=========================== */ | |
<%= form_for @user, :html => {:multipart => true} do |f| %> | |
<p> | |
<label>My Avatar URL:</label> | |
<%= image_tag(@user.avatar_url) if @user.avatar? %> | |
<%= f.text_field :remote_avatar_url %> | |
</p> | |
<% end %> |
haiku = -> | |
adjs = [ | |
"autumn", "hidden", "bitter", "misty", "silent", "empty", "dry", "dark", | |
"summer", "icy", "delicate", "quiet", "white", "cool", "spring", "winter", | |
"patient", "twilight", "dawn", "crimson", "wispy", "weathered", "blue", | |
"billowing", "broken", "cold", "damp", "falling", "frosty", "green", | |
"long", "late", "lingering", "bold", "little", "morning", "muddy", "old", | |
"red", "rough", "still", "small", "sparkling", "throbbing", "shy", | |
"wandering", "withered", "wild", "black", "young", "holy", "solitary", | |
"fragrant", "aged", "snowy", "proud", "floral", "restless", "divine", |
#To create a new scaffold for a gem: | |
Rails andrewgertig$ bundle gem gemname | |
#To build a gem | |
$ gem build gemname.gemspec | |
#To push a gem to Rubygems.org |
box-shadow:inset 0 1px 0 rgba(255,255,255,.6), 0 22px 70px 4px rgba(0,0,0,0.56), 0 0 0 1px rgba(0, 0, 0, 0.3); |