View gist:9477044
a counterpoint
a pair, article and a response
View gist:8816670
#!/usr/bin/env ruby
require 'jenkins_api_client'
require 'ruby-debug'
CI_PROJECT_NAME = "server_responder"
@client = => 'localhost',
:server_port => '8888',
:username => 'somename',
View churn_swagger_client.rb
$:.unshift "#{File.dirname(__FILE__)}/lib"
require "swagger"
# Get request API endpoints
require "index_api"
require "project_name_api.rb"
require "project_path_api.rb"
# Post request endpoints
View gist:8610207
./bin/ -DskipErrors com.wordnik.swagger.codegen.BasicRubyGenerator "key"
base path is
********* Failed to read swagger json!
Error: Operation - responseClass | missing required field
**** ignoring errors and continuing
swagger version: 1.2
api version: 1.0
missing models: Set()
View gist:7295057
Crepes with veggies:
Corn cakes, if there is still any corn tomorrow:
Stuffed peppers:
Chili mac and cheese;
View tap_with_each.rb
# do this opposed to each_with_object or inject
# from
by_id = {}.tap{ |h| items.each{ |item| h[] = item } }
View logstash config for util server
# logstash config
input {
syslog {
type => syslog
port => 514
output {
stdout { debug => true debug_format => "json"}
View nethttp_vs_restclient.rb
#!/usr/bin/env ruby
require 'rest_client'
require 'net/http'
require 'benchmark'
URL = ''
time = Benchmark.realtime do
(1..100).each {
url = URI.parse(URL)
req =
View gist:5087142
Facebook is one of the most feature-rich apps available for Android. With features like push notifications, news feed, and an embedded version of Facebook Messenger (a complete app in its own right) all working together in real-time, the complexity and volume of code creates technical challenges that few, if any, other Android developers face--especially on older versions of the platform. (Our latest apps support Android versions as old as Froyo--Android version 2.2--which is almost three years old.)
One of these challenges is related to the way Android's runtime engine, the Dalvik Virtual Machine, handles Java methods. Late last year we completed a major rebuild of our Android app (, which involved moving a lot of our code from JavaScript to Java, as well as using newer abstractions that encouraged large numbers of small methods (generally considered a good programming practice). Unfortuna
View gist:5078067
#when scripting against rvm with a terminal shell, you might need to source this to use RVM files etc, tip from LS chat room
source ~/.rvm/scripts/rvm