use bash
#!/bin/bash
use bash
#!/bin/bash
I hereby claim:
To claim this, I am signing this object:
This is the article I wish I had when I started learning Vim and using it for elixir development. My aim here is to provide a roadmap, a view of the big picture, and a flavor of my workflow without getting into all the nitty gritty. I try to stay out of the weeds by directing you to more detailed sources where possible. This train takes the scenic route through the wild countryside and cities of vim editing. You can use it to travel to all the places, but it's up to you to get off at each station and do you own exploring and detailed learning. Don't worry. The train will still be at the station when you get back!
"Do not let perfection be the enemy of the good." -- Voltaire.
I'm publishing this gist right from the get-go. It has grammar and spellnig mistakes, structural issues, is overly wordly, and has broken or non-existent links. There was a time where I would've waited til this was perfect (whatever that means) before releasing it. But I continually add to it, so please overlook the warts and don't judg
// Available variables: | |
// - Machine | |
// - interpret | |
// - assign | |
// - send | |
// - sendParent | |
// - spawn | |
// - raise | |
// - actions |
const getActivePlayers = ctx => { | |
const players = ctx.status; | |
const activePlayers = players.filter(player=>{ | |
player === 'active' | |
}) | |
const activePlayerNames = Object.keys(activePlayers) | |
return activePlayerNames | |
} | |
const getActivePlayers = ctx => { | |
const players = ctx.status; | |
const activePlayers = players.filter(player=>{ | |
player === 'active' | |
}) | |
const activePlayerNames = Object.keys(activePlayers) | |
return activePlayerNames | |
} | |
const guards = { | |
isSelf: ()=>false, | |
} | |
const eventConflicts = Machine({ | |
id: 'conflicts', | |
initial: 'first', | |
on: { | |
SUBMIT: 'third', | |
}, |
const buttonFactory = id => { | |
const toggleName = `TOGGLE${id}` | |
return { | |
id: `button${id}`, | |
initial: 'hist', | |
states: { | |
off: { | |
on: { | |
[toggleName]: 'on' | |
} |
const buttonFactory = id => { | |
const toggleName = `TOGGLE${id}` | |
return { | |
id: `button${id}`, | |
initial: 'hist', | |
states: { | |
off: { | |
on: { | |
[toggleName]: 'on' | |
} |
const buttonFactory = id => { | |
const toggleName = `TOGGLE${id}` | |
return { | |
id: `button${id}`, | |
initial: 'hist', | |
states: { | |
off: { | |
on: { | |
[toggleName]: 'on' | |
} |