https://docs.google.com/presentation/d/1nhAxv6Re6bVAJNU-sd3kpJHe8igw_cf9RErL0ersFdY/edit?usp=sharing
View date differences in google spreadsheets.js
// Subtracts two dates, formatted as e.g. 2025-04-10T12:46:10 | |
// Author: Eric Mill, eric.mill@gsa.gov | |
// columns with notBefore and notAfter dates | |
var startField = "D"; | |
var endField = "E"; | |
var resultField = "F"; | |
// first sheet | |
var sheet = SpreadsheetApp.getActiveSpreadsheet().getSheets()[0]; |
View gist:3f8b8b2c3ac4dfee62af21ac2acd6021
https://docs.google.com/presentation/d/1R24Qb4J923qkswGnvThxprrvwGKEpBEF9MuLgZNkqLk/edit?usp=sharing |
View house-senate-urls.py
#!/usr/bin/env python | |
import utils | |
import urllib | |
from utils import load_data, save_data | |
import io | |
import csv | |
def save_csv(header, rows, path): | |
output = io.StringIO() |
View cat-food-dispenser.lua
-- The function get_name() should return a single string that is the name of the puzzle. | |
-- | |
function get_name() | |
return "CAT FOOD DISPENSER" | |
end | |
-- The function get_description() should return an array of strings, where each string is | |
-- a line of description for the puzzle. Surrounding text with asterisks will cause it to | |
-- be rendered in bold, something we use when mentioning a signal by name. | |
-- |
View cert.rb
#!/usr/bin/env ruby | |
# Forked from https://gist.github.com/pzb/84f867ed5a330093cfbf | |
# Licensed under the Apache License, Version 2.0 (the "License"); | |
# you may not use this file except in compliance with the License. | |
# You may obtain a copy of the License at | |
# | |
# http://www.apache.org/licenses/LICENSE-2.0 | |
# |
View clean.py
# -*- coding: utf-8 -*- | |
from sys import argv | |
import csv | |
import re | |
script, arg = argv | |
# Open the input raw subdomain list, the filtered output handle, and | |
# a file for likely-missing rows we'd like to take a second look at. |
View fec-api-workshop.md
Intro to APIs at the FEC - May 2, 2016
An introduction to working with URLs, JSON, APIs, and open data -- without writing any code.
You will need
- A recent version of Firefox or Chrome.
- An extension installed for Firefox or Chrome to view JSON in your browser
- Firefox: bit.ly/json-firefox
- Chrome: bit.ly/json-chrome
View fec-api-workshop-notes.md
My temporary key: 5iJToi6t1sdh66mQ7v1CDwnlbco4hoNfi6UfzkAj
Before we begin:
- An extension installed for Firefox or Chrome to view JSON in your browser
- Firefox: bit.ly/json-firefox
- Chrome: bit.ly/json-chrome
- https://api.data.gov/signup/
Links we'll use
View hell yeah.md
My current every-day songs are Mungolian Jet Set:
- https://www.youtube.com/watch?v=wBnFkJefArQ (how I found them)
- https://www.youtube.com/watch?v=jpypnjGNpY4
- https://www.youtube.com/watch?v=uFWOhaKkbw4 (the second half from 5:00 on, specifically)
Some of my favorite Todd Terje:
NewerOlder