Skip to content

Instantly share code, notes, and snippets.

Avatar

Scott Robinson scottwrobinson

View GitHub Profile
@scottwrobinson
scottwrobinson / .babelrc
Last active Feb 15, 2016
Working example for use with babel-preset-camo (see Camo issue #17)
View .babelrc
{
"presets": ["camo", "stage-0"]
}
@scottwrobinson
scottwrobinson / brain-mnist.js
Created Dec 7, 2015
Brain.js example for training and testing on MNIST data
View brain-mnist.js
var brain = require('brain');
var fs = require('fs');
var getMnistData = function(content) {
var lines = content.toString().split('\n');
var data = [];
for (var i = 0; i < lines.length; i++) {
var input = lines[i].split(',').map(Number);
@scottwrobinson
scottwrobinson / sublimelinter-jshint-issue-70.js
Last active Aug 29, 2015
Follow directions described by comments on lines 482 and 489 to recreate SublimeLinter-jshint issue #70
View sublimelinter-jshint-issue-70.js
"use strict";
var Document = require('camo').Document;
class Source extends Document {
constructor() {
super();
// BUG: Type 'this.a' below to recreate: https://github.com/SublimeLinter/SublimeLinter-jshint/issues/70
// Setup: jshint v2.5.11, sublimelinter-jshint v1.2.1, io.js 2.2.1