Skip to content

Instantly share code, notes, and snippets.

View trodrigues's full-sized avatar
😸
:3

Tiago Rodrigues trodrigues

😸
:3
View GitHub Profile
@trodrigues
trodrigues / gist:3654769
Created September 6, 2012 10:55 — forked from jneves/gist:3654732
Greasemonkey script
// ==UserScript==
// @name Hootsuite promoted tweets never more
// @namespace http://localhost
// @description Remove hootsuite promoted tweets
// @include https://hootsuite.com/dashboard*
// @version 1
// ==/UserScript==
function addCss(cssString) {
var head = document.getElementsByTagName('head')[0];
var fs = require('fs');
fs.readFile('file', function (ಠ_ಠ, data) {
if (ಠ_ಠ) {
throw "(╯°□°)╯︵ ┻━┻)";
}
});
@trodrigues
trodrigues / vim.rb
Created November 14, 2011 14:04 — forked from uasi/vim.rb
Vim formula for Homebrew
require 'formula'
class Vim < Formula
homepage 'http://www.vim.org/'
url 'ftp://ftp.vim.org/pub/vim/unix/vim-7.3.tar.bz2'
head 'https://vim.googlecode.com/hg/'
sha256 '5c5d5d6e07f1bbc49b6fe3906ff8a7e39b049928b68195b38e3e3d347100221d'
version '7.3.294'
def features; %w(tiny small normal big huge) end
{
"cars": [
{"make": "Honda", "model": "Accord"},
{"make": "Ford", "model": "Taurus"},
]
}
@trodrigues
trodrigues / html5.vim
Created August 10, 2010 12:43 — forked from gf3/html5.vim
" Vim syntax file
" Language: HTML (version 5)
" Maintainer: Rodrigo Machado <rcmachado@gmail.com>
" URL: http://rm.blog.br/vim/syntax/html.vim
" Last Change: 2009 Aug 19
" License: Public domain
" (but let me know if you liked it :) )
"
" Note: This file just adds the new tags from HTML 5
" and don't replace default html.vim syntax file
/* Use this to cause a function to fire no more than once every 'ms' milliseconds.
For example, an expensive mousemove handler:
$('body').mouseover(ratelimit(function(ev) {
// ...
}, 250));
*/
function ratelimit(fn, ms) {
var last = (new Date()).getTime();