Skip to content

Instantly share code, notes, and snippets.

@alvesjtiago
alvesjtiago / Google scripts
Last active October 11, 2015 16:47
How to install Google Scripts
How to install Google Scripts
1 - Go to https://drive.google.com
2 - Create a new spreadsheet
3 - Select "Tools" on the menu bar
4 - Then "Script Gallery"
5 - Search for your script (ex: "year old")
6 - Click install
7 - Follow instructions
@alvesjtiago
alvesjtiago / Prawn warning fix
Created September 3, 2012 10:26
Prevent Prawn "warning: already initialized constant PDF"
if Mime::Type.lookup_by_extension(:pdf) != 'application/pdf'
Mime::Type.register('application/pdf', :pdf)
end
@alvesjtiago
alvesjtiago / gist:3352479
Created August 14, 2012 20:16
Fix for Beta Prime tumblr theme animation queue
$("h2").click(function(){ $("#desc").stop(true, true).slideToggle() })
@alvesjtiago
alvesjtiago / post-commit
Created November 14, 2011 23:25
Git post-commit log to Kickoff
#!/bin/sh
#
# Hook script called after a successful commit is made.
#
# Commit is sent to Kickoff chat room with format - Gitbot: "Commit message" - Your name
#
# DON'T FORGET:
# - Change *ID* with your project ID
# - Change *TOKEN* with your project token