Skip to content

Instantly share code, notes, and snippets.

View prabuw's full-sized avatar
🦁

Prabu Weerasinghe prabuw

🦁
View GitHub Profile
@prabuw
prabuw / machine.js
Last active May 9, 2020 17:55
Generated by XState Viz: https://xstate.js.org/viz
const counterMachine = Machine({
initial: 'red',
states: {
red: {
on: {
'GO': 'green',
}
},
green: {
on: {
@prabuw
prabuw / machine.js
Last active May 27, 2020 07:28
Generated by XState Viz: https://xstate.js.org/viz
function buildLetterMap() {
let start = 'A'.codePointAt(0);
const end = 'Z'.codePointAt(0);
const letterMap = {};
while (start <= end) {
letterMap[String.fromCodePoint(start)] = false;
start += 1;
}
{"lastUpload":"2020-01-24T10:21:29.423Z","extensionVersion":"v3.4.3"}