Skip to content

Instantly share code, notes, and snippets.

#!/usr/bin/env ruby
require 'io/console'
begin
require 'colorize'
rescue LoadError
puts 'Running without colors. Install colorize gem for colors'
end
branches = `git branch --sort=-committerdate | head -n 10`.lines
{
repository(owner: "facebook", name: "mention-bot") {
object(expression: "4f897712d6ea78aa25bb4772011cc248a2294138") {
... on Commit {
blame(path: "cookieJar.js") {
ranges {
startingLine
endingLine
age
commit {

Keybase proof

I hereby claim:

  • I am trevorcreech on github.
  • I am trevor (https://keybase.io/trevor) on keybase.
  • I have a public key whose fingerprint is D265 C681 0968 FD68 D8D3 068C 27EF EBFE D95B 4957

To claim this, I am signing this object:

# Barcode parser for hackaday
require 'rubygems'
require 'RMagick'
codes = {"332111"=>"[", "211313"=>"G", "231131"=>"R", "214121"=>"z", "241112"=>"n", "241211"=>"k", "213131"=>"U", "123122"=>"0", "123221"=>"1", "122132"=>"-", "122231"=>".", "412121"=>"{", "413111"=>"m", "322112"=>"<", "322211"=>"=", "112232"=>",", "321122"=>"9", "321221"=>":", "112133"=>"J", "112331"=>"K", "231212"=>"+", "231113"=>"H", "231311"=>"I", "213212"=>"5", "213113"=>"S", "213311"=>"T", "122411"=>"h", "122114"=>"g", "122213"=>"&", "122312"=>"'", "311222"=>"8", "311123"=>"V", "311321"=>"W", "111341"=>"}", "111143"=>"|", "111242"=>"p", "112412"=>"f", "112214"=>"e", "112313"=>"D", "132131"=>"L", "212222"=>" ", "212321"=>"?", "142211"=>"j", "142112"=>"i", "121421"=>"b", "331121"=>"X", "131141"=>"~", "212141"=>"y", "121241"=>"r", "121142"=>"q", "232121"=>"@", "314111"=>"\\", "111323"=>"A", "111224"=>"_", "111422"=>"`", "223211"=>"2", "223112"=>"6", "124211"=>"u", "124112"=>"t", "141221"=>"d", "141122"=>"c", "132212"=>"(", "132113"=>"E", "