Skip to content

Instantly share code, notes, and snippets.

View jxson's full-sized avatar

Jason Campbell jxson

View GitHub Profile

README

An experiment to validate the jiri run hook environment.

@jxson
jxson / keybase.md
Created September 9, 2016 06:14
Keybase verification.

Keybase proof

I hereby claim:

  • I am jxson on github.
  • I am jxson (https://keybase.io/jxson) on keybase.
  • I have a public key whose fingerprint is 491D 1DA3 8A14 2056 1DFE BC40 2577 B1C7 46C0 F214

To claim this, I am signing this object:

dscl . -mcxdelete /Users/<username>
rm -rf /Library/Managed\ Preferences/<username>

SEE: dscl man page

@jxson
jxson / README.md
Created August 7, 2015 02:12
mercury boilerplate

To get started:

git clone ... boilerplate
cd boilerplate
make start

Changes can be automatically built using watch:

watch make
var mercury = require('mercury');
var h = mercury.h;
module.exports = create;
module.exports.render = render;
function render(state) {
return h({}, [
//...
var extend = require('xtend');
module.exports = SinkEventHandler;
function SinkEventHandler(sink, data) {
if (!(this instanceof SinkEventHandler)) {
return new SinkEventHandler(sink, data);
}
this.sink = sink;
var h = require('mercury').h;
var css = require('./index.css');
var insert = require('insert-css');
module.exports = function component(state) {
insert(css);
return h('.foo')
}
function submit(sink, data) {
if (!(this instanceof submit)) {
return new submit(sink, data)
}
this.sink = sink
this.data = data
this.id = sink.id
this.type = 'submit'
}
@jxson
jxson / 0_reuse_code.js
Created June 6, 2014 00:07
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console

Keybase proof

I hereby claim:

  • I am jxson on github.
  • I am jxson (https://keybase.io/jxson) on keybase.
  • I have a public key whose fingerprint is BE1D B681 AC7A C224 A61A 8A3A 7FA9 7040 C765 43B3

To claim this, I am signing this object: