Skip to content

Instantly share code, notes, and snippets.

View TimothyJones's full-sized avatar

Timothy Jones TimothyJones

  • Melbourne, Australia
View GitHub Profile
@TimothyJones
TimothyJones / gist:ff3fa2e5a04ab75743bc30a9425ae1d0
Last active August 25, 2017 02:25
Trying to get nice console formatting

With bash

git clone "<your-project-url>"
$ git clone "<your-project-url>"
Cloning into "'<your-project>'"...

With console

@TimothyJones
TimothyJones / alveohighlighting.js
Last active August 29, 2015 14:03
Alveo document annotations highlighting
// This gist provides an example of doing highlighting for
// Alveo annotations within a document displayed in a <pre> tag.
// It can be used at display time in the browser (with the right API calls).
// Although jQuery is used, it's not required except for the page update at the end
// Insert method for strings
String.prototype.insert = function (index, string) {
if (index > 0) {
if (index > this.length) {