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
jamesramsay / books.md
Last active Jan 25, 2019
Books I finished reading
View books.md

Books I finished reading in 2019.

  • Death's End - Cixin Liu
  • Surprised by Hope - N. T. Wright

Books I finished reading in 2018.

  • Life Together - Dietrich Bonhoeffer
  • On Christian Liberty - Martin Luther
  • Confessions - Augustine
View keybase.md

Keybase proof

I hereby claim:

  • I am jamesramsay on github.
  • I am jramsay (https://keybase.io/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
jamesramsay / README.md
Last active Aug 28, 2019
Gmail: delete old emails automatically
View README.md

Gmail: delete old emails automatically

Automatically deletes old emails that match the specified label.

Get started

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

Analysis of editorial vs advertising content

Methodology:

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

Clean Recording

@jamesramsay
jamesramsay / creative.md
Last active Aug 29, 2015
API Blueprint puzzle #1
View creative.md

Group Creatives

Creative [/creatives/{creativeId}]

  • Parameters

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

    • Header
@jamesramsay
jamesramsay / brewery.coffee
Created Jun 16, 2014
Cassowary.js example
View brewery.coffee
# 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
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: http://mirror.ctan.org/systems/mac/mactex/mactex-basic.pkg
$ 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
javascript:(function()%7B%24('li.task-list-item%3Acontains(%22esolved%22)%20%3E%20input%3Achecked%2C%20li.task-list-item%3Acontains(%22eady%20for%22)%20%3E%20input%3Achecked').closest('.comment-content').hide()%7D)()
You can’t perform that action at this time.