Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Comparing changes

Choose two branches to see what's changed or to start a new pull request. If you need to, you can also compare across forks.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also compare across forks.
base: e1180e2c6b
...
compare: c65e9fb6bb
Checking mergeability… Don't worry, you can still create the pull request.
  • 8 commits
  • 5 files changed
  • 0 commit comments
  • 1 contributor
Showing with 83 additions and 20 deletions.
  1. +2 −2 bash/aliases
  2. +2 −0  bash_profile
  3. +0 −2  gemrc
  4. +66 −5 gitignore
  5. +13 −11 irbrc
View
4 bash/aliases
@@ -41,7 +41,7 @@ alias sc='script/console'
alias ss='script/server'
alias sg='script/generate'
alias tlog='tail -f log/development.log'
-alias bi='bundle install --binstubs=, --path=.bundle/gems --without=production'
+alias bi='bundle install --binstubs=, --path=.bundle/gems'
alias bu='bundle update'
# git stuff
@@ -100,7 +100,7 @@ alias tus="tmux switch-client -t"
alias v="vim"
alias p="python"
-alias e.='e . &'
+alias e.='e .'
# hack && ship
alias hs="hack && ship"
View
2  bash_profile
@@ -15,3 +15,5 @@ fi
export PATH=,:"${PATH}"
[[ -s "$HOME/.gvm/scripts/gvm" ]] && source "$HOME/.gvm/scripts/gvm"
+
+[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm" # Load RVM into a shell session *as a function*
View
2  gemrc
@@ -2,8 +2,6 @@
:bulk_threshold: 1000
:sources:
- http://gemcutter.org
-- http://gems.rubyforge.org/
-- http://gems.github.com
gem: --no-ri --no-rdoc
:benchmark: false
:update_sources: true
View
71 gitignore
@@ -1,18 +1,44 @@
+## General
.*.swp
-tags
.swo
*.scratch.*
*~
.DS_Store
.svn
-# Ruby
+## Ruby
,
.bundle
.sass-cache
.rbenv-version
+*.gem
+*.rbc
+.config
+coverage
+rdoc
+spec/reports
+test/tmp
+test/version_tmp
+tmp
+# Rails
+*.rbc
+*.sassc
+.sass-cache
+capybara-*.html
+.rspec
+/.bundle
+/vendor/bundle
+/log/*
+/tmp/*
+/db/*.sqlite3
+/public/system/*
+/coverage/
+/spec/tmp/*
+**.orig
+rerun.txt
+pickle-email-*.html
-# Xcode
+## Xcode
build/*
*.pbxuser
!default.pbxuser
@@ -25,6 +51,41 @@ build/*
*.xcworkspace
!default.xcworkspace
xcuserdata
-profile
+/profile
*.moved-aside
-coverage/
+
+## Go
+# Compiled Object files, Static and Dynamic libs (Shared Objects)
+*.o
+*.a
+*.so
+# Folders
+_obj
+_test
+# Architecture specific extensions/prefixes
+*.[568vq]
+[568vq].out
+# Others
+*.cgo1.go
+*.cgo2.c
+_cgo_defun.c
+_cgo_gotypes.go
+_cgo_export.*
+_testmain.go
+
+
+## Node.js
+lib-cov
+*.seed
+*.log
+*.csv
+*.dat
+*.out
+*.pid
+*.gz
+pids
+logs
+results
+node_modules
+npm-debug.log
+
View
24 irbrc
@@ -1,15 +1,9 @@
-# print SQL to STDOUT
-if ENV.include?('RAILS_ENV') && !Object.const_defined?('RAILS_DEFAULT_LOGGER')
- require 'logger'
- RAILS_DEFAULT_LOGGER = Logger.new(STDOUT)
-end
-
# Autocomplete
require 'irb/completion'
IRB.conf[:PROMPT_MODE] = :SIMPLE
-%w[rubygems looksee wirble].each do |g|
+%w[rubygems interactive_editor].each do |g|
begin
require g
rescue LoadError
@@ -17,14 +11,12 @@ IRB.conf[:PROMPT_MODE] = :SIMPLE
end
end
-Looksee.editor = "mate -l%l %f" if defined? Looksee
-
# Prompt behavior
ARGV.concat [ "--readline", "--prompt-mode", "simple" ]
# History
require 'irb/ext/save-history'
-IRB.conf[:SAVE_HISTORY] = 100
+IRB.conf[:SAVE_HISTORY] = 10000
IRB.conf[:HISTORY_FILE] = "#{ENV['HOME']}/.irb-save-history"
# Easily print methods local to an object's class
@@ -32,7 +24,7 @@ class Object
def local_methods(obj = self)
(obj.methods - obj.class.superclass.instance_methods).sort
end
-
+
# print documentation
#
# ri 'Array#pop'
@@ -63,3 +55,13 @@ end
def paste
`pbpaste`
end
+
+def quick(repetitions=100, &block)
+ require 'benchmark'
+
+ Benchmark.bmbm do |b|
+ b.report {repetitions.times &block}
+ end
+ nil
+end
+

No commit comments for this range

Something went wrong with that request. Please try again.