Skip to content

Instantly share code, notes, and snippets.

@wycleffsean
wycleffsean / async_kitchen.rb
Created October 2, 2020 05:32
Cooperative concurrency in ruby
require 'fiber'
class EventLoop
def initialize
@tasks = {}
@state = {}
end
def call(&block)
instance_eval &block
@wycleffsean
wycleffsean / todo
Last active November 12, 2020 19:30
TODO
#!/usr/bin/env ruby
# vim: set filetype=ruby :
require 'date'
plan = File.read(File.expand_path('~/.plan'))
date = nil
indent = 0
@wycleffsean
wycleffsean / wezterm.lua
Last active December 14, 2021 00:44
wezterm
local wezterm = require 'wezterm';
return {
enable_wayland = true,
warn_about_missing_glyphs = false,
cursor_blink_rate = 800,
default_cursor_style = "BlinkingBlock",
-- font = wezterm.font('Inconsolata-g for powerline'),
-- font = wezterm.font("Fira Code"),
-- font = wezterm.font_with_fallback({"Fira Code"}),
@wycleffsean
wycleffsean / kakrc
Created September 6, 2022 15:27
kakrc
evaluate-commands %sh{
plugins="$kak_config/plugins"
mkdir -p "$plugins"
[ ! -e "$plugins/plug.kak" ] && \
git clone -q https://github.com/andreyorst/plug.kak.git "$plugins/plug.kak"
printf "%s\n" "source '$plugins/plug.kak/rc/plug.kak'"
}
plug "andreyorst/plug.kak" noload
plug "andreyorst/fzf.kak" config %{