Skip to content

Instantly share code, notes, and snippets.

View kazazes's full-sized avatar
📻
pullin' data out of thin air

Peter Kazazes kazazes

📻
pullin' data out of thin air
View GitHub Profile
@kazazes
kazazes / yahoo-finance-stock-data.js
Created September 22, 2015 16:48
Yahoo Finance stock historical data, prices and details retrieval function written in Javascript, jQuery and YQL
/*
Yahoo Finance stock historical data, prices and details retrieval function written in Javascript, jQuery and YQL
v2013-08-05
(c) 2013 by Fincluster ltd - http://fincluster.com <dev@fincluster.com>
*/
(function($) {
function getStock(opts, type, complete) {
var defs = {
desc: false,
baseURL: 'http://query.yahooapis.com/v1/public/yql?q=',
#!/bin/sh
# Some things taken from here
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx
# Set the colours you can use
black='\033[0;30m'
white='\033[0;37m'
red='\033[0;31m'
green='\033[0;32m'

Demonstrates using d3.behavior.zoom with a geographic projection. Based on an example by Iain Dillingham.