Skip to content

Instantly share code, notes, and snippets.

View drudge's full-sized avatar

Nicholas Penree drudge

View GitHub Profile
@drudge
drudge / Diff.css
Created April 17, 2009 14:48
Diff Sugar
/*
@theme Diff Placeholder
@placeholder diff
*/
@base {
color: #333;
background-color: #fff;
}
#!/bin/sh
##
## grabAppFromCydia.sh
## Random scripts / Public domain
##
## Created by Nicholas Penree on 10/16/09.
## Copyright 2009 Conceited Software. All rights reserved.
##
version="0.5"
(*
* Entourage Mail.script
* Misc. Scripts
*
* Created by Nicholas Penree on 1/26/10.
* Copyright 2010 Conceited Software. All rights reserved.
*)
tell application "GrowlHelperApp"
set the allNotificationsList to {"New Mail"}
function get_defined_subclasses($class)
{
$classes = array();
foreach (get_declared_classes() as $className)
{
if (is_subclass_of($className, $class))
$classes[] = $className;
}
return $classes;
precmd() {
## Git info in the prompt
if [ -d "$PWD/.git" ]; then
export BRANCH=$(git branch --no-color 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/\1/')
export REV=$(git describe --tags --always $1 2>/dev/null || git rev-parse --short $1 2>/dev/null)
else
export BRANCH=""
export REV=""
fi
@drudge
drudge / lnkdrudgify.sh
Created December 1, 2010 03:02
drudge's config script for Linkinus 2
#!/bin/sh
UI_DOMAIN=net.conceited.Linkinus
AGENT_DOMAIN=${UI_DOMAIN}Agent
# UI
defaults write $UI_DOMAIN displayPrefix -bool true
defaults write $UI_DOMAIN displayModes -bool true
defaults write $UI_DOMAIN noticeToConsole -bool true
"" default to insert mode for most code files
"au BufWinEnter * set noinsertmode
"au BufWinEnter .vimrc,*.php,*.js,*.inc,*.jade,*.c,*.ejs,*.css,*.html,*.htm set insertmode | imap <buffer> <Esc> <C-l>
scriptencoding utf-8
set encoding=utf-8
set number
set cinoptions=
set noautoindent
set foldenable
@drudge
drudge / TWFormFieldStyle.h
Created June 13, 2011 22:24
Better style for IBAForms
#import <Foundation/Foundation.h>
#import "IBAFormFieldStyle.h"
// Form field label style
#define TWFormFieldLabelX 13
#define TWFormFieldLabelY 6
#define TWFormFieldLabelWidth 80
#define TWFormFieldLabelHeight 30
// Form field value style
# For complete documentation of this file, please see Geany's main documentation
[styling=C]
[keywords]
# all items must be in one line
##note: keywords can be found here: https://raw.github.com/jashkenas/coffee-script/master/src/lexer.coffee
primary=case default function var void with const let enum export import native __hasProp __extends __slice __bind __indexOf true false null this new delete typeof in instanceof return throw break continue debugger if else switch for while do try catch finally class extends super undefined then unless until loop of by when and or is isnt not yes no on off
secondary=Array Boolean Date Function Math Number Object String RegExp EvalError Error RangeError ReferenceError SyntaxError TypeError URIError prototype decodeURI decodeURIComponent encodeURI encodeURIComponent eval isFinite isNaN parseFloat parseInt
[settings]
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<!--
BBEdit Language Module for CoffeeScript
Put this file in
~/Library/Application Support/BBEdit/Language Modules
or equivalent.
Based off of the examples shipped in the BBEdit SDK.