Skip to content

Instantly share code, notes, and snippets.

View rschwabco's full-sized avatar

Roie Schwaber-Cohen rschwabco

  • Galileo
  • Seattle, WA
View GitHub Profile
@rschwabco
rschwabco / machine.js
Last active February 5, 2021 23:20
Generated by XState Viz: https://xstate.js.org/viz
const fleetScheduleApp = {
id: 'app',
initial: 'idle',
type: 'compound',
states: {
idle: {
id: 'app-idle',
on: {
eventClick: {
@rschwabco
rschwabco / machine.js
Last active February 6, 2021 22:03
Generated by XState Viz: https://xstate.js.org/viz
const loggedInSuccess = () => true
const userAddedNotification = () => true
const assetAddedNotification = () => true
const podAddedNotification = () => true
const podUpdatedNotification = () => true
const addAssetMachine = {
initial: "",
states: {
}
@rschwabco
rschwabco / SketchSystems.spec
Created February 13, 2021 09:10
Accelerun Idea Onboarding
Accelerun Idea Onboarding
Do you have a name?
yes -> describe the idea
no -> I do not have a name
I do not have a name
try to give a working title
ok -> working title
working title
still none -> idea name refinement
done -> describe the idea
@rschwabco
rschwabco / SketchSystems.spec
Created February 19, 2021 17:56
Interacting with a Vessel
Interacting with a Vessel
Click a Vessel
Add unavialble times
Interacting with a Requirement
Click on a Requirement
Open the details panel
Right Click a Requirement
Show Requirement Unassignment dialog
Drag and Drop a Requirement
Show Requirement Assignment Dialog
Fanar
Planning
Plan
do promote -> Promote
Promote
persist plan
persist plan -> persist actual
persist actual
persist actual -> Operation
@rschwabco
rschwabco / SketchSystems.spec
Last active March 10, 2021 18:01
Sorting Game Tracker For Gali
Sorting Game Tracker For Gali
Idle*
Start Playing*
Pick up shape*
Name the shape
Name match success -> Attempt match
Name match failure -> Name the shape
Attempt match
Move -> Move the sorter
Match success -> Success
@rschwabco
rschwabco / SketchSystems.spec
Last active June 6, 2021 22:17
State Mahchine Building
State Mahchine Building
Prep
set title -> Set Title
Set Title
title set -> Enumerate States
Enumerate States
define state -> Define State
Define State
set name -> Set Name
define substates -> Enumerate States
header {
grid-area: header;
}
main {
grid-area: main;
}
aside {
@rschwabco
rschwabco / aserto-user-example.json
Created December 16, 2021 20:57
A an example for a user in Aserto's library
{
"id": "cirkzmrhzgmzos03mzm1ltqwngqtywy2ni1jnzdjzjezyte1zjgsbwxvy2fs",
"enabled": true,
"display_name": "Euan Garden",
"email": "[email protected]",
...
"identities": {
...
},
"attributes": {
@rschwabco
rschwabco / configuration.js
Created December 16, 2021 21:02
Configuration for React app auth
const configuration = {
authority: `https://${process.env.REACT_APP_OIDC_DOMAIN}/dex`,
clientId: process.env.REACT_APP_OIDC_CLIENT_ID,
autoSignIn: true,
responseType: "id_token",
scope: "openid profile email",
redirectUri: window.location.origin,
audience: process.env.REACT_APP_OIDC_AUDIENCE,
onSignIn: () => {
window.location.replace(window.location.origin);