This file contains hidden or 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
import type { ActorRefFrom } from 'xstate'; | |
import type resizeMachine from '~/utils/machines/resizemachine'; | |
export const defaultWidth = 350; | |
const sliderWidth = 10; | |
const zIndex = 2; | |
const base = { | |
position: 'fixed', | |
top: 0, |
This file contains hidden or 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 |
This file contains hidden or 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 doMatch = () => ''; | |
const isValidInput = () => true; | |
const calculator = Machine({ | |
id: 'calculator', | |
initial: 'idle', | |
context: { | |
input: '', | |
result: '', | |
buttonText: 3, |
This file contains hidden or 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
// ---- | |
// libsass (v3.2.5) | |
// ---- | |
.test { | |
.flex & &__yo{ | |
background: red; | |
} |
This file contains hidden or 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
function swapElements(elm1, elm2) { | |
var parent1, next1, | |
parent2, next2; | |
parent1 = elm1.parentNode; | |
next1 = elm1.nextSibling; | |
parent2 = elm2.parentNode; | |
next2 = elm2.nextSibling; | |
parent1.insertBefore(elm2, next1); |