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
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); |
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
// ---- | |
// libsass (v3.2.5) | |
// ---- | |
.test { | |
.flex & &__yo{ | |
background: red; | |
} |
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 doMatch = () => ''; | |
const isValidInput = () => true; | |
const calculator = Machine({ | |
id: 'calculator', | |
initial: 'idle', | |
context: { | |
input: '', | |
result: '', | |
buttonText: 3, |
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 |