Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am patrick478 on github.
  • I am patrick478 (https://keybase.io/patrick478) on keybase.
  • I have a public key whose fingerprint is 4866 3ADD 3906 2CFA BAE9 2135 8917 2084 D4A1 2FF3

To claim this, I am signing this object:

def publish!
self.posted_at = Time.now
save!
if($redis.get("last_tweet_time") != nil)
last_tweet_time = Time.parse($redis.get("last_tweet_time"))
if((last_tweet_time + 1.hour) > Time.now)
schedule_time = last_tweet_time + 1.hour
puts "Delaying to" + schedule_time.to_s
### Associations
belongs_to :endorsed_user, class_name: "User", foreign_key: "endorsed_user_id", counter_cache: true,
belongs_to :endorsing_user, class_name: "User", foreign_key: "endorsing_user_id"
belongs_to :post, counter_cache: true
nameValuePairs.add(new BasicNameValuePair("topic[posts_attributes][content]", contentInput.getText().toString()));