Skip to content

Instantly share code, notes, and snippets.

View gpolyn's full-sized avatar

Gallagher Polyn gpolyn

View GitHub Profile
@gpolyn
gpolyn / rvm cheatsheet
Last active January 4, 2016 17:49
RVM shortcuts and associated knowledge (references)
rvm get stable # update rvm
rvm list # 'installed' rubies
rvm list gemsets # gemsets for each installed ruby (including 'default' and 'global')
rvm gemset list # gemsets for the current ruby
----------
@gpolyn
gpolyn / Jekyll notes
Created January 28, 2014 00:19
notes on Jekyll (jekyllrb.com)
* http://destroytoday.com/blog/hello-world-im-jekyll says .htaccess not recognized by Jekyll
# docker image for running CC test suite
FROM ubuntu
RUN apt-get update
RUN apt-get -y install wget
RUN apt-get -y install git
# install Ruby 1.9.3-p484
RUN apt-get update
RUN apt-get -y install build-essential
FROM ubuntu:trusty
RUN apt-get update
RUN apt-get -y install wget
RUN apt-get -y install fontconfig
RUN apt-get install -y -q python-software-properties python python-setuptools python-virtualenv python-dev python-distribute python-pip
WORKDIR /usr/local/src/phantomjs
RUN wget https://bitbucket.org/ariya/phantomjs/downloads/phantomjs-1.9.7-linux-x86_64.tar.bz2
RUN tar xvf phantomjs-1.9.7-linux-x86_64.tar.bz2
RUN sudo ln -sf /usr/local/src/phantomjs/phantomjs-1.9.7-linux-x86_64/bin/phantomjs /usr/local/bin/phantomjs
FROM ubuntu:trusty
RUN apt-get update
RUN apt-get -y install wget
RUN apt-get -y install fontconfig
RUN apt-get install -y -q python-software-properties python python-setuptools python-virtualenv python-dev python-distribute python-pip
WORKDIR /usr/local/src/phantomjs
RUN wget https://bitbucket.org/ariya/phantomjs/downloads/phantomjs-1.9.7-linux-x86_64.tar.bz2
RUN tar xvf phantomjs-1.9.7-linux-x86_64.tar.bz2
RUN sudo ln -sf /usr/local/src/phantomjs/phantomjs-1.9.7-linux-x86_64/bin/phantomjs /usr/local/bin/phantomjs
@gpolyn
gpolyn / transfer-money-between-users.rb
Created March 10, 2016 21:44
attempting developers.dwolla.com/guides/transfer-money-between-users with dwolla_swagger gem
require 'dwolla_swagger'
require 'faker'
DwollaSwagger::Swagger.configure do |config|
config.host = 'api-uat.dwolla.com'
config.access_token = ENV['DWOLLA_UAT_ACCESS_TOKEN']
end
# B
source "https://rubygems.org"
ruby "2.1.2"
gem 'dwolla_v2', '~> 0.4'
gem 'dwolla_swagger', '~>1.0.0'
gem 'faker'
gem 'httparty'
@gpolyn
gpolyn / Gemfile
Created March 15, 2016 20:23
github.com/Dwolla/dwolla-v2-ruby/tree/44bea580123ad914b184e54c65f80d05600d3d3d#usage doesn't give correct scopes in uat
source "https://rubygems.org"
ruby '2.1.2'
gem 'dwolla_v2', '~> 0.4'
// I have two scenes and I clear depth to handle visibility matter
animate(){
requestAnimationFrame( this._animate.bind(this) );
this._renderer.clear();
this._renderer.render( this._scene, this._camera );
this._renderer.clearDepth();
this._renderer.render( this._scene2, this._camera );
}
/**
* @author qiao / https://github.com/qiao
* @author mrdoob / http://mrdoob.com
* @author alteredq / http://alteredqualia.com/
* @author WestLangley / http://github.com/WestLangley
* @author erich666 / http://erichaines.com
*/
// This set of controls performs orbiting, dollying (zooming), and panning.