Skip to content

Instantly share code, notes, and snippets.

View chukinas's full-sized avatar

Jonathan Chukinas chukinas

  • Comoto
  • West Chester, PA, USA
View GitHub Profile
@chukinas
chukinas / bash_cheatsheet.md
Last active July 18, 2023 17:48
Bash Cheatsheet

Bash Cheatsheet

Header

use bash

#!/bin/bash

Safety

@chukinas
chukinas / keybase.md
Last active January 6, 2023 21:23
for verifying my identity on keybase

Keybase proof

I hereby claim:

  • I am chukinas on github.
  • I am chukinas (https://keybase.io/chukinas) on keybase.
  • I have a public key ASD1egWniTGFZeCayTs9rg1GMsD-Bd5E-emwEFqxdLduSQo

To claim this, I am signing this object:

@chukinas
chukinas / vim-elixir-phoenix-liveview.md
Last active January 13, 2021 21:39
VIM for Elixir/Phoenix/LiveView Development

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

@chukinas
chukinas / machine.js
Last active May 14, 2020 11:17
Generated by XState Viz: https://xstate.js.org/viz
// 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
}
@chukinas
chukinas / machine.js
Last active May 7, 2020 22:18
Generated by XState Viz: https://xstate.js.org/viz
const getActivePlayers = ctx => {
const players = ctx.status;
const activePlayers = players.filter(player=>{
player === 'active'
})
const activePlayerNames = Object.keys(activePlayers)
return activePlayerNames
}
@chukinas
chukinas / machine.js
Last active May 7, 2020 21:46
Generated by XState Viz: https://xstate.js.org/viz
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'
}
@chukinas
chukinas / machine.js
Last active May 7, 2020 20:30
Generated by XState Viz: https://xstate.js.org/viz
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'
}