Skip to content

Instantly share code, notes, and snippets.

#
# Bash completion for fabric
#
function _fab_complete() {
local cur
if [[ -f "fabfile.py" || -d "fabfile" ]]; then
#!/bin/sh
# Some things taken from here
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx
# Set the colours you can use
black='\033[0;30m'
white='\033[0;37m'
red='\033[0;31m'
green='\033[0;32m'
#!/usr/bin/env python
from dbus.mainloop.glib import DBusGMainLoop
import subprocess
import gobject
import dbus
appName = 'Spotify Media Keys'
$(function(){
$('input.default').each(function(){
input = $(this);
input.data("val", input.val());
input.click(function(){
input = $(this);
if(input.val() == input.data("val")) {
input.val("");