Skip to content

Instantly share code, notes, and snippets.

Jason Campbell jxson

Block or report user

Report or block jxson

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 README.md

README

An experiment to validate the jiri run hook environment.

@jxson
jxson / keybase.md
Created Sep 9, 2016
Keybase verification.
View keybase.md

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:

View remove-parental-controls.md
dscl . -mcxdelete /Users/<username>
rm -rf /Library/Managed\ Preferences/<username>

SEE: dscl man page

@jxson
jxson / README.md
Created Aug 7, 2015
mercury boilerplate
View README.md

To get started:

git clone ... boilerplate
cd boilerplate
make start

Changes can be automatically built using watch:

watch make
View mercury-component.js
var mercury = require('mercury');
var h = mercury.h;
module.exports = create;
module.exports.render = render;
function render(state) {
return h({}, [
//...
View value-event-event.js
var extend = require('xtend');
module.exports = SinkEventHandler;
function SinkEventHandler(sink, data) {
if (!(this instanceof SinkEventHandler)) {
return new SinkEventHandler(sink, data);
}
this.sink = sink;
View mercury-component.js
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')
}
View gist:a39802d00ed04d1c36c1
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 Jun 6, 2014
Here are some things you can do with Gists in GistBox.
View 0_reuse_code.js
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
View keybase.md

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:

You can’t perform that action at this time.