Skip to content

Instantly share code, notes, and snippets.

View k-funk's full-sized avatar

Kevin Funk k-funk

  • San Francisco, CA
View GitHub Profile
import fetch from 'node-fetch'
import express, { Request, Response } from 'express'
import * as dotenv from 'dotenv'
import bodyParser from 'body-parser'
const redirectUri = 'http://localhost:5010/oauth/linearCallback'
const AuthorizationHost = ''
k-funk /
Last active November 2, 2022 13:40
Scraping Google Photos Public Album
# inspired by (hopefully the regex is updated there when this one breaks)
# also exists as a django-cms plugin at
import logging
import re
import requests
logger = logging.getLogger(__name__)
k-funk /
Last active December 16, 2015 22:20
CS 686 Final Project


####Values are in constant dollars (adjusted for inflation). Part of 1976 omitted, "fiscal year" months changed.####

###Data Source:### This data set contains the amount of US Dollars spent on military foreign aid, per country, for each year (1947-2011) The dataset has been altered in the following ways: Converted to .json, added the total foreign aid from all countries for a given year, and added 3 letter country codes for geospacial mapping references. JSON structure: {foregin aid[year,total_aid,countries{country name, country code, foreign aid received}]} I chose this data to visualize because it gives insight as to the US's rapidly changing policy on foreign aid for the past 60 years. Also, being able to visually see which countries are receiving the most money is informative as to the country's affairs of that year.