Skip to content

Instantly share code, notes, and snippets.

View MaelFr's full-sized avatar

Maël Bernero MaelFr

  • Nantes, France
View GitHub Profile
// ==UserScript==
// @name LiveFFN meta viewport
// @version 2025-02-09
// @description Adds meta viewport tag to LiveFFN
// @author MaelFr
// @match https://www.liveffn.com/*
// @icon https://www.liveffn.com/media/img/apple-touch-icon.png
// @grant none
// ==/UserScript==
@MaelFr
MaelFr / machine.js
Created August 13, 2021 12:56
Generated by XState Viz: https://xstate.js.org/viz
// Available variables:
// - Machine
// - interpret
// - assign
// - send
// - sendParent
// - spawn
// - raise
// - actions
@MaelFr
MaelFr / machine.js
Last active March 26, 2021 17:12
Generated by XState Viz: https://xstate.js.org/viz
// Available variables:
// - Machine
// - interpret
// - assign
// - send
// - sendParent
// - spawn
// - raise
// - actions
@MaelFr
MaelFr / machine.js
Created May 19, 2020 13:48
Generated by XState Viz: https://xstate.js.org/viz
const door = Machine({
id: 'tryTryAgain',
initial: 'idle',
context: {
tries: 0
},
states: {
idle: {
on: { TRY: 'trying' }
},
@MaelFr
MaelFr / machine.js
Created May 19, 2020 13:35
Generated by XState Viz: https://xstate.js.org/viz
const door = Machine({
id: 'door',
initial: 'locked',
states: {
locked: {
on: {
UNLOCK: 'unlocked'
}
},
unlocked: {
@MaelFr
MaelFr / machine.js
Created May 19, 2020 13:27
Generated by XState Viz: https://xstate.js.org/viz
const door = Machine({
id: 'door',
initial: 'locked',
states: {
locked: {},
unlocked: {},
closed: {},
opened: {}
}
})
@MaelFr
MaelFr / machine.js
Created May 19, 2020 13:21
Generated by XState Viz: https://xstate.js.org/viz
const vendingMachineMachine = Machine(
{
id: 'vendingMachine',
initial: 'idle',
context: {
deposited: 0
},
states: {
idle: {
on: {
@MaelFr
MaelFr / machine.js
Created May 19, 2020 13:12
Generated by XState Viz: https://xstate.js.org/viz
const fetchMachine = Machine({
id: 'alarmClock',
initial: 'idle',
states: {
idle: {
on: {
ALARM: 'alarming'
}
},
alarming: {
@MaelFr
MaelFr / machine.js
Last active May 19, 2020 12:08
Generated by XState Viz: https://xstate.js.org/viz
const idleMachine = Machine({
id: 'idle',
initial: 'idle',
states: {
idle: {
entry: 'logEntry',
exit: 'logExit'
},
},
on: {
@MaelFr
MaelFr / machine.js
Last active May 19, 2020 10:11
Generated by XState Viz: https://xstate.js.org/viz
const fetchMachine = Machine({
id: 'lightbulb',
initial: 'unlit',
states: {
unlit: {
on: {
TOGGLE: 'lit',
BREAK: 'broken'
}
},