Skip to content

Instantly share code, notes, and snippets.

Matt Price titaniumbones

Block or report user

Report or block titaniumbones

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
View cooking-nyt.js
// ==UserScript==
// @name NYT Cooking
// @namespace http://tampermonkey.net/
// @version 0.1
// @description try to take over the world!
// @author You
// @match https://cooking.nytimes.com/*
// @grant none
// @require https://code.jquery.com/jquery-2.1.4.min.js
// @require https://gist.github.com/raw/2625891/waitForKeyElements.js
@titaniumbones
titaniumbones / ox-slack.el
Last active Oct 22, 2018
ox-slack -- slack exporter for emacs org-mode
View ox-slack.el
;;; ox-slack.el --- SLack Exporter for org-mode
;; Copyright (C) 2018 Matt Price
;; Author: Matt Price
;; Keywords: org, slack
;; Modeled on various other derived backends including 'ox-gfm by Lars Trier
;; This file is not part of GNU Emacs.
@titaniumbones
titaniumbones / post-commit.sh
Last active Dec 7, 2017
Post-commit hook to push to gh-pages. Also pushes master to origin. Intended for use in a gitflow worflow, in other cases you might not want ot push master to origin.
View post-commit.sh
#!/bin/bash
push_branch=master
cur_branch=$(git rev-parse --abbrev-ref HEAD)
# only run if commit is to master
if [ "$cur_branch" == "$push_branch" ]; then
if [ "$(git status -uno --porcelain)" ]; then
echo "uncommitted changes, can't push";
else
git push origin master
@titaniumbones
titaniumbones / collection.json
Created Nov 4, 2017
extract_href output from https://nccwsc.usgs.gov/southwestcsc, "Southwest Climate Science Center"
View collection.json
{ "name" : "Southwest Climate Science Center",
"url" : "https://nccwsc.usgs.gov/southwestcsc",
"description" : "Reports of and information about the Southwest Climate Science Center"
}
@titaniumbones
titaniumbones / collection.json
Created Nov 4, 2017
extract_href output from https://nccwsc.usgs.gov/southeastcsc, "Southeast Climate Science Center"
View collection.json
{ "name" : "Southeast Climate Science Center",
"url" : "https://nccwsc.usgs.gov/southeastcsc",
"description" : "Reports of and information about the Southeast Climate Science Center"
}
@titaniumbones
titaniumbones / collection.json
Created Nov 4, 2017
extract_href output from https://nccwsc.usgs.gov/southcentralcsc, "Southcentral Climate Science Center"
View collection.json
{ "name" : "Southcentral Climate Science Center",
"url" : "https://nccwsc.usgs.gov/southcentralcsc",
"description" : "Reports of and information about the Southcentral Climate Science Center"
}
@titaniumbones
titaniumbones / collection.json
Created Nov 4, 2017
extract_href output from https://nccwsc.usgs.gov/pacificislandscsc, "Pacificislands Climate Science Center"
View collection.json
{ "name" : "Pacificislands Climate Science Center",
"url" : "https://nccwsc.usgs.gov/pacificislandscsc",
"description" : "Reports of and information about the Pacificislands Climate Science Center"
}
@titaniumbones
titaniumbones / collection.json
Created Nov 4, 2017
extract_href output from https://nccwsc.usgs.gov/northwestcsc, "Northwest Climate Science Center"
View collection.json
{ "name" : "Northwest Climate Science Center",
"url" : "https://nccwsc.usgs.gov/northwestcsc",
"description" : "Reports of and information about the Northwest Climate Science Center"
}
@titaniumbones
titaniumbones / collection.json
Created Nov 4, 2017
extract_href output from https://nccwsc.usgs.gov/northeastcsc, "Northeast Climate Science Center"
View collection.json
{ "name" : "Northeast Climate Science Center",
"url" : "https://nccwsc.usgs.gov/northeastcsc",
"description" : "Reports of and information about the Northeast Climate Science Center"
}
@titaniumbones
titaniumbones / collection.json
Created Nov 4, 2017
extract_href output from https://nccwsc.usgs.gov/northcentralcsc, "Northcentral Climate Science Center"
View collection.json
{ "name" : "Northcentral Climate Science Center",
"url" : "https://nccwsc.usgs.gov/northcentralcsc",
"description" : "Reports of and information about the Northcentral Climate Science Center"
}
You can’t perform that action at this time.