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.
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 |
[attaching this to a CloudFlare survey why I left them (for DNSimple)]
I was a free user using CloudFlare only for DNS, chiefly because it can simulate CNAME at an apex domain. The apex domains mathdown.net,mathdown.com point to mathdown-cben.rhcloud.com. Cloudflare "CNAME-flattening" nicely returns an A record; unfortunately it's served with a huge TTL of 7 days(!), which causes a long outage when the underlying IP changes.
I asked support how I can lower the TTL (BTW it's great that you provide free support at all) and was told [https://support.cloudflare.com/hc/en-us/requests/522551, emphasis mine]:
This is based on the TTL of your authoritative provider for mathdown-cben.rhcloud.com: