Skip to content

Instantly share code, notes, and snippets.

James Ramsay jamesramsay

Block or report user

Report or block jamesramsay

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
jamesramsay /
Last active Dec 9, 2019
Books I finished reading

Books I finished reading in 2019.

  • Death's End - Cixin Liu
  • Surprised by Hope - N. T. Wright
  • Why Liberalism Failed - Patrick Deneen
  • Escaping the Build Trap - Melissa Perri
  • Childhood's End - Arthur C. Clarke
  • Dune - Frank Herbert

Books I finished reading in 2018.


Keybase proof

I hereby claim:

  • I am jamesramsay on github.
  • I am jramsay ( on keybase.
  • I have a public key whose fingerprint is FF28 FAB1 8CD4 198C 2658 4CF1 642F EA93 2DC9 67CB

To claim this, I am signing this object:

jamesramsay /
Last active Nov 27, 2019
Gmail: delete old emails automatically

Gmail: delete old emails automatically

Automatically deletes old emails that match the specified label.

Get started

  • Create a new Google Apps Script at
  • Overwrite the placeholder with the javascript below
  • Update the following constants:
    • LABEL_TO_DELETE: the label that should be have old messages deleted
jamesramsay /
Last active Jun 10, 2017
HAR analysis

Analysis of editorial vs advertising content


  • Access mobile site using Chrome device debugging tools
  • Record network activity
  • Save as HAR
  • Clean recording

Clean Recording

jamesramsay /
Last active Aug 29, 2015
API Blueprint puzzle #1

Group Creatives

Creative [/creatives/{creativeId}]

  • Parameters

    • creativeId (integer, 1) ... id of the creative
  • Model

    • Header
jamesramsay /
Created Jun 16, 2014
Cassowary.js example
# PROBLEM: Small brewery produces ale and beer
# Production is limited by scarce resources: corn, hops, barley malt.
# Recipes for ale and beer require differenty proportions of resources
# Ale (barrel)
# - 5lb corn
# - 4oz hops
# - 35lb malt
# - $13 profit
jamesramsay / Pandoc
Last active Jun 4, 2018 — forked from schmurfy/gist:3199254
Pandoc install for converting Pandoc to TeX to PDF
View Pandoc
# Install MacTex:
$ sudo chown -R `whoami` /usr/local/texlive
$ tlmgr update --self
# Install tufte-latex and dependencies
$ tlmgr install tufte-latex
$ tlmgr install changepage
$ tlmgr install paralist
$ tlmgr install titlesec
View bookmarklet.js
You can’t perform that action at this time.