Skip to content

Instantly share code, notes, and snippets.

View TalkingQuickly's full-sized avatar

Ben Dixon TalkingQuickly

View GitHub Profile
@TalkingQuickly
TalkingQuickly / baescamp_indent_bookmarklet.js
Created February 17, 2014 09:53
Simple bookmarklet which allows you to indent bullet points in Basecamp
javascript:indentBasecamp = function() { var cac = $('iframe')[0].contentWindow.getSelection().getRangeAt(0).commonAncestorContainer; if (cac.tagName === "LI") { theNode = cac; } else { theNode = cac.parentNode }; theNode.insertAdjacentHTML('afterend', '<ul><li></li></ul>'); }; indentBasecamp();
@TalkingQuickly
TalkingQuickly / gist:6636214
Created September 20, 2013 11:33
Simple unicorn nginx vhost file
upstream unicorn {
server unix:/tmp/unicorn.<%= application %>.sock fail_timeout=0;
}
server {
listen 80 default deferred;
root /home/deploy/apps/<%= application %>/current/public;
location ^~ /assets/ {
gzip_static on;
@TalkingQuickly
TalkingQuickly / README.markdown
Created September 25, 2012 13:55 — forked from isc/README.markdown
A micro gem providing an accordion view helper and a tabs view helper that generate the proper markup for Twitter Bootstrap

Twitter Bootstrap Components Helper

Provides an accordion helper and a tabs helper

In your Gemfile:

gem 'bootstrap-components-helpers', :git => 'git://gist.github.com/2117187.git'

Accordion helper: