I hereby claim:
- I am ryangreenberg on github.
- I am greenberg (https://keybase.io/greenberg) on keybase.
- I have a public key ASD6FvBRMmusPQi7-AlIy2dD3BBeGlOgsVl_P2Bu3f6yiAo
To claim this, I am signing this object:
| #!/usr/bin/env ruby | |
| # Turns tab-separated lines into Atlassian or Markdown formatted tables, with header. | |
| # | |
| # USAGE: copy some query results from SequelPro or some data out of a Google spredsheet, including header, then: | |
| # > pbpaste | tableize | pbcopy | |
| # paste in Jira. | |
| # | |
| # | |
| # Atlassian Syntax: |
I hereby claim:
To claim this, I am signing this object:
| val s: Seq[Int] = Seq(1,2,3) | |
| val a: Seq[Int] = Array(1,2,3) | |
| def pp(xs: Seq[Int]) = xs match { | |
| case 1 :: 2 :: 3 :: Nil => "we got a match, baby" | |
| case _ => "who knows" | |
| } | |
| pp(s) // "we got a match, baby" | |
| pp(a) // "who knows" |
| #!/bin/bash | |
| # Executes the provided command and provides notification when execution has | |
| # completed | |
| # | |
| # Usage: tellme <cmd> | |
| # | |
| # Examples: | |
| # | |
| # tellme ./pants compile science:: |
| #!/bin/bash | |
| # Versions | |
| scalac -version | |
| sbt --version | |
| java -version | |
| # Create project | |
| mkdir -p twitter-server_repro && cd twitter-server_repro |
| javascript:(function(){if(window.location.href.indexOf("reviewboard")!=-1){var pendingReview=gReviewRequest.createReview();pendingReview.ship_it=true;pendingReview.body_top="";pendingReview.publish({success:function(){window.location.reload();}});}else{alert("You are trying to ship something outside ReviewBoard. That's crazy.");}})(); |
| #!/usr/bin/env ruby -KU | |
| require 'rubygems' | |
| require 'thrift' | |
| ex = Thrift::TransportException.new(Thrift::TransportException::NOT_OPEN, "it was not open") | |
| wrapped_ex = begin | |
| raise Thrift::TransportException, ex.message, ex.backtrace | |
| rescue StandardError => e |
| #!/usr/bin/env ruby -KU | |
| require 'open-uri' | |
| require 'rubygems' | |
| require 'json' | |
| CHECK_INTERVAL = 5 # seconds | |
| NOTIFICATION_CENTER = "/Applications/Utilities/terminal-notifier.app/Contents/MacOS/terminal-notifier" | |
| PASS = "SUCCESS" | |
| FAIL = "FAILURE" |
| #!/bin/bash | |
| INPUT_FILE=input | |
| OUTPUT_FILE=output | |
| LAST_RUN=$(date "+%s") | |
| LAST_MODIFIED=$LAST_RUN | |
| touch $INPUT_FILE | |
| touch $OUTPUT_FILE |