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
# Much simpler, less work. Handles everything SASS can. | |
require 'haml/util' | |
require 'sass/engine' | |
module Jammit | |
module Helper | |
SASS_TIMESTAMPS = {} | |
def include_stylesheets_with_sass(*packages) |
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
# Usage: new-github topfunky tidy_table | |
function new-github() { | |
git remote add origin [email protected]:$1/$2.git | |
git push origin master | |
git config branch.master.remote origin | |
git config branch.master.merge refs/heads/master | |
git config push.default current | |
} |
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
function new-git () { | |
ssh [email protected] "mkdir $1.git && cd $1.git && git --bare init" | |
git remote add origin [email protected]:$1.git | |
git push origin master | |
git config branch.master.remote origin | |
git config branch.master.merge refs/heads/master | |
git config push.default current | |
} |
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
AFTER_EFFECTS_EXPORT_DIRECTORY = "film/after_effects" | |
rule ".mov" => proc {|task_name| | |
task_name.sub(/\.mov/, | |
'.aep').sub(AFTER_EFFECTS_EXPORT_DIRECTORY, | |
'artwork/after_effects') } do |t| | |
if !t.name.match("Adobe After Effects Auto-Save") | |
puts "Rendering #{t.source} to #{t.name}" | |
output_template = "Animation" |
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
### | |
Modified from https://github.com/jashkenas/coffee-script/blob/master/Cakefile | |
Part of an upcoming PeepCode screencast. This snippet is MIT Licensed. | |
### | |
{spawn, exec} = require 'child_process' | |
task 'assets:watch', 'Watch source files and build JS & CSS', (options) -> | |
runCommand = (name, args) -> |
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
tell application "Xcode" | |
activate | |
clean | |
build | |
launch | |
end tell |
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
" Vim color file | |
" Maintainer: Geoffrey Grosenbach <[email protected]> | |
" Last Change: 2010 June 3 | |
" License: Public Domain | |
" A color theme with a white background. Modified from an existing theme. | |
" | |
" It's supposed to look like the Emacs standard colors, at least | |
" for C. But Emacs has different categories, so it's not very good. |
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
;; For Emacs on Mac OS X http://emacsformacosx.com/ | |
;; Opens files in the existing frame instead of making new ones. | |
(setq ns-pop-up-frames nil) |
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
(defun byte-recompile-home () | |
"Speed load time" | |
(interactive) | |
(byte-recompile-directory "~/.emacs.d" 0)) |
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
(defun vim-open-buffer () | |
"Open current file in Vim" | |
(interactive) | |
(shell-command-to-string (concat "vim " buffer-file-name))) |