Skip to content

Instantly share code, notes, and snippets.

View hojberg's full-sized avatar
🔮
Building UIs for Unison

Simon Højberg hojberg

🔮
Building UIs for Unison
View GitHub Profile
@hojberg
hojberg / app_route_target.js
Last active September 5, 2019 09:36
Simple Aviator/React example. Read more about Aviator here: https://github.com/swipely/aviator
/** @jsx React.DOM */
var AppRouteTarget = {
setupLayout: function () {
React.renderComponent({
<App className='page-content'>,
document.querySelector('body')
});
}
};
@hojberg
hojberg / my-model-es6-in-yui.js
Last active August 29, 2015 14:01
YUI to ES6 to YUI
YUI.add('models:my_model', function (Y, NAME, __imports__, __exports__) {
"use strict";
var MyOtherModel = __imports__['models/my_other_model']['default'];
var MyModel = Y.Base.create('models:myModel',
MyOtherModel
[],
{
// .. some implementation
},
@hojberg
hojberg / document_route_target.js
Created November 6, 2014 17:35
aviator example
var DocumentRouteTarget = {
show: function () {
// this function is called for /documents/:id urls like /documents/123
}
};
@hojberg
hojberg / records-bug-transcript.md
Created September 14, 2021 14:06
Unison Records pretty printing transcript

Ensure that Records keep their syntax after being added to the codebase

.> builtins.mergeio
.> load unison-src/transcripts-using-base/base.u

Record with 1 field