Skip to content

Instantly share code, notes, and snippets.

View gitbnw's full-sized avatar

Byron Weiss gitbnw

View GitHub Profile
@gitbnw
gitbnw / yahoo.rb
Created April 1, 2016 16:55
Slightly modified module from http://blog.hashdog.com/rails/Use-yahoo-yql-api-with-ruby-and-oauth/ . This allows for oauth authorized queries against yahoo's YQL web service.
require 'oauth'
require 'json'
# https://developer.yahoo.com/ to register app for consumer key and consumer secret
module Yahoo
CONSUMER_KEY = ENV['CONSUMER_KEY']
CONSUMER_SECRET = ENV['CONSUMER_SECRET']
class YQLFinance
def initialize(consumer_key = CONSUMER_KEY, consumer_secret = CONSUMER_SECRET)
@gitbnw
gitbnw / bloccit-rails-console-assignment.txt
Last active October 30, 2015 18:48
bloccit-rails-console-assignment
[21] pry(#<Post>):1> post
=> #<Post:0x00000005bb5558
id: 1,
title: "My even different title",
body: "This is different",
created_at: Fri, 30 Oct 2015 15:35:42 UTC +00:00,
updated_at: Fri, 30 Oct 2015 18:34:03 UTC +00:00>