Skip to content

Instantly share code, notes, and snippets.

View Platekun's full-sized avatar
😴
I may be slow to respond.

Carlos Camilo Platekun

😴
I may be slow to respond.
View GitHub Profile
@Platekun
Platekun / machine.js
Created December 11, 2020 15:08
Generated by XState Viz: https://xstate.js.org/viz
Machine({
id: 'Unintegrated Tournaments',
initial: 'setUp',
context: {},
states: {
disabled: {
type: 'final',
},
setUp: {
on: {
@Platekun
Platekun / machine.js
Created March 30, 2020 19:11
Generated by XState Viz: https://xstate.js.org/viz
Machine({
"id": "Example 1",
"context": {},
"type": "parallel",
"states": {
"routing": {
"initial": "initial",
"states": {
"initial": {
"on": {
@Platekun
Platekun / machine.js
Created March 10, 2020 21:49
Generated by XState Viz: https://xstate.js.org/viz
Machine({
id: '@mahou/routing',
type: "parallel",
initial: "A",
states: {
routing: {
initial: "brands",
states: {
"brands": {
"on": {
@Platekun
Platekun / machine.js
Created January 19, 2020 17:02
Generated by XState Viz: https://xstate.js.org/viz
// Available variables:
// - Machine
// - interpret
// - assign
// - send
// - sendParent
// - spawn
// - raise
// - actions
@Platekun
Platekun / machine.js
Created January 19, 2020 16:45
Generated by XState Viz: https://xstate.js.org/viz
const WEB_PLAYBACK_API = 'https://api.spotify.com/v1/me/player';
const InitialState = '@Initial';
const ReadyState = '@Ready';
const NotReadyState = '@NotReadyState';
const IdleState = '@Idle';
const PlayState = '@Play';
const RequestingToPlayTrackState = '@Play/Track/Request';
const RequestingToPlayAlbumState = '@Play/Album/Request';
const RequestingToResumeTrackState = '@Resume/Request';
const PlayingState = '@Play/Success';
@Platekun
Platekun / machine.js
Created December 4, 2019 13:13
Generated by XState Viz: https://xstate.js.org/viz
// Available variables:
// - Machine
// - interpret
// - assign
// - send
// - sendParent
// - spawn
// - raise
// - actions
@Platekun
Platekun / machine.js
Created December 3, 2019 19:25
Generated by XState Viz: https://xstate.js.org/viz
// Available variables:
// - Machine
// - interpret
// - assign
// - send
// - sendParent
// - spawn
// - raise
// - actions
@Platekun
Platekun / machine.js
Created December 3, 2019 18:31
Generated by XState Viz: https://xstate.js.org/viz
function cuid() {}
function sweetAlert() {}
function moment() {}
function domToImage() {}
function api() {}
function createProgressFormDraft() {}
function adjustMonthYearDate() {}
function formatIntoValidServerDate () {}
@Platekun
Platekun / machine.js
Created November 20, 2019 18:02
Generated by XState Viz: https://xstate.js.org/viz
function cuid() {}
function sweetAlert() {}
const REDIRECT_LOCATION = 'https://www.getluna.com/';
/** ***************************************************************************
* Form Machine *
*************************************************************************** */
const InitialState = '@Initial';
@Platekun
Platekun / machine.js
Created November 18, 2019 21:50
Generated by XState Viz: https://xstate.js.org/viz
"use strict";
const InitialState = '@Initial';
const FetchingState = '@Data/Request';
const FailureState = '@Data/Failure';
const PostFetchState = '@Data/Post';
const IdleState = '@Idle';
const TabsModeState = '@TabsMode';
const SinglePaneModeState = '@SinglePaneModeState';
const AlbumsTabState = '@Albums';
const AlbumsIdleState = '@Albums/Idle';