Public Gists by shillcock

Gravatar
Sun Nov 01 21:43:52 -0800 2009
1
2
3
#include <QString>
#include <QtScript>
#include <QScriptValue>
Gravatar
Mon Oct 05 09:30:53 -0700 2009
1
2
3
// Seed random number generator.
struct timeval tv;
gettimeofday( &tv, 0 );
gist: 149633 http://iphonedevelopment.bl...
Gravatar
Sat Jul 18 10:52:36 -0700 2009
1
2
3
#import <Foundation/Foundation.h>
@interface NSDate(Misc)
+ (NSDate *)dateWithoutTime;
Gravatar
Mon Jul 13 10:44:05 -0700 2009
1
*.pbxproj -crlf -diff -merge
Gravatar
Mon Jul 13 10:44:05 -0700 2009
1
*.pbxproj -crlf -diff -merge
Gravatar
Tue Jun 23 13:53:53 -0700 2009
1
2
3
<?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">
<plist version="1.0">
Gravatar
Tue Jun 02 16:52:01 -0700 2009
1
2
3
//
// EGOTitledTableViewCell.h
// EGOClasses
Gravatar
Thu May 07 12:41:27 -0700 2009
1
2
3
#!/bin/sh
if [ ! "$1" = "" ] ; then
 
Gravatar
Wed May 06 15:13:06 -0700 2009
1
2
3
function gr {
    ## If the current working directory is inside of
    ## a git repository, this function will change
Gravatar
Thu Mar 12 10:52:54 -0700 2009
1
2
3
# http://henrik.nyh.se/2008/12/git-dirty-prompt
# http://www.simplisticcomplexity.com/2008/03/13/show-your-git-branch-name-in-your-prompt/
# username@Machine ~/dev/dir[master]$ # clean working directory
Gravatar
Thu Mar 12 10:37:41 -0700 2009
1
open -h MacErrors.h
Gravatar
Wed Mar 04 11:38:46 -0800 2009
1
2
3
# Disable Access to .svn directories
RewriteRule \.svn - [F]
 
Gravatar
Wed Feb 04 11:03:43 -0800 2009
1
2
3
Experiments in revision control: Curry recipe.
 
My personal recipe for Japanese curry, which has mutated over the years and is
Gravatar
Mon Jan 26 11:13:51 -0800 2009
1
2
3
# http://robsanheim.com/2009/01/14/upgrading-git-via-macports/
sudo port sync
sudo port deactivate git-core
Gravatar
Fri Jan 23 20:47:59 -0800 2009
1
2
#!/bin/sh
# shell script to backup a mysql database
 
Gravatar
Fri Jan 16 14:05:46 -0800 2009
1
2
3
# http://henrik.nyh.se/2008/12/git-dirty-prompt
# http://www.simplisticcomplexity.com/2008/03/13/show-your-git-branch-name-in-your-prompt/
# username@Machine ~/dev/dir[master]$ # clean working directory
Gravatar
Sat Jan 10 00:15:19 -0800 2009
1
2
3
imapsync --host1 imap.gmail.com \
--port1 993 --user1 user\@gmail.com \
--passfile1 ./passfile1 --ssl1 \
Gravatar
Tue Dec 30 15:52:16 -0800 2008
1
history | awk '{a[$2]++}END{for(i in a){print a[i] " " i}}' | sort -rn | head
Gravatar
Tue Dec 23 13:35:14 -0800 2008
1
find . -name .svn -print0 | xargs -0 rm -rf
Gravatar
Mon Dec 15 10:16:30 -0800 2008
1
2
3
parse_git_branch() {
  git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/(\1)/'
}