Skip to content

Instantly share code, notes, and snippets.

View jarthorn's full-sized avatar

John Arthorne jarthorn

  • Shopify
  • Ottawa, ON
View GitHub Profile
mutation checkoutBrandingUpsert($checkoutBrandingInput: CheckoutBrandingInput!, $checkoutProfileId: ID!) {
checkoutBrandingUpsert(checkoutBrandingInput: $checkoutBrandingInput, checkoutProfileId: $checkoutProfileId) {
checkoutBranding {
designSystem {
colors {
schemes {
scheme1 {
primaryButton {
background
text
is:pr is:closed status:failure closed:>=2016-07-20
is:pr is:closed status:success closed:>=2016-07-20
@jarthorn
jarthorn / merge-commits-by-date.rb
Created March 31, 2016 17:13
Print a histogram of merge commits by month for the current Git repository
#!/usr/bin/env ruby
TEMPFILE = "/tmp/git-merge-dates.txt"
`git log --merges --pretty=format:"%ci" --date=short > #{TEMPFILE}`
puts "MONTH,COMMITS"
(2011..2016).each do |year|
(1..12).each do |month|
pattern = year.to_s + "-" + sprintf("%02d", month)
result = `grep #{pattern} #{TEMPFILE} | wc -l`
@jarthorn
jarthorn / Input parameters
Last active March 4, 2016 16:00
Edify data model
title :title string
date :date string 'YYYY-MM-DD'
allday? :all_day boolean
startTime :start_time HH:MM Eastern Standard Time, 24 hour clock
endTime :end_time HH:MM Eastern Standard Time, 24 hour clock
Office :location string
liveStream :live_Stream boolean
attendees :size int
details :summary string
type :kind string(workshop,talk,course)