Skip to content

Instantly share code, notes, and snippets.

View jdtornow's full-sized avatar

John D. Tornow jdtornow

View GitHub Profile

Keybase proof

I hereby claim:

  • I am jdtornow on github.
  • I am johntornow (https://keybase.io/johntornow) on keybase.
  • I have a public key whose fingerprint is 4CBF 4662 870E 1AE2 5599 6910 8CF9 0926 B7E2 926D

To claim this, I am signing this object:

@jdtornow
jdtornow / .gitignore
Last active July 24, 2020 10:52
A global git ignore file.
# OS Cruft
.DS_Store
.DS_Store?
._*
.Spotlight-V100
.Trashes
ehthumbs.db
Thumbs.db
# Bundler
<?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>KeepAlive</key>
<true/>
<key>Label</key>
<string>com.mysql.mysqld</string>
<key>Program</key>
<string>/usr/local/mysql/bin/mysqld_safe</string>
guard 'minitest' do
# Run all tests if the test_helper.rb file is changed
watch('test/test_helper.rb') { 'test' }
# Run all tests if we change a .rb file in lib or config
#watch(%r{^(lib|config)/(.*)\.rb}) { 'test' }
# If a model is changed, run the corresponding unit test file
watch(%r{^app/models/(.*)\.rb$}) { |m| "test/unit/#{m[1]}_test.rb" }
@jdtornow
jdtornow / gist:2639261
Created May 8, 2012 21:03
haml coffeescript filter
module Haml::Filters::CoffeeScript
include Haml::Filters::Base
def render(text)
result = ::CoffeeScript.compile(text)
"<script type=\"text/javascript\">\n#{result}</script>"
end
end
@jdtornow
jdtornow / .gitignore
Created April 7, 2012 16:51
Global .gitignore file
.DS_Store
/vendor/bundle
/.bundle
/log
/.yarddoc
/coverage
.rbenv-local
@jdtornow
jdtornow / gist:1845589
Created February 16, 2012 15:22
~/.bundle/config
---
BUNDLE_PATH: vendor/bundle