View keybase.md

Keybase proof

I hereby claim:

  • I am ryanong on github.
  • I am ryanong (https://keybase.io/ryanong) on keybase.
  • I have a public key ASBRZGdZ9UuDs3nNbrSqVePEWul8ohFEnkoxuJewOCzTkgo

To claim this, I am signing this object:

View capybara.rb
# spec/support/capybara.rb
require "capybara"
require "puma/server"
require "support/nginx"
Capybara.server do |app, port|
server = Puma::Server.new(app)
server.min_threads = 1
server.max_threads = 1
if ENV["PRECOMPILE"] == "true"
View erb_source.rb
class ERBSource
ERB = ::ActionView::Template::Handlers::ERB
def self.for(block)
new(block).source
end
attr_reader :block, :file, :line_number
def initialize(block)
@block = block
View install_qt5.sh
#!/bin/sh
if [ ! -d "/opt/qt53" ]; then
yes y | sudo add-apt-repository ppa:beineri/opt-qt532
sudo apt-get update -o Dir::Etc::sourcelist="sources.list.d/beineri-opt-qt532-precise.list" -o Dir::Etc::sourceparts="-" -o APT::Get::List-Cleanup="0"
sudo apt-get install qt53webkit libgstreamer0.10-dev libgstreamer-plugins-base0.10-dev qt53declarative qt53location qt53sensors
fi
echo "source /opt/qt53/bin/qt53-env.sh" >> ~/.circlerc
# run in
View ryan_ong_resume.md

Ryan Ong

:dng  :js  :html  :nosql  :php  :pl  :psd  :py  :rb  :sh  :sql 

Relevant Experience

Pivotal Labs New York, NY November 2011 - Current Pivot

CarZen LLC New York, NY September 2009 - October 2011 Senior Developer

  • Mentored and managed two junior developers
View gist:1038659
def compare_strings(str1,str2)
str1.downcase!
pairs1 = (0..str1.length-2).collect {|i| str1[i,2]}.reject { |pair| pair.include? " "}
str2.downcase!
pairs2 = (0..str2.length-2).collect {|i| str2[i,2]}.reject { |pair| pair.include? " "}
union = pairs1.size + pairs2.size
intersection = 0