This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { setup } from "xstate"; | |
export const machine = setup({ | |
types: { | |
context: {} as {}, | |
events: {} as | |
| { type: "enter_amount" } | |
| { type: "enter_national_id" } | |
| { type: "account_is_valid" } | |
| { type: "account_is_invalid" } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const edges = [ | |
{ | |
"id": 0, | |
"start": 37, | |
"end": 51, | |
"label": "Castillo" | |
}, | |
{ | |
"id": 1, | |
"start": 133, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"bufio" | |
"fmt" | |
"log" | |
"net" | |
) | |
var allClients map[string]*Client |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Serve is a very simple static file server in go | |
Usage: | |
-p="8100": port to serve on | |
-d=".": the directory of static files to host | |
-b="/": the base URL to host | |
Navigating to http://localhost:8100 will display the index.html or directory | |
listing file. |