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
" Disable toolbar | |
if has("gui_running") | |
set guioptions=egmrt | |
endif | |
color rootwater | |
set guifont=Monaco:h12 | |
set spell |
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
# Setup dir so changes to a ruby version and gemset on entry | |
rvm --rvmrc --create <ruby>@<gemset> | |
# Backup a mysql database | |
mysqldump -u [username] -p [databasename] > [backupfile.sql] | |
# Stop mac from sleeping | |
pmset noidle | |
# Strip quotes around digits in VIM |
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
desc 'Uses graphviz to construct a graph of SuperCategories' | |
task :super_category_graph => :environment do | |
File.open('super_categories.dot', 'w') do |f| | |
f.puts "digraph super_categories {\n" | |
SuperCategory.all.each do |super_category| | |
super_category.children.each do |child| | |
f.puts %{"#{super_category.name}" -> "#{child.name}";\n} | |
end | |
end | |
f.puts '}' |
NewerOlder