Skip to content

Instantly share code, notes, and snippets.

function sort(a,b) {
var first = a.substr(0).charCodeAt();
var second = b.substr(0).charCodeAt();
if(!first || first < second || first === second) return false;
return true;
}
function check_status() {
var status_text = $('.span6:first').find('.status');
var run_again = 0;
for(var n = 0; n < status_text.length; n++) {
./configure --enable-fail-if-missing --with-x --enable-gui --with-features=huge --enable-perlinterp --enable-rubyinterp --enable-pythoninterp --with-python-config-dir=/usr/bin/python --enable-sysmouse --enable-multibyte --enable-fontset
10/29/13 12:33:25.734 PM appleeventsd[105]: Sandboxed application with pid 36588 attempted to lookup App:"SpamSieve"/36617/0x0:0xe70e7 mtSS1010 sess=100006 but was denied due to sandboxing. (___ZL13handleMessageP17_xpc_connection_sPv_block_invoke260()/appleEventsD.cp #2413) client-reqs-q
{
"disallowKeywords": ["with"],
"disallowMixedSpacesAndTabs": true,
"disallowMultipleLineBreaks": true,
"disallowMultipleLineStrings": true,
"disallowMultipleSpaces" : true,
"disallowMultipleVarDecl": true,
"disallowNewlineBeforeBlockStatements": true,
"disallowQuotedKeysInObjects": "allButReserved",
"disallowSpaceAfterObjectKeys": true,
@ljepson
ljepson / ln.sh
Created August 5, 2012 22:20
Create symlinks for my dotfiles
#!/bin/bash
ln -s ~/git/dotfiles/bash_profile ~/.bash_profile;
ln -s ~/git/dotfiles/bashrc ~/.bashrc;
ln -s ~/git/dotfiles/inputrc ~/.inputrc;
ln -s ~/git/dotfiles/screenrc ~/.screenrc;
ln -s ~/git/dotfiles/vimrc ~/.vimrc;
ln -s ~/git/dotfiles/zshrc ~/.zshrc;
@ljepson
ljepson / gvoice.js
Created November 25, 2012 22:30
Google Voice Delete
var voice = {
jquery: '//ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js',
key_name: '_rnr_se',
key_value: function() {return jQuery('input[name="'+ voice.key_name +'"]').val()},
page: 1,
messages: [],
done: false,
init: function() {
var script = document.createElement('script'),
head = document.getElementsByTagName('head')[0];