Skip to content

Instantly share code, notes, and snippets.

@lettertwo
lettertwo / laserwave.yml
Created January 28, 2022 17:47
Laserwave theme for warp.dev
accent:
left: "#1ed3ec"
right: "#ff52bf"
background: "#27212e"
details: darker
foreground: "#ffffff"
terminal_colors:
bright:
black: "#575656"
blue: "#1ed3ec"
@lettertwo
lettertwo / machine.js
Created January 6, 2021 18:59
Generated by XState Viz: https://xstate.js.org/viz
// Available variables:
// - Machine
// - interpret
// - assign
// - send
// - sendParent
// - spawn
// - raise
// - actions
@lettertwo
lettertwo / machine.js
Last active January 7, 2021 15:56
Generated by XState Viz: https://xstate.js.org/viz
// Available variables:
// - Machine
// - interpret
// - assign
// - send
// - sendParent
// - spawn
// - raise
// - actions
@lettertwo
lettertwo / machine.js
Last active January 6, 2021 16:44
Generated by XState Viz: https://xstate.js.org/viz
// Available variables:
// - Machine
// - interpret
// - assign
// - send
// - sendParent
// - spawn
// - raise
// - actions
@lettertwo
lettertwo / machine.js
Created November 17, 2019 17:09
Generated by XState Viz: https://xstate.js.org/viz
// Available variables:
// - Machine
// - interpret
// - assign
// - send
// - sendParent
// - spawn
// - raise
// - actions
@lettertwo
lettertwo / machine.js
Last active November 17, 2019 03:20
Generated by XState Viz: https://xstate.js.org/viz
// Available variables:
// - Machine
// - interpret
// - assign
// - send
// - sendParent
// - spawn
// - raise
// - actions
@lettertwo
lettertwo / vim.md
Created April 8, 2019 14:56
Philosophy of VIM

Philosophy of Vim

  • most of programming time is spent editing, not writing.
  • editing is a process of manipulating text in ways beyond just writing, such as deletion, replacement, reordering, duplication, formatting, etc.
  • since writing (input) is a relatively small part of the whole of programming, making the other tasks easier by default can be a productivity win.
  • os shortcuts for editing can't get 'shadowed' by custom actions, since they take the form of commands in 'normal' (command) mode

A Modal Editor

@lettertwo
lettertwo / webpack.config.coffee
Created January 15, 2015 20:42
Example of Webpack config for building an isomorphic JS app for both client and server
path = require 'path'
webpack = require 'webpack'
fs = require 'fs'
ExtractTextPlugin = require 'extract-text-webpack-plugin'
ProgressPlugin = require 'webpack/lib/ProgressPlugin'
flag = require 'node-env-flag'
settings = require './src/settings'
scriptExportsLoader = path.join __dirname, 'script-exports-loader'
@lettertwo
lettertwo / keybase.md
Created June 20, 2014 14:02
keybase.md

Keybase proof

I hereby claim:

  • I am lettertwo on github.
  • I am lettertwo (https://keybase.io/lettertwo) on keybase.
  • I have a public key whose fingerprint is A847 07CA 5BDE 19DD 577D 980F 9BAF 835E 8C44 D70C

To claim this, I am signing this object:

@lettertwo
lettertwo / A.js
Created May 7, 2014 14:02
An illustration of the Webpack 1.1.8 entry emission issue when in watch mode (https://github.com/webpack/webpack/issues/256)
// This is our entry point.
// We use `require.ensure` to tell webpack to generate a chunk that bundles `B.js`
require.ensure(['./B'], function (require) {
require('./B');
});