Skip to content

Instantly share code, notes, and snippets.

@johnkazer
johnkazer / future-attitude-predictor
Last active March 4, 2019 20:59
Use this simple game to help you understand your attitude to the future. Then take steps to future-proof yourself!
<!DOCTYPE html>
<html>
<head>
<meta content="width=device-width, initial-scale=1.0" name="viewport">
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Our solar future</title>
<meta name="description">
<meta name="author" content="John Kazer">
exports.start = function (res) { // res is the Express response object, being the server package I used
let training = true
let trainingDataSet = []
let testResult = []
const network = new NN.NeuralNetwork();
let dataTypes = []
let listOfTrainingData = []
let listOfTestData = []
let trainingDataRaw = []
let testDataRaw = []
exports.start = function (res) { // res being the Express response object, being the server package I used
const network = new NN.NeuralNetwork();
let dataTypes = []
let listOfTrainingData = []
let listOfTestData = []
let trainingDataRaw = []
let testDataRaw = []
const trainingOptions = { /* config options */ }
var parser = csv({ delimiter: ',' }, function (err, data) { // in general, I find processing of arbitrary data files hard to do with pure functions - so I took some short cuts...
if (err || data.length === 0) {
{
"sizes": [
86,
43,
1
],
"layers": [
{
"0": {},
"1": {},
@johnkazer
johnkazer / SketchSystems.spec
Last active August 23, 2019 21:11
GBF Tool Home*
GBF Tool Home*
Carbon Calc Tool -> Calculator Home
Benchmark Tool -> Benchmark Home
Business Case Tool -> BusinessCase Home
Benchmark Home
click breadcrumb -> GBF Tool Home
BusinessCase Home
click breadcrumb -> GBF Tool Home
Calculator Home
click Start Button -> Data Intro
@johnkazer
johnkazer / SketchSystems.spec
Last active August 23, 2019 21:01 — forked from ryanlucas/SketchSystems.spec
Embedding Figma frames
Embedding Figma frames
Shop
click Tickets -> Tickets
Tickets
click Shop -> Shop
@johnkazer
johnkazer / SketchSystems.spec
Last active August 23, 2019 21:15
Reviewing CT Style
Reviewing CT Style
Colours
click -> Process
Colour_1 -> Info_1
Process
click -> Colours
Info_1
return -> Colours
@johnkazer
johnkazer / SketchSystems.spec
Last active January 13, 2020 21:35
Project Tracker
Project Tracker
Holidays -> Holidays
Team -> Team
Team utilisation -> Team utilisation
Individual capacity -> Individual capacity
projectCapTab -> projectCapTab
Project forecast -> Project forecast
Holidays
Team
Add new entry -> New team form
@johnkazer
johnkazer / machine.js
Created December 20, 2019 21:00
Generated by XState Viz: https://xstate.js.org/viz
// Available variables:
// - Machine
// - interpret
// - assign
// - send
// - sendParent
// - spawn
// - raise
// - actions
@johnkazer
johnkazer / machine.js
Last active May 13, 2020 08:06
Generated by XState Viz: https://xstate.js.org/viz
// Available variables:
// - Machine
// - interpret
// - assign
// - send
// - sendParent
// - spawn
// - raise
// - actions