Skip to content

Instantly share code, notes, and snippets.

View RobertWarrenGilmore's full-sized avatar

Robert Warren Gilmore RobertWarrenGilmore

View GitHub Profile

Keybase proof

I hereby claim:

  • I am robertwarrengilmore on github.
  • I am robertwgilmore (https://keybase.io/robertwgilmore) on keybase.
  • I have a public key ASB3tjrX3AmV9jLbSnRGh9vdY31Ul4hVVk71u2iU3wDVYAo

To claim this, I am signing this object:

@RobertWarrenGilmore
RobertWarrenGilmore / date_time_format.md
Last active January 31, 2016 01:05
proposal for a series of transitional date-time formats towards a sensible standard

proposal for a series of transitional date-time formats towards a sensible standard

by Robert Warren Gilmore

the current state of date-time expression

Many different standards currently exist for the expression of date-times. There are standards that cycle on the solar year, on the lunar year, and on periods longer than a solar year. To my knowledge there is no standard that does not cycle on the day. Over time, there has been some standardisation of date-time formats around the world, with most of the world using (almost) the same time format and much of the world (East and West) having adopted the Gregorian calendar. Still, variations exist - in the United States, the numerical date is written month/day/year; in France it is written day/month/year; there is a standard gaining in popularity that writes the date year-month-day. Add to these different formats the concept of time zones and it becomes a nontrivial task to decipher and compare date-times that were not written by people in the same place us

@RobertWarrenGilmore
RobertWarrenGilmore / OptimalPugetPassValueCalculator.js
Last active October 2, 2015 22:53
Find the optimal PugetPass value to buy, based on what tickets make up your commute.
'use strict';
let PASS_MINIMUM = 50;
let PASS_MAXIMUM = 550;
let PASS_INCREMENT = 25;
// Loop over the possible pass values.
let perPassValue = function(callback) {
for (let passValue = PASS_MINIMUM; passValue <= PASS_MAXIMUM; passValue += PASS_INCREMENT) {
callback(passValue);