This file contains 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
/*********************************************************************** | |
* Little script to make all the files under a certain directory safe. * | |
* Works only on Mac OS X. Tested on 10.5 and 10.6 * | |
* * | |
* Written by bojo (Bo Johansson) in a comment on Mac OS X Hint: * | |
* http://hints.macworld.com/article.php?story=20071029151619619 * | |
***********************************************************************/ | |
/* Compile by | |
* gcc -O2 -Wall removexattr.c -o removexattr |
This file contains 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/env ruby | |
# NOTES: | |
# - This script only works on OS X. | |
# - This script was only tested with ruby 1.9.2 using | |
# the aaronh-chronic gem. If the chronic gem is used | |
# instead, this script will not work (unless the chronic | |
# gem was updated to work with ruby 1.9.2). | |
require 'rubygems' |
This file contains 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/env bash | |
# This is an RVM Project .rvmrc file, used to automatically load the ruby | |
# development environment upon cd'ing into the directory | |
# First we specify our desired <ruby>[@<gemset>], the @gemset name is optional. | |
environment_id="ruby-1.9.2-p136" | |
# | |
# First we attempt to load the desired environment directly from the environment |
This file contains 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
" -OS-Check--------------------------------------------------------------------- | |
function! MySys() | |
if has("win32") | |
return "win32" | |
elseif has("mac") || has("macunix") | |
return "mac" | |
elseif has("unix") | |
return "unix" | |
else | |
return "unix" |
This file contains 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/env ruby | |
# Version (0.79) | |
# Created by Artem Titoulenko (artem.titoulenko@gmail.com) | |
# clock in application. I'm tired of counting. | |
# C.rb -- Time keeping script. | |
# Call with no params to clock in/out | |
# Params: | |
# ? : are you clocked in? check | |
# log : peek at the work log |
This file contains 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
class String | |
def humanize | |
self.split(/[-_]/).map {|w| w.capitalize }.join(' ') | |
end | |
end |
This file contains 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/env ruby | |
# encoding: utf-8 | |
COLORS_ENABLED = TRUE | |
VALID_TASKS = { | |
"TODO" => /TODO[\s,:]+(\S.*)$/, | |
"FIXME" => /FIX ?ME[\s,:]+(\S.*)$/, | |
"CHANGED" => /CHANGED[\s,:]+(\S.*)$/, | |
"NOTE" => /NOTE[\s,:]+(\S.*)$/ |
This file contains 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
// | |
// Created by Robert Audi on 07/04/13. | |
// Updated on 08/21/14 | |
// | |
#import <Foundation/Foundation.h> | |
@interface NSString (RAInflections) | |
- (NSString *)slugalize; |
This file contains 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
KEYWORDS="FIXME:|\?\?\?:|\!\!\!:" | |
find "${SRCROOT}" \( -name "*.h" -or -name "*.m" \) -print0 | xargs -0 egrep --with-filename --line-number --only-matching "($KEYWORDS).*\$" | perl -p -e "s/($KEYWORDS)/ warning: \$1/" |
This file contains 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
brew install imagemagick |