Skip to content

Instantly share code, notes, and snippets.

@sqs
sqs / golang-present-speaker-notes.diff
Created June 13, 2014 13:10
Patch to add speaker notes to the Go present tool (lines beginning with ">"; in the web UI, toggle display with 'n'). Works on all slides but the title slide. Breaks if you have more than one contiguous run of lines starting with "> " in a single slide (due to CSS). I'll submit a real patch upstream soon (unless someone else volunteers).
diff -r 5b025577f8ab cmd/present/static/slides.js
--- a/cmd/present/static/slides.js Fri Jun 13 12:42:11 2014 +1000
+++ b/cmd/present/static/slides.js Fri Jun 13 06:09:06 2014 -0700
@@ -10,6 +10,8 @@
var curSlide;
+var showNotes;
+
/* ---------------------------------------------------------------------- */
@jbenet
jbenet / simple-git-branching-model.md
Last active June 17, 2024 14:53
a simple git branching model

a simple git branching model (written in 2013)

This is a very simple git workflow. It (and variants) is in use by many people. I settled on it after using it very effectively at Athena. GitHub does something similar; Zach Holman mentioned it in this talk.

Update: Woah, thanks for all the attention. Didn't expect this simple rant to get popular.

@gilligan
gilligan / terntest.js
Created July 9, 2013 19:02
test case for tern completion issue
Huh = Backbone.View.extend({
/**
*
*
*
*
*
*
*
*
@rkumar
rkumar / gist:445735
Created June 20, 2010 10:47
ruby's OptionParser to get subcommands
#!/usr/bin/env ruby -w
## Using ruby's standard OptionParser to get subcommand's in command line arguments
## Note you cannot do: opt.rb help command
## other options are commander, main, GLI, trollop...
# run it as
# ruby opt.rb --help
# ruby opt.rb foo --help
# ruby opt.rb foo -q
# etc