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
version: "3.8" | |
services: | |
pg: | |
image: postgres:alpine | |
container_name: dev-postgres | |
hostname: pg | |
environment: | |
POSTGRES_USER: me | |
POSTGRES_PASSWORD: password |
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 context = { useLoadingStatus: false }; | |
const queryMachine = Machine( | |
{ | |
id: "query", | |
context, | |
on: { | |
UPDATE: [ | |
{ target: "loading", cond: "isLoading" }, | |
{ target: "notFound", cond: "isNotFound" }, |
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 ALL = "All"; | |
const fetchMachine = Machine( | |
{ | |
id: "fetch", | |
initial: "loading", | |
context: { characters: [], filtered: [], genders: [], retries: 0 }, | |
states: { | |
loading: { |
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 form = { | |
initial: "editing", | |
states: { | |
editing: { | |
entry: "updateStatus", | |
on: { | |
CHANGE: { target: "editing", actions: ["edit"] }, | |
RESET: { target: "editing", actions: ["reset"] }, | |
SUBMIT: { target: "submitting", cond: "submitAllowed" }, | |
}, |
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
// Available variables: | |
// - Machine | |
// - interpret | |
// - assign | |
// - send | |
// - sendParent | |
// - spawn | |
// - raise | |
// - actions | |
// - XState (all XState exports) |
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
#!/usr/bin/env python | |
import csv | |
import json | |
import re | |
from collections import OrderedDict | |
from urllib.parse import quote | |
import attr | |
import click |
-
Install [pyenv][] using [pyenv-installer][]:
curl -L https://raw.githubusercontent.com/pyenv/pyenv-installer/master/bin/pyenv-installer | bash
-
Activate pyenv for Terminal:
echo 'export PYENV_ROOT="$HOME/.pyenv"' >> ~/.bash_profile
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
HOMEBREW_VERSION: 1.2.0-50-g3e4547f5 | |
ORIGIN: https://github.com/Homebrew/brew | |
HEAD: 3e4547f52e7ebec633f8bfefc8a396d944edf908 | |
Last commit: 52 minutes ago | |
Core tap ORIGIN: https://github.com/Homebrew/homebrew-core | |
Core tap HEAD: 9c4f788f512c3fdb9f83dace59b2194a778c13bd | |
Core tap last commit: 12 hours ago | |
HOMEBREW_PREFIX: /usr/local | |
HOMEBREW_REPOSITORY: /usr/local/Homebrew | |
HOMEBREW_CELLAR: /usr/local/Cellar |
NewerOlder