This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# | |
# uisetup | |
# | |
# This script will install the basic tools and utilities used | |
# on the UI team, and then it will kick off another script to | |
# install the shared development stack used by all developers | |
# create ~/bin if not already exists |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ARCDIR = /usr/local/share/arcanist | |
BINPATH = /usr/bin/arc | |
PHPPATH = /usr/bin/php | |
help: | |
@echo "no target specified." | |
@echo "try:" | |
@echo " make [ install | update | config_linters ]" | |
@echo "" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# | |
# Install UI tools | |
# - node | |
# - jshint | |
# - csslint | |
# - phantomjs | |
# - casperjs | |
# - specter |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /bin/bash | |
# | |
# USAGE: | |
# orphan [-dv] filename | |
# | |
# OPTIONS: | |
# -d delete the file if it is an orphan | |
# -f force (ie, don't prompt) | |
# -h display help text | |
# -v verbose |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# | |
# Searches all HTML files and matches those where a | |
# particular CSS class name is used | |
if command -v ag >/dev/null 2>&1 | |
then | |
# use silver-searcher if available | |
ag -G "\\.html$" "class=\"[^\"]*\\b$1\\b[^\"]*\"" | |
elif command -v ack >/dev/null 2>&1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /usr/bin/python | |
''' | |
EVENTCMD - | |
This script is meant to respond to external 'eventcmd' calls from | |
the mcabber command-line jabber client. | |
''' | |
import sys | |
import re | |
from os import remove, system |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Simple JS template rendering function */ | |
function render(obj, template) { | |
var re, v; | |
re = new RegExp("\\[\\[([^\\]]+)\\]\\]"); | |
while (match = re.exec(template)) { | |
val = obj[match[1]] || ''; | |
template = template.replace(match[0], val); | |
} | |
return template; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
filetype plugin on | |
filetype indent on | |
set ruler | |
set noerrorbells | |
set showmatch | |
set autoread | |
set ignorecase | |
set smartcase |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
Plugin Name: Crossposterous | |
Plugin URI: http://www.bbqiguana.com/wordpress-plugins/crossposterous/ | |
Description: This plugin will automatically cross-post your Wordpress blog entry to your Posterous site. | |
Version: 1.2.1 | |
Author: Randy Hunt | |
Author URI: http://www.bbqiguana.com/ | |
*/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
jQuery(function() { | |
if (jQuery('.post').length < 2) return; | |
jQuery(document).keypress(function(e) { | |
var f=false, b=false; | |
if (e.target.tagName.match(/input|textarea/i)) return; | |
switch (e.which) { | |
case 75: | |
case 107: | |
b=true; | |
break; |