Skip to content

Instantly share code, notes, and snippets.

View happylinks's full-sized avatar
💭
video is hard

Michiel Westerbeek happylinks

💭
video is hard
View GitHub Profile
# fix ssh agent when tmux is detached
setenv -g SSH_AUTH_SOCK $HOME/.ssh/ssh_auth_sock
# 0 is too far from ` ;)
set -g base-index 1
# Automatically set window title
set-window-option -g automatic-rename on
set-option -g set-titles on
@happylinks
happylinks / machine.js
Last active November 28, 2019 09:07
Generated by XState Viz: https://xstate.js.org/viz
// Available variables:
// - Machine
// - interpret
// - assign
// - send
// - sendParent
// - spawn
// - raise
// - actions
@happylinks
happylinks / machine.js
Last active November 28, 2019 12:39
Generated by XState Viz: https://xstate.js.org/viz
const layerMachine = Machine(
{
key: 'layer',
initial: 'idle',
context: {
id: null,
x: null,
y: null,
width: null,
height: null,
@happylinks
happylinks / machine.js
Last active November 29, 2019 09:04
Generated by XState Viz: https://xstate.js.org/viz
// Available variables:
// - Machine
// - interpret
// - assign
// - send
// - sendParent
// - spawn
// - raise
// - actions
@happylinks
happylinks / machine.js
Last active November 29, 2019 09:30
Generated by XState Viz: https://xstate.js.org/viz
const layerMachine = Machine(
{
id: 'layer',
initial: 'idle',
states: {
idle: {
on: {
MOUSE_OVER: 'hovered',
},
},
@happylinks
happylinks / machine.js
Last active November 29, 2019 09:39
Generated by XState Viz: https://xstate.js.org/viz
const layerMachine = Machine(
{
id: 'layer',
initial: 'idle',
context: {
id: null,
content: null,
editorState: null,
},
states: {
@happylinks
happylinks / machine.js
Last active December 1, 2019 11:51
Generated by XState Viz: https://xstate.js.org/viz
// Available variables:
// - Machine
// - interpret
// - assign
// - send
// - sendParent
// - spawn
// - raise
// - actions
@happylinks
happylinks / machine.js
Created December 1, 2019 11:40
Generated by XState Viz: https://xstate.js.org/viz
// Available variables:
// - Machine
// - interpret
// - assign
// - send
// - sendParent
// - spawn
// - raise
// - actions
@happylinks
happylinks / machine.js
Created December 1, 2019 11:42
Generated by XState Viz: https://xstate.js.org/viz
// Available variables:
// - Machine
// - interpret
// - assign
// - send
// - sendParent
// - spawn
// - raise
// - actions
@happylinks
happylinks / machine.js
Last active December 3, 2019 09:09
Generated by XState Viz: https://xstate.js.org/viz
const presentedLayersMachine = Machine({
id: 'layers',
initial: 'loading',
context: {
scarletPreviewer: null,
draftLayers: [],
publishedLayers: [],
presentedLayers: [],
initialArtboard: null,
query: () => Promise.resolve(),