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
# Convert xib files to Cappuccino cib files. | |
# | |
# Run with | |
# | |
# rake cib | |
# | |
# Will only re-generate the XIB files that are newer than their CIB counterparts. | |
rule '.cib' => '.xib' do |t| |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>CPBundleExecutable</key> | |
<string>exp-animation.sj</string> | |
<key>CPBundleIdentifier</key> | |
<string>com.topfunky.expAnimation</string> | |
<key>CPBundleInfoDictionaryVersion</key> | |
<real>6.0</real> |
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
namespace :ae do | |
desc "Render After Effects Titles and Diagrams" | |
task :render do | |
mkdir_p "artwork/after_effects_rendered" | |
Dir['artwork/after_effects/[0-9]*.aep'].each do |aep_project_name| | |
aep_project_name = File.expand_path(aep_project_name) | |
mov_output_name = aep_project_name.gsub(/\.aep/, '.mov').gsub(/artwork\/after_effects/, 'artwork/after_effects_rendered') | |
command = ["'/Applications/Adobe After Effects CS4/aerender'", |
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
namespace :ae do | |
desc "Render After Effects Titles and Diagrams" | |
task :render do | |
mkdir_p "artwork/after_effects_rendered" | |
Dir['artwork/after_effects/[0-9]*.aep'].each do |aep_project_name| | |
aep_project_name = File.expand_path(aep_project_name) | |
mov_output_name = aep_project_name.gsub(/\.aep/, '.mov').gsub(/artwork\/after_effects/, 'artwork/after_effects_rendered') | |
command = ["'/Applications/Adobe After Effects CS4/aerender'", |
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
#!/opt/ruby-enterprise/bin/ruby | |
# MODIFIED: Minor fork to run smoothly under Ruby 1.8.6. Heredoc cleanup. | |
require 'rubygems' | |
require 'beanstalk-client' | |
if ARGV.length > 0 && ARGV[0] == 'config' | |
puts <<-END | |
graph_category App |
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
# Create a remote Mercurial repository and clone locally. | |
# Mercurial can manage an empty directory, so it can be done simply. | |
function hg-new { | |
ssh user@example.com "hg init $1" && hg clone ssh://user@example.com/$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
#!/usr/bin/env ruby | |
# Textileise things. | |
# Take Textile markup on STDIN, and output HTML to STDOUT | |
require "rubygems" | |
require "redcloth" | |
print (RedCloth.new STDIN.read).to_html |
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
if (Dir.exist?(NSBundle.mainBundle.privateFrameworksPath)) | |
$:.map! { |x| x.sub(/^\/Library\/Frameworks/, NSBundle.mainBundle.privateFrameworksPath) } | |
$:.unshift NSBundle.mainBundle.resourcePath.fileSystemRepresentation | |
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
(defun enter-to-previous-line () | |
(interactive) | |
(beginning-of-line) | |
(newline-and-indent) | |
(previous-line) | |
(indent-according-to-mode)) | |
(define-key textmate-mode-map [C-return] 'enter-to-previous-line) | |
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/perl | |
# Graphical tree output of a filesystem | |
# `tree somepath_to_start_from` | |
# | |
# TODO show actual graphical output with dashes and bars | |
# TODO allow command-line options | |
use strict; | |
use File::Find; |