Skip to content

Instantly share code, notes, and snippets.

Nick Payne makeusabrew

Block or report user

Report or block makeusabrew

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 NodeJS tree layout.txt
Given a tree structure which indicates some level of inheritance / dependency with
some concrete objects at the end of the tree e.g.
Assume that at each level of the tree (excluding src) there is a relevant 'base'
makeusabrew /
Last active Dec 24, 2015
Marathon taper - last two weeks

Garmin Connect Level II Marathon training - final 2 weeks

The following schedule is lifted directly from Garmin Connect's "intermediate" marathon training plan.

Marathon date: Sunday 20th October

Penultimate week

  • Tuesday 8th: Intervals (10m warmup, 5m:1m threshold:recovery x6 = 46m)
  • Thursday 10th: Threshold run (25m easy, 25 threshold, 25 easy = 1h15m)
makeusabrew / bootbox-setDefaults-v4.js
Last active May 7, 2018
Bootbox v4.0.0 defaults
View bootbox-setDefaults-v4.js
* @optional String
* @default: en
* which locale settings to use to translate the three
* standard button labels: OK, CONFIRM, CANCEL
locale: "fr",
makeusabrew / bootbox-dialog-v4-all.js
Last active Apr 18, 2018
An attempt to demonstrate as many bootbox.dialog options as sanely possible in a single-file gist.
View bootbox-dialog-v4-all.js
* @required String|Element
message: "I am a custom dialog",
* @optional String|Element
* adds a header to the dialog and places this text in an h4
View bb-dialog-v4.x.js
message: "I am a custom dialog",
title: "Custom title",
buttons: {
success: {
label: "Success!",
className: "btn-success",
callback: function() {"great success");
makeusabrew / modal.html
Created Aug 24, 2013
Twitter Bootstrap 3.0.0 - basic dialog box invocation via JavaScript
View modal.html
<!-- set up the modal to start hidden and fade in and out -->
<div id="myModal" class="modal fade">
<div class="modal-dialog">
<div class="modal-content">
<!-- dialog body -->
<div class="modal-body">
<button type="button" class="close" data-dismiss="modal">&times;</button>
Hello world!
<!-- dialog buttons -->
makeusabrew / usage.js
Last active Apr 3, 2019
Potential Bootbox v4.x API and usage examples
View usage.js
* alert
bootbox.alert("Hello world");
bootbox.alert("Hello world", function() {
console.log("dialog dismissed with OK or escape button");
makeusabrew / key-indent.js
Created Jan 4, 2013
Various object key / val alignment styles
View key-indent.js
// 1) colon aligned, no spaces where possible
var Foo = {
host :"foo",
db :"bar",
// 2) colon aligned, space after key
var Foo = {
host : "foo",
makeusabrew / usage-3.x.x.html
Last active Nov 14, 2016
Bootbox 3.0.0 sample usage
View usage-3.x.x.html
<!DOCTYPE html>
<meta charset="utf-8">
<title>My page</title>
<!-- CSS dependencies -->
<link rel="stylesheet" type="text/css" href="bootstrap.min.css">
makeusabrew / index.html
Created Dec 12, 2012
Garmin Connect - website down page
View index.html
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "">
<html xmlns="">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Garmin Connect</title>
<link href="site-maintenance.css" rel="stylesheet" type="text/css" />
You can’t perform that action at this time.