Skip to content

Instantly share code, notes, and snippets.

View CompeyDev's full-sized avatar

Erica Marigold CompeyDev

View GitHub Profile
@CompeyDev
CompeyDev / settings.json
Last active June 8, 2023 11:18
A "one-like" and dimmer version of the Purple Horizon VSCode theme.
"[Purple Horizon]": {
"terminalCursor.foreground": "#1f1929",
"editorLineNumber.activeForeground": "#1f1929",
"sideBar.border": "#1f1929",
"focusBorder": "#1f1929",
"sideBarSectionHeader.border": "#1f1929",
"editorGroup.border": "#1f1929",
"panel.border": "#1f1929",
"tab.border": "#1f1929",
"tab.activeBackground": "#1f1929",
@CompeyDev
CompeyDev / kitty.conf
Created May 23, 2023 16:10
Minimal kitty configuration featuring catpuccin.
# vim:fileencoding=utf-8:foldmethod=marker
include ./theme.conf
#: Fonts {{{
#: kitty has very powerful font management. You can configure
#: individual font faces and even specify special fonts for particular
#: characters.
@CompeyDev
CompeyDev / crc32.lua
Last active December 26, 2024 06:22
An example CRC32 implementation in pure luau.
-- This is a dysfunctional PoC for a luau implementation of crc32.
local POLY = 0x04C11DB7
local crc32 = {}
local crc32_t = {}
setmetatable(crc32_t, {
__call = function (crc32_t, ...): {[number]: number}
local c = 1
@CompeyDev
CompeyDev / settings.json
Created April 13, 2023 14:50
A "one" version of the Tokyo Night Horizon V2 theme.
"workbench.colorCustomizations": {
"[Tokyo Night Horizon (Syntax, Dark+ V2)]": {
"terminalCursor.foreground": "#ffffff",
"editorLineNumber.activeForeground": "#ffffff",
"sideBar.border": "#24292e",
"focusBorder": "#24292e",
"sideBarSectionHeader.background": "#1f1f1f",
"sideBar.background": "#1f1f1f",
"sideBarSectionHeader.border": "#24292e",
"editorGroup.border": "#24292e",
@CompeyDev
CompeyDev / README.md
Last active November 23, 2022 09:24
yatsg - Yet Another TypeScript Style Guide

yatsg

Yet another TypeScript Style Guide

yatsg is a personal style guide that I usually follow when writing TypeScript code. This generally borrows heavily from the standard.js style guide, so it may be worth checking that out first.

Table of Contents

  • Naming Convention
  • Specific Data Types
@CompeyDev
CompeyDev / settings.json
Last active November 6, 2022 16:37
A "one" version of the GitHub Dark theme.
"workbench.colorTheme": "GitHub Dark",
"workbench.colorCustomizations": {
"[GitHub Dark]": {
"terminalCursor.foreground": "#24292e",
"editorLineNumber.activeForeground": "#24292e",
"sideBar.border": "#24292e",
"focusBorder": "#24292e",
"sideBarSectionHeader.border": "#24292e",
"editorGroup.border": "#24292e",
"panel.border": "#24292e",
@CompeyDev
CompeyDev / nvim_alpha_startup.lua
Created October 22, 2022 16:24
A customized Neovim splash screen using alpha.
local status_ok, alpha = pcall(require, "alpha")
if not status_ok then
return
end
local dashboard = require "alpha.themes.dashboard"
dashboard.section.header.val = {
[[ __ ]],
[[ ___ ___ ___ __ __ /\_\ ___ ___ ]],
[[ / _ `\ / __`\ / __`\/\ \/\ \\/\ \ / __` __`\ ]],
@CompeyDev
CompeyDev / Cargo.toml
Created August 16, 2022 03:41 — forked from CoolOppo/Cargo.toml
How to compile to a DLL in rust while using it as a normal rust library
[package]
name = "test"
version = "0.1.0"
authors = ["YOU <YOU@users.noreply.github.com>"]
edition = "2018"
[lib]
crate-type = ["cdylib"]
@CompeyDev
CompeyDev / musiccomp-setup-win.sh
Created March 2, 2022 08:23
MusicComp setup for windows.
wget https://gist.githubusercontent.com/CompeyDev/7067f272144d5b3de4b9549f50745e33/raw/6d3e047ba2f1957e636cd7507ee20e3f3a82a5ae/ChocolateyInstall.ps1
Set-ExecutionPolicy Bypass -Scope Process -Force
.\ChocolateyInstallNonAdmin.ps1
choco install nodejs
npm i musiccomp-discord-bot
@CompeyDev
CompeyDev / ChocolateyInstall.ps1
Created March 2, 2022 08:10
Install choclatey.
# Set directory for installation - Chocolatey does not lock
# down the directory if not the default
$InstallDir='C:\ProgramData\chocoportable'
$env:ChocolateyInstall="$InstallDir"
# If your PowerShell Execution policy is restrictive, you may
# not be able to get around that. Try setting your session to
# Bypass.
Set-ExecutionPolicy Bypass -Scope Process -Force;