Skip to content

Instantly share code, notes, and snippets.

@jory
jory / rdio-queue.user.js
Created November 24, 2011 04:57
Adds a Queue button to the Rdio menu bar
// ==UserScript==
// @match http://www.rdio.com/*
// ==/UserScript==
function run() {
var menu = $('ul.menu').find('.has_menu.right');
var href = menu.find('a').first().attr('href') + 'playing';
var span = $('<span>');
span.addClass('title').text('Queue');
@jory
jory / gist:3658781
Created September 6, 2012 17:29
A MOTD with some variety
# Drop this into your .zshrc, and be happy.
# Also, you need to have cowsay and fortune installed, obviously.
echo ""
type=(`cowsay -l | sed -e '1d'`)
fortune | cowsay -f $type[$[RANDOM % $#type]] -n
echo ""
@jory
jory / .ackrc
Last active December 14, 2015 15:38
.ackrc
--type-set=json=.json
--type-set=coffee=.coffee
--type-set=sass=.sass,.scss
--type-set=hbs=.hbs
--type-set=gem=.gemspec
--type-set=haml=.haml
--type-set=md=.md
@mixin rainbow {
$colors: red, orange, yellow, green, blue, indigo, violet;
@for $i from 1 through 7 {
&:nth-of-type(#{$i}) {
background-color: nth($colors, $i);
}
}
}
module.exports = EventDecorator = Ember.Mixin.create
events:
"touchStart": "touchStart"
"touchMove": "touchMove"
"touchEnd": "touchEnd"
"touchCancel": "touchCancel"
"keyDown": "keyDown"
"keyUp": "keyUp"
"keyPress": "keyPress"
"mouseDown": "mouseDown"
#!/usr/local/bin/zsh
for repo in `ls -F | grep 'press' | grep '/'`; do
cd $repo
echo `pwd`
git stash save
git checkout master
git pull
cd ../
done
for repo in pressly-api pressly-dashboard pressly-data2 pressly-feeder; do
cd $repo
git checkout pressilla
git pull
cd ../
done
(defun require-cleanup ()
(interactive)
(save-excursion
(search-forward "require(")
(backward-word)
(let ((start (point-min)))
(save-excursion
(kill-region (point) (search-forward ")"))
(goto-char start)
RuntimeError (Finder not implemented for vimeoapi):
app/controllers/feeds_controller.rb:54:in `verify_feed_source'
.duration {
background-color: rgba(black, 0.8);
display: block;
text-align: center;
font-size: 11px;
font-weight: bold;
font-size: 11px;
line-height: 18px;
height: 18px;
}