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
| # 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 | |
| # username@Machine ~/dev/dir[master*]$ # dirty working directory | |
| function parse_git_dirty { | |
| [[ $(git status 2> /dev/null | tail -n1) != "nothing to commit (working directory clean)" ]] && echo "*" | |
| } | |
| function parse_git_branch { | |
| git branch --no-color 2> /dev/null | sed -e '/^[^*]/d' -e "s/* \(.*\)/[\1$(parse_git_dirty)]/" |
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
| Experiments in revision control: Curry recipe. | |
| My personal recipe for Japanese curry, which has mutated over the years and is | |
| now open-source thanks to github, hot damn. Some of the ingredients are not | |
| very Japanese, but curry came to Japan from England which got it from India to | |
| begin with, so whatever. | |
| 1.5 - 2 lbs. of meat, prefer thin-sliced beef (komagire), pork works, too. | |
| Thin-sliced stuff is always best, but in a pinch stewing beef works. Bacon | |
| works surprisingly well. Chicken will work, technically, but if you must, |
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
| # 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 | |
| # username@Machine ~/dev/dir[master*]$ # dirty working directory | |
| function parse_git_dirty { | |
| [[ $(git status 2> /dev/null | tail -n1) != "nothing to commit (working directory clean)" ]] && echo "*" | |
| } | |
| function parse_git_branch { | |
| git branch --no-color 2> /dev/null | sed -e '/^[^*]/d' -e "s/* \(.*\)/[\1$(parse_git_dirty)]/" |
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
| // | |
| // EGOTitledTableViewCell.h | |
| // EGOClasses | |
| // | |
| // Created by Shaun Harrison on 6/2/09. | |
| // Copyright 2009 enormego. All rights reserved. | |
| // | |
| #import <UIKit/UIKit.h> |
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
| <?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"> | |
| <dict> | |
| <key>beforeRunningCommand</key> | |
| <string>nop</string> | |
| <key>bundleUUID</key> | |
| <string>5A9D4FC6-6CBE-11D9-A21B-000D93589AF6</string> | |
| <key>command</key> | |
| <string>#!/usr/bin/env ruby |
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
| *.pbxproj -crlf -diff -merge |
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
| *.pbxproj -crlf -diff -merge |
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
| var posix = require('posix'), | |
| sys = require('sys'), | |
| http = require('http'); | |
| http.createServer(function (req, res) { | |
| checkBalanceFile(req, res); | |
| }).listen(8000); | |
| function checkBalanceFile(req, res) { | |
| var promise = posix.stat("balance"); |
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
| /*global require, process */ | |
| (function() { | |
| var http = require('http'), posix = require('posix'), url = require('url'), cache = {}, mime_types = {}; | |
| function extname(path) { | |
| var index = path.lastIndexOf('.'); | |
| if (index < 0) { | |
| return; | |
| } | |
| return path.slice(index + 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
| var | |
| fs = require('fs'), | |
| sys = require('sys'), | |
| http = require('http'), | |
| client = http.createClient(80, 'build.chromium.org'), | |
| urlPath = '/buildbot/snapshots/chromium-rel-mac/', | |
| filename = 'chrome-mac.zip', | |
| dir = 'chrome-mac', | |
| path = '/tmp/', | |
| ext = '.zip', |
OlderNewer