Skip to content

Instantly share code, notes, and snippets.

FPX v2
loggedOut
login -> handleLogin
handleLogin
login success -> fetchUserData
login fail -> loggedOut
fetchUserData
success -> editCurrentProcess
no data -> editNewProcess
fail -> loggedOut
@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
@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 / 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 / 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 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: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
{
"sizes": [
86,
43,
1
],
"layers": [
{
"0": {},
"1": {},
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) {
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 = []