Skip to content

Instantly share code, notes, and snippets.

View indiesquidge's full-sized avatar

Austin Wood indiesquidge

View GitHub Profile
@indiesquidge
indiesquidge / vim.log
Last active August 29, 2015 14:16
Logging file for opening Vim Buffer (if super slow)
# vim <filename.ext> --startuptime <log-file>
# eg. vim hello_world.rb --startuptime vim.log
================ Output ================
times in msec
clock self+sourced self: sourced script
clock elapsed: other lines
000.008 000.008: --- VIM STARTING ---

Credit Card Validator!

now with automated tests

Austin Wood

To Run

  1. run ruby credit_check_test.rb

To Debug via Pry

  1. Make sure you have installed Pry (gem install pry)