Skip to content

Instantly share code, notes, and snippets.

@joaomoreno
joaomoreno / gist:1038899
Created June 21, 2011 21:03
[vim] Coffeescript syntax inside textile files
syn include @Coffee syntax/coffee.vim
syn region coffeeCode matchgroup=Snip start="{% highlight coffeescript %}" end="{% endhighlight %}" contains=@Coffee
@joaomoreno
joaomoreno / mass_like.js
Created April 4, 2011 23:29
Click all Like buttons in Facebook page
$('.like_link').filter(function(e){return $(this).attr('name') == 'like';}).each(function(i){$(this).click()});
@joaomoreno
joaomoreno / listc.py
Created November 22, 2010 13:14
list comprehensions environment mess
>>> a = 1
>>> print a
1
>>> [a for a in range(10)]
[0, 1, 2, 3, 4, 5, 6, 7, 8, 9]
>>> print a
9