Skip to content

Instantly share code, notes, and snippets.

View jwhitmire's full-sized avatar

Jeff Whitmire jwhitmire

View GitHub Profile
#!/usr/bin/env ruby
def format_commit_info(timestamp, time_desc, commit_id, message, ref_name, upstream)
[
"#{timestamp.strftime("%y %b %d")}, #{timestamp.strftime("%l:%M%p").downcase}",
"(#{time_desc})",
commit_id,
message,
ref_name,
upstream || ''

Keybase proof

I hereby claim:

  • I am jwhitmire on github.
  • I am jwhitmire (https://keybase.io/jwhitmire) on keybase.
  • I have a public key whose fingerprint is BC6C 26FC 75D0 6810 81CD 23C5 5F68 7194 00D3 44F0

To claim this, I am signing this object:

@jwhitmire
jwhitmire / template-mysql2.rb
Created November 11, 2012 00:24
Rails 3 templates of interest to me
#
# Install mysql2 gem with local brew settings which normally fails during regular rails install
#
puts "Installing mysql2 gem"
run "gem install mysql2 -- --with-mysql-include=/usr/local/Cellar/mysql/5.5.27/include --with-mysql-lib=/usr/local/Cellar/mysql/5.5.27/lib"
@jwhitmire
jwhitmire / Ode to _why
Created August 20, 2010 02:50
Happy _whyday everybody! In honor of his absence, I've composed a little haiku that I think _why would appreciate. I think you'll agree it's quite ... like the man himself.
_why the lucky stiff
his brain was rare in the world
hackety hack -- brilliant
_why the lucky stiff
we miss him even today
how very poignant
_why the lucky stiff
sometimes didn't make much sense
@jwhitmire
jwhitmire / Readme
Created August 4, 2010 18:12
JQuery Datatables Plugin to modify the behavior of the filter field. There are other plugins that will allow you to adjust the delay on when the filter is submitted to the server. This one removes the delay/automatic submission entirely and only request
JQuery Datatables Plugin to modify the behavior of the filter field. There are other plugins that will allow you to adjust the delay on when the filter is submitted to the server. This one removes the delay/automatic submission entirely and only requests the redraw when you hit the enter key from the filter field.
This is my first time using datatables, and while I think this is pretty solid use at your own discretion.
[apa@apa apa-ci]$ rake db --trace
(in /var/www/apa-ci)
** Invoke db (first_time)
** Execute db
rake aborted!
can't convert Array into String
/home/apa/.bundle/ruby/1.8/gems/rack-1.2.1/lib/rack/utils.rb:138:in `union'
/home/apa/.bundle/ruby/1.8/gems/rack-1.2.1/lib/rack/utils.rb:138
/home/apa/.bundle/ruby/1.8/gems/rack-1.2.1/lib/rack/request.rb:1:in `require'
/home/apa/.bundle/ruby/1.8/gems/rack-1.2.1/lib/rack/request.rb:1
Running the tests outside of hydra
~/work/homeschool/hss ‹master*› $ rake spec
(in /Users/jeff/work/homeschool/hss)
/Users/jeff/.rvm/gems/ruby-1.8.7-p249/gems/rails-2.3.5/lib/rails/gem_dependency.rb:119:Warning: Gem::Dependency#version_requirements is deprecated and will be removed on or after August 2010. Use #requirement
.......................................................................................
Finished in 1.920293 seconds
87 examples, 0 failures
require 'formula'
class Screen <Formula
url 'http://ftp.gnu.org/gnu/screen/screen-4.0.3.tar.gz'
homepage 'http://www.gnu.org/software/screen/'
md5 '8506fd205028a96c741e4037de6e3c42'
def patches
# Patch stolen from the macports patch: http://trac.macports.org/ticket/20862
DATA
braid/vendor/plugins/newrelic-rpm
chart_bugs
cuke
db_optimization
food_upc
food_url
group_invites
integration_suite
js_testing
kissmetrics
Unpacking objects: 100% (21/21), done.
From /Users/jeff/.braid/cache/git_github.com_jwhitmire_oauth
342b5ee..080f49d master -> braid/vendor/gems/oauth/master
* [new tag] v0.3.0 -> v0.3.0
* [new tag] v0.3.1 -> v0.3.1
* [new tag] v0.3.2 -> v0.3.2
* [new tag] v0.3.2.1 -> v0.3.2.1
From /Users/jeff/.braid/cache/git_github.com_jwhitmire_oauth
* [new tag] v0.3.1.1 -> v0.3.1.1
* [new tag] v0.3.1.2 -> v0.3.1.2