Since Google doesn't provide any method to export or download your listening history, I wanted to find a way to preserve that data for later reference when setting up a new podcast app. I came up with the following script that can be run in your browser console to retrieve and export your Google Podcasts listening history as a CSV file.
Application Programming Interface (API) design is hard. But it's even harder to change once you get it wrong. So what you should do is to spend the effort to get it right the first time around.
In the Linux Kernel community Rusty Russell came up with a API rating scheme to help us determine if our API is sensible, or not. It's a rating from -10 to 10, where 10 is perfect is -10 is hell. Unfortunately there are too many examples at the wrong end of the scale.
import glob | |
import xarray as xr | |
import itertools | |
import numpy as np | |
def auto_merge(datasets): | |
""" | |
Automatically merge a split xarray Dataset. This is designed to behave like | |
`xarray.open_mfdataset`, except it supports concatenation along multiple |
# | |
# Find the JEMALLOC client includes and library | |
# | |
# This module defines | |
# JEMALLOC_INCLUDE_DIR, where to find jemalloc.h | |
# JEMALLOC_LIBRARIES, the libraries to link against | |
# JEMALLOC_FOUND, if false, you cannot build anything that requires JEMALLOC | |
# also defined, but not for general use are |
-- Active issues | |
-- Count of total active issues in the specified time frame | |
-- Source: githubarchive public data set via Google BigQuery http://githubarchive.org/ | |
SELECT | |
COUNT(DISTINCT JSON_EXTRACT_SCALAR(events.payload, '$.issue.id')) AS events_issue_count | |
FROM (SELECT * FROM TABLE_DATE_RANGE([githubarchive:day.],TIMESTAMP('2015-09-01'),TIMESTAMP('2016-08-31'))) | |
AS events | |
-- 10,723,492 active issues |
# | |
# Converts eastings and northings (British national grid coordinates) to Lat/Long | |
# | |
# Original code author: Hannah Fry; see code/comments here: | |
# http://www.hannahfry.co.uk/blog/2012/02/01/converting-british-national-grid-to-latitude-and-longitude-ii | |
# | |
from math import sqrt, pi, sin, cos, tan, atan2 as arctan2 | |
import csv |
Building a chat application with FirebaseUI for Android https://github.com/firebase/FirebaseUI-Android/tree/master/codelabs/chat
Going Places with Android & Firebase https://io2015codelabs.appspot.com/codelabs/fire-place
Learn to build a Real-Time Slack clone with AngularFire https://thinkster.io/angularfire-slack-tutorial
There's now a [an online slack community for UK Gov Camp][1], available at the link below in huge letters:
There are a few ways people can join:
/** | |
* Access Token | |
*/ | |
_.extend(AccessToken, { | |
/** | |
* Update an access token | |
* @param {Function} callback Callback when token has been updated | |
*/ | |
refreshAccessToken : function(service, force, callback) { | |
/** |
// rf22_server.pde | |
// -*- mode: C++ -*- | |
// Example sketch showing how to create a simple messageing server | |
// with the RH_RF22 class. RH_RF22 class does not provide for addressing or | |
// reliability, so you should only use RH_RF22 if you do not need the higher | |
// level messaging abilities. | |
// It is designed to work with the other example rf22_client | |
// Tested on Duemilanove, Uno with Sparkfun RFM22 wireless shield | |
// Tested on Flymaple with sparkfun RFM22 wireless shield | |
// Tested on ChiKit Uno32 with sparkfun RFM22 wireless shield |