Skip to content

Instantly share code, notes, and snippets.

Working from home

Peter Aron Zentai PeterAronZentai

Working from home
Block or report user

Report or block PeterAronZentai

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 LogViewer.jsx
export class LogViewer extends React.Component<any, any> {
// some parts are omitted for brevity, like store subscription, or the actions
public defaultPresenter = ({message}) => <div>{message}</div>
public render() { return (
{ m => {
const P = m.presenter || this.defaultPresenter
return <P key={} {...m} />
View gist:9c13c37aaeb511827be9
// node+v8: 250ms
// chrome+v8: 5500ms
// edge+chakra: 3400ms
// node+chakra: ?????
var count = 1000;
var tests = 1000;
var items = [];
View asset-manifest.json
"photos": {
"items": [
"caption":"Photo about the 120 year old facade",
"alternative":"image of the building",
"image": "{{runtime reference to a variant}}",
"variants": {
PeterAronZentai / gist:3169414
Created Jul 24, 2012
using promises with Q
View gist:3169414
var q = require('q');
function doSomething(a, b) {
var defer = q.defer();
return q.fcall( function() { return [a,b]});
PeterAronZentai / jayclassmixin.js
Created Jul 21, 2012
JayData Class definition with mixin types
View jayclassmixin.js
$data.Class.define("Types.A", null, null, {
$data.Class.define("Types.B", null, null, {
$data.Class.define("Types.C", [Types.A, Type.B], null, { });
//the last line throws an error complaining about only object can be the arguments deep down in the construction process
PeterAronZentai / sharepoint.js
Created Jun 6, 2012
JayData context for a Sharepoint metadata
View sharepoint.js
////// Autogenerated by JaySvcUtil.exe for more info /////////
////// oData v1 /////////
(function(global, $data, undefined) {
You can’t perform that action at this time.