Skip to content

Instantly share code, notes, and snippets.

### Keybase proof
I hereby claim:
* I am alexluong on github.
* I am alexluong (https://keybase.io/alexluong) on keybase.
* I have a public key ASAkewXXsvnE1-_GR6dWk9XY1Y0e5q8srHC_Ly-zl8fATQo
To claim this, I am signing this object:
@alexluong
alexluong / machine.js
Last active February 5, 2020 03:57
Generated by XState Viz: https://xstate.js.org/viz
const isNewPayment = true
const isAuthenticated = false
const isCustomer = false
// Change this to change transition time between states
const TRANSITION_TIME = 2000 // ms
const checkoutMachine = Machine(
{
id: "checkout",
@alexluong
alexluong / machine.js
Created January 24, 2020 22:10
Generated by XState Viz: https://xstate.js.org/viz
const isAuthenticated = true
const machine = Machine({
id: "checkout",
initial: "emailAndAddress",
context: {
isAuthenticated,
addresses: [],
paymentMethods: [],
@alexluong
alexluong / machine.js
Last active January 24, 2020 04:52
Generated by XState Viz: https://xstate.js.org/viz
const isAuthenticated = true
const machine = Machine({
id: "checkout",
initial: "emailAndAddress",
context: {
isAuthenticated,
addresses: [],
paymentMethods: [],
@alexluong
alexluong / machine.js
Last active January 22, 2020 20:31
Generated by XState Viz: https://xstate.js.org/viz
const machine = Machine({
id: 'checkout',
initial: 'emailAndAddress',
context: {
retries: 0
},
states: {
emailAndAddress: {
initial: "idle",
states: {
1. Fork
2. Clone `git clone <forked-repo> && cd <forked-repo>`
3. Add upstream `git remote add upstream <original-repo>`
4. Fetch upstream `git fetch upstream`
5. Set master to track upstream `git branch --set-upstream-to=upstream/master master`
@alexluong
alexluong / settings.json
Last active March 10, 2020 05:38
VSCode Settings
{
"explorer.confirmDelete": false,
"explorer.confirmDragAndDrop": false,
"workbench.sideBar.location": "left",
"workbench.colorTheme": "Night Owl (No Italics)",
"workbench.iconTheme": "vscode-great-icons",
"editor.cursorStyle": "line",
"editor.fontFamily": "'Jetbrains Mono', 'Operator Mono'",
"editor.fontLigatures": true,
"editor.fontSize": 14,