This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let s:colornames = {'aliceblue':'f0f8ff','antiquewhite':'faebd7','aqua':'00ffff','aquamarine': | |
\'7fffd4','azure':'f0ffff','beige':'f5f5dc','bisque':'ffe4c4','black':'000000','blanchedalmond': | |
\'ffebcd','blue':'0000ff','blueviolet':'8a2be2','brown':'a52a2a','burlywood':'deb887','cadetblue': | |
\'5f9ea0','chartreuse':'7fff00','chocolate':'d2691e','coral':'ff7f50','cornflowerblue':'6495ed', | |
\'cornsilk':'fff8dc','crimson':'dc143c','cyan':'00ffff','darkblue':'00008b','darkcyan':'008b8b', | |
\'darkgoldenrod':'b8860b','darkgray':'a9a9a9','darkgreen':'006400','darkgrey':'a9a9a9','darkkhaki': | |
\'bdb76b','darkmagenta':'8b008b','darkolivegreen':'556b2f','darkorange':'ff8c00','darkorchid': | |
\'9932cc','darkred':'8b0000','darksalmon':'e9967a','darkseagreen':'8fbc8f','darkslateblue':'483d8b' | |
\,'darkslategray':'2f4f4f','darkslategrey':'2f4f4f','darkturquoise':'00ced1','darkviolet':'9400d3', | |
\'deeppink':'ff1493','deepskyblue':'00bfff','dimgray':'696969','dimgrey':'696969','dodgerblue': |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
from sys import argv, exit, stdin, stdout, stderr, version_info | |
from functools import partial, lru_cache | |
eprint = partial(print, file=stderr) | |
import io | |
import os | |
import re | |
import types |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[buildPlans.iosevka-hex] | |
family = "Iosevka Hex" | |
spacing = "normal" | |
serifs = "sans" | |
noCvSs = true | |
noLigation = true | |
[buildPlans.iosevka-hex.variants.design] | |
capital-a = "curly-serifless" | |
capital-b = "more-asymmetric-serifless" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
from sys import argv, exit, stdin, stdout, stderr, version_info | |
from functools import partial | |
eprint = partial(print, file=stderr) | |
# Python standard library imports | |
import os | |
from io import BytesIO, TextIOWrapper | |
# Third party library imports |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
import os | |
import sys | |
import gzip | |
import itertools | |
from struct import pack, pack_into, unpack, unpack_from, calcsize | |
from binascii import hexlify, unhexlify | |
from subprocess import Popen, PIPE |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# SPDX-License-Identifier: 0BSD OR MIT-0 OR CC0-1.0+ | |
# Copyright © 2025 Ryan Castellucci <[email protected]> | |
# | |
# vim_pack_update.sh | |
# | |
# A script to update all vim plugins managed by the native package manager. | |
# It handles plugins on a branch (fast-forward pull) and plugins on a tag | |
# (checks out the latest tag). | |
# |
This file has been truncated, but you can view the full file.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
from sys import argv, exit, stdin, stdout, stderr | |
from functools import partial | |
eprint = partial(print, file=stderr) | |
import io | |
import re | |
import sys | |
import struct |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#pragma once | |
/* automatically generated */ | |
#define U64H2BE(V) __extension__({ \ | |
uint64_t _v = (V); \ | |
uint8_t _t[8]; \ | |
_t[0] = (_v & UINT64_C(0xFF00000000000000)) >> 56; \ | |
_t[1] = (_v & UINT64_C(0x00FF000000000000)) >> 48; \ | |
_t[2] = (_v & UINT64_C(0x0000FF0000000000)) >> 40; \ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
" automatically make script files executable when writing for the first time | |
function! NewScriptExec() abort | |
" check if this is a new file which starts with a shebang | |
if exists('s:new_file') && getline(1)[0:1] == '#!' | |
" based on https://stackoverflow.com/a/57539332 | |
let l:file = expand('%') | |
let l:old_perm = getfperm(l:file) | |
" set the exec bit everywhere the read bit is set | |
let l:new_perm = substitute(l:old_perm, '\v(r.)-', '\1x', 'g') | |
if (l:old_perm != l:new_perm) |
NewerOlder