Author: Gregg Lind [email protected]
example coverage report: http://gregglind.github.com/micropilot/coverreport.html
Quick Recipe:
class fooClass { | |
constructor(options) { | |
this.label = options.label | |
this.bar() | |
} | |
bar() { | |
console.log(this.label) | |
} | |
} |
package connpair | |
import ( | |
"net" | |
) | |
func ConnPair() (serverConn, clientConn net.Conn, err error) { | |
l, err := net.Listen("tcp", "localhost:0") | |
if err != nil { | |
return |
Author: Gregg Lind [email protected]
example coverage report: http://gregglind.github.com/micropilot/coverreport.html
Quick Recipe:
This explains how to setup for GitHub projects which automatically generates Doxygen code documentation and publishes the documentation to the gh-pages
branch using Travis CI.
This way only the source files need to be pushed to GitHub and the gh-pages branch is automatically updated with the generated Doxygen documentation.
Get an account at Travis CI. Turn on Travis for your repository in question, using the Travis control panel.
To create a clean gh-pages
branch, with no commit history, from the master branch enter the code below in the Git Shell. This will create a gh-pages branch with one file, the README.md
in it. It doesn't really matter what file is uploaded in it since it will be overwritten when the automatically generated documentation is published to th
This is a set up for projects which want to check in only their source files, but have their gh-pages branch automatically updated with some compiled output every time they push.
You want a script that does a local compile to e.g. an out/
directory. Let's call this compile.sh
for our purposes, but for your project it might be npm build
or gulp make-docs
or anything similar.
The out/
directory should contain everything you want deployed to gh-pages
. That almost always includes an index.html
.
#depends on underscore | |
_.isConstructor = (thing) -> | |
if thing.name && thing.name[0].toUpperCase() == thing.name[0] | |
true | |
else | |
false | |
class Instrumentor | |
constructor: (namespace) -> |
function example() { | |
var hotkeyLabelJson = | |
['ul', {class: 'apple cf',id:'apple-qwerty'}, | |
['li', {class:'apple'}, | |
['a',{class:'nthotkey-apple-key apple-key'}, | |
[span, {}, | |
1 | |
] | |
] | |
], |
INIT=.emacs.el | |
$(INIT): TC3F.org | |
time emacs --batch --no-init-file --load .org-mode.emacs.el --find-file TC3F.org --funcall org-babel-tangle --kill | |
TC3F.txt: $(INIT) | |
time emacs --batch --no-init-file --load .org-mode.emacs.el --find-file TC3F.org --funcall org-ascii-export-to-ascii --kill | |
TC3F.html: $(INIT) | |
time emacs --batch --no-init-file --load .org-mode.emacs.el --find-file TC3F.org --funcall org-html-export-to-html --kill |