Skip to content

Instantly share code, notes, and snippets.

View brentd's full-sized avatar

Brent Dillingham brentd

  • Asheville, NC
View GitHub Profile
@mactep
mactep / conceal.lua
Last active May 2, 2024 18:44
Conceal html class attribute values using treesitter
-- THIS IS DEPRECATED, USE THE FILE BELOW
-- should get bufnr from autocmd or something
-- conceal only accepts one character
-- thanks to u/Rafat913 for many suggestions and tips
local namespace = vim.api.nvim_create_namespace("class_conceal")
local group = vim.api.nvim_create_augroup("class_conceal", { clear = true })
local conceal_html_class = function(bufnr)
@mattd
mattd / face-time-party-snoozer.sh
Last active August 9, 2023 20:08
face-time-party-snoozer.sh
#!/bin/bash
sayings=(
"Okay"
"I understand"
"Sure, why not"
"Thanks for coming"
"Sounds good"
)
@brentd
brentd / gist:4591959
Last active December 11, 2015 11:08
Sublime Text 2 performance on 13" Retina MBP

I love my new 13" rMBP, but there are performance issues here and there - Sublime is definitely one of them. However with a few tweaks I've been able to get performance up to what I would call acceptable.

Steps:

  1. Grab the latest build of Sublime (currently 2219); it has retina fixes. http://www.sublimetext.com/nightly
  2. Install HEAD of the Soda theme (instructions under "Download Manually"): https://github.com/buymeasoda/soda-theme/
  3. Make these tweaks to your User Preferences (cmd-,):
{