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

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

Keybase proof

I hereby claim:

  • I am kazazes on github.
  • I am pck (https://keybase.io/pck) on keybase.
  • I have a public key whose fingerprint is 07A8 F976 6B1A F55C E608 6B25 EA46 B362 A4A9 3DD5

To claim this, I am signing this object:

#!/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'
@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=',

Keybase proof

I hereby claim:

  • I am kazazes on github.
  • I am pck (https://keybase.io/pck) on keybase.
  • I have a public key ASAE4Dj4BGtwmGJ29IlRZTx5a6eZz-vs7s5wbyjjedKCXwo

To claim this, I am signing this object:

@kazazes
kazazes / gcloud-build-stream-all.sh
Last active December 12, 2018 20:10
Tired of waiting for your GC console to load while you spam-commit to a new repo? Sick of copy pasting build UUIDs from your terminal? Commit, run this puppy, and relax while tmux keeps you appraised of your menial progress. Tested with 20 simultaneous builds.
#!/bin/sh
set -e
echo "Checking for running Google Cloud Build jobs..."
BUILDS=$(gcloud builds list | grep WORKING | cut -f1 -d " " | tr "\n" " " | sed 's/^[[:blank:]]*//;s/[[:blank:]]*$//' )
[[ -z "$BUILDS" ]] && echo "No running builds." && exit 1
tmux start-server
FROM ubuntu:xenial as pybombs-slim
# Set prefix variables
ENV PyBOMBS_prefix skyscraper
ENV PyBOMBS_init /usr/local
# Update apt-get and install some dependencies
RUN apt-get update && apt-get install -y --no-install-recommends \
automake \
git \
FROM resin/odroid-xu4-ubuntu:xenial as pybombs-slim
RUN [ "cross-build-start" ]
# Set prefix variables
ENV PyBOMBS_prefix skyscraper
ENV PyBOMBS_init /usr/local
# Update apt-get and install some dependencies
RUN apt-get update && apt-get install -y --no-install-recommends \
This file has been truncated, but you can view the full file.
parcelRequire = function(e, r, n, t) {
var i = "function" == typeof parcelRequire && parcelRequire,
o = "function" == typeof require && require;
function u(n, t) {
if (!r[n]) {
if (!e[n]) {
var f = "function" == typeof parcelRequire && parcelRequire;
if (!t && f) return f(n, !0);
if (i) return i(n, !0);
parcelRequire=function(e,r,n,t){var i="function"==typeof parcelRequire&&parcelRequire,o="function"==typeof require&&require;function u(n,t){if(!r[n]){if(!e[n]){var f="function"==typeof parcelRequire&&parcelRequire;if(!t&&f)return f(n,!0);if(i)return i(n,!0);if(o&&"string"==typeof n)return o(n);var c=new Error("Cannot find module '"+n+"'");throw c.code="MODULE_NOT_FOUND",c}p.resolve=function(r){return e[n][1][r]||r},p.cache={};var l=r[n]=new u.Module(n);e[n][0].call(l.exports,p,l,l.exports,this)}return r[n].exports;function p(e){return u(p.resolve(e))}}u.isParcelRequire=!0,u.Module=function(e){this.id=e,this.bundle=u,this.exports={}},u.modules=e,u.cache=r,u.parent=i,u.register=function(r,n){e[r]=[function(e,r){r.exports=n},{}]};for(var f=0;f<n.length;f++)u(n[f]);if(n.length){var c=u(n[n.length-1]);"object"==typeof exports&&"undefined"!=typeof module?module.exports=c:"function"==typeof define&&define.amd?define(function(){return c}):t&&(this[t]=c)}return u}({"J4Nk":[function(require,module,exports) {
"use stric