Skip to content

Instantly share code, notes, and snippets.

View nickel's full-sized avatar
🎩

Juan Gallego IV nickel

🎩
View GitHub Profile
ENV["RAILS_ENV"] = "test"
require File.expand_path(File.dirname(__FILE__) + "/../config/environment")
require 'test_help'
require 'active_resource/http_mock'
class Test::Unit::TestCase
self.use_transactional_fixtures = true
self.use_instantiated_fixtures = false
def self.all_fixtures
@nickel
nickel / gist:39679
Created December 24, 2008 12:56
.bash_profile
#bash_profile:
alias reload='source ~/.bash_profile'
alias ll="ls -l"
alias la="ls -a"
alias lla="ls -la"
alias rm='rm -i'
alias srm='srm -i'
alias m=more
alias ..="cd .."
alias l="ls -AFhl"
module ActionView
module Helpers
module UrlHelper
def button_to(name, options = {}, html_options = {})
html_options = html_options.stringify_keys
convert_boolean_attributes!(html_options, %w( disabled ))
method_tag = ''
if (method = html_options.delete('method')) && %w{put delete}.include?(method.to_s)
method_tag = tag('input', :type => 'hidden', :name => '_method', :value => method.to_s)
# make bash autocomplete with up arrow
bind '"\e[A":history-search-backward'
bind '"\e[B":history-search-forward'
#bash_profile:
alias reload='source ~/.bash_profile'
alias ll="ls -l"
alias la="ls -a"
alias lla="ls -la"
alias rm='rm -i'
alias srm='srm -i'
alias m=more
alias ..="cd .."
alias l="ls -AFhl"