Skip to content

Instantly share code, notes, and snippets.

View danielfahy's full-sized avatar
🕺
🕺

Daniel Fahy danielfahy

🕺
🕺
View GitHub Profile
@johana-star
johana-star / status_of_retweets.rb
Created December 10, 2011 02:36
Using the Twitter gem — looking to fix a truncating url issue.
=begin
I'm using the home_timeline method to get a collection of tweets, and it's giving me problems with tweets which have been retweeted. A retweet will often have a truncated URL in it's text like "http://t.co/V" in "RT @noirinp: The @adainitiative are open for donations! Donate @ http://t.co/T3obm0iQ or see cool stuff they're planning @ http://t.co/V ..."
by the way, you can pull this up in IRB with the following:
require "twitter"
tweet = Twitter.status(144927777588658177)
tweet.text
I'm using the code below to
=end
@matagus
matagus / hgrc
Created June 9, 2010 13:34
colorize your hg output <3
[extensions]
# enable color extension
color =
# enable extdiff extension (Extended Diff)
hgext.extdiff =
[extdiff]
# configure extended diff to use colordiff (requires colordiff installed in your system)
cmd.cdiff = colordiff
opts.cdiff = -uprN