Skip to content

Instantly share code, notes, and snippets.

View jssee's full-sized avatar
🤝
Building, destroying

Jesse Hoyos jssee

🤝
Building, destroying
View GitHub Profile
/**
* Lumen Diff Extension
*
* /lumen-diff command lists all files the model has read/written/edited in the active session branch,
* coalesced by path and sorted newest first. Selecting a file opens it in lumen
*/
import type { ExtensionAPI } from "@mariozechner/pi-coding-agent";
import { DynamicBorder } from "@mariozechner/pi-coding-agent";
import {
@jssee
jssee / CLAUDE.md
Last active January 29, 2026 20:22
Global claude md
IMPORTANT: DO NOT SKIP or ignore any part of the following standards. These standards supersede any conflicting instructions you may have received previously.

Standards

  • IMPORTANT: Aim for simple and robust code with room to grow; let the code be smaller than your first instinct.
  • Do not stop at “it runs.” Think: “Under what conditions does this work, and what happens outside them?”
  • Before taking a shortcut, state the cost explicitly.
@jssee
jssee / partone.lua
Created December 1, 2023 16:18
AOC-2023-1
local input = os.getenv("PWD") .. "/2023/1/input.txt"
local sum = 0
for num, i in io.lines(input) do
local r = {}
-- each line becomes a table of values
for c in num:gmatch(".") do
-- remove values that are not numbers
local bit = tonumber(c)
@jssee
jssee / async_make.lua
Created August 16, 2020 19:46 — forked from phelipetls/async_make.lua
Run :make asynchronously in Neovim
local M = {}
local function has_non_whitespace(str)
return str:match("[^%s]")
end
local function fill_qflist(lines)
vim.fn.setqflist({}, "a", {
title = vim.bo.makeprg,
lines = vim.tbl_filter(has_non_whitespace, lines),
@jssee
jssee / alacritty.yml
Created June 17, 2020 21:44
alacritty config
env:
TERM: xterm-256color
window:
dimensions:
columns: 120
lines: 100
decorations: full
scrolling:
@jssee
jssee / lsp.lua
Created April 7, 2020 14:35
nvim lsp -> qf
local diagnostics_quickfix = function(_, _, result, _)
if not result then return end
local uri = result.uri
local bufnr = vim.uri_to_bufnr(uri)
local diagnostics = result.diagnostics
if not bufnr then
err_message("LSP.publishDiagnostics: Couldn't find buffer for ", uri)
return
end
for _, v in ipairs(diagnostics) do
@jssee
jssee / SchemeProvider.tsx
Last active April 19, 2019 15:22
ColorProvider
/** @jsx jsx */
import * as React from "react";
import { jsx } from "@emotion/core";
import theme from "../../../lib/theme";
type ColorScheme = "dark" | "light";
interface Props {
scheme: ColorScheme;
# OPTIONS
# =======
set-option global ui_options ncurses_assistant=cat ncurses_enable_mouse=no
set-option global autoreload yes
set-option global scrolloff 5,10
set-option global tabstop 2
set-option global indentwidth 2
set-option global grepcmd 'rg --column --with-filename'
# HIHGHLIGHTERS
@jssee
jssee / table.mkdn
Created December 14, 2018 21:31 — forked from ngs/table.mkdn
Unicode character table

A

Description Entity Preview
A With Acute, Latin Capital Letter Á Á
A With Acute, Latin Small Letter á á
A With Breve, Latin Small Letter ă ă
A With Caron, Latin Small Letter ǎ ǎ
A With Circumflex, Latin Capital Letter  Â
A With Circumflex, Latin Small Letter â â
@jssee
jssee / functional-utils.js
Created August 23, 2018 15:20 — forked from bendc/functional-utils.js
A set of pure ES2015 functions aimed to make functional JavaScript more idiomatic.
// array utils
// =================================================================================================
const combine = (...arrays) => [].concat(...arrays);
const compact = arr => arr.filter(Boolean);
const contains = (() => Array.prototype.includes
? (arr, value) => arr.includes(value)
: (arr, value) => arr.some(el => el === value)