Skip to content

Instantly share code, notes, and snippets.

View craigsapp's full-sized avatar

Craig Stuart Sapp craigsapp

View GitHub Profile
@craigsapp
craigsapp / gist:d343ac4990f4868171ac14b1052581a5
Last active September 29, 2020 05:38
Humdrum I/O Google Apps Script
//
// Programmer: Craig Stuart Sapp ([email protected])
// Creation Date: 20 September 2020
// Last Modified: 28 September 2020
// URL: http://bit.ly/humdrum-io
//
// Description: Interface between Verovio Humdrum Viewer and Google Spreadsheets.
// The doPost() function receives data (nominally from VHV, but can
// be from any webpage). And doGet() will send the data as TSV content
// (typically after it has been edited in the spreadsheet).
Reference: http://stackoverflow.com/questions/7244321/how-to-update-github-forked-repository
First time: Add the remote, call it "upstream", for example:
git remote add upstream https://github.com/whoever/whatever.git
Fetch all the branches of that remote into remote-tracking branches,
such as upstream/master:
git fetch upstream
@craigsapp
craigsapp / View local copy of Jekyll website
Last active August 29, 2015 14:14
View local copy of Jekyll website.
To locally view a jekyll website, type this in the base directory of the website repository:
jekyll server --watch --host 127.0.0.1 --port 4000
Then to view the website, go to this address:
http://127.0.0.1:4000
If you change files on the website, the --watch option will recompile
the website without the need to restart the local jekyll server.