Skip to content

Instantly share code, notes, and snippets.

/***
*** Modified by Ryan McQuen - February, 2024 and July, 2024
***/
/* Light Theme for YouTube Music */
/* By Tech How */
/* Visit this project on GitHub and be the first to know about bug fixes and improvements! */
/* https://github.com/Tech-How/Light-Theme-for-YouTube-Music */
/* Color Scheme */

Remapping types:

You can alter type keys with expressions:

export type PrefixKeyWithColon<Type> = {
    [Prop in keyof Type & string as `:${Prop}`]: Type[Prop]
}
@ryanpcmcquen
ryanpcmcquen / DEFAULT__state.xml
Last active February 20, 2022 22:58
Audient EVO 8 state
<?xml version="1.0" encoding="UTF-8"?>
<presets>
<preset company="audient ltd" product="evo 8" schema-version="0.1.0"
software-version="4.2.3">
<device>
<mixer artistMixEnabled="0">
<input channel="0" mode="0" name="MIC 1" cut="0">
<mix index="0" volume="-128.00" pan="0.50"/>
<mix index="1" volume="-128.00" pan="0.50"/>
@ryanpcmcquen
ryanpcmcquen / index.html
Created June 11, 2021 23:10
Get all CSS colors as a HashMap directly from W3.
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>repl.it</title>
<link href="style.css" rel="stylesheet" type="text/css" />
</head>
<body>
<script src="script.js"></script>
@ryanpcmcquen
ryanpcmcquen / config
Created May 12, 2021 16:58
Obsidian config
{"baseFontSize":16,"pluginEnabledStatus":{"file-explorer":true,"global-search":true,"switcher":true,"graph":true,"backlink":true,"page-preview":true,"command-palette":true,"markdown-importer":true,"word-count":true,"open-with-default-app":true,"file-recovery":true},"theme":"moonstone","foldHeading":true,"foldIndent":true,"useTab":false,"enabledPlugins":["obsidian-focus-mode","obsidian-org-mode"]}
@ryanpcmcquen
ryanpcmcquen / .jsbeautifyrc
Last active December 28, 2021 22:18
McLemon configs
{
"all":
{
"end_with_newline": true,
"eol": "\n",
"indent_size": 2,
"indent_with_tabs": false
},
"js":
{
@ryanpcmcquen
ryanpcmcquen / # emscripten - 2020-10-16_16-33-47.txt
Created October 20, 2020 17:49
emscripten on macOS 10.15.7 - Homebrew build logs
Homebrew build logs for emscripten on macOS 10.15.7
Build date: 2020-10-16 16:33:47
@ryanpcmcquen
ryanpcmcquen / init.lua
Last active December 28, 2021 22:19
Hammerspoon config!
-------------------------------------------------------------------
-- Globals
-------------------------------------------------------------------
-- This controls all window animations.
hs.window.animationDuration = 0
-------------------------------------------------------------------
-- Window Layouts
-------------------------------------------------------------------
// iterators2.rs
// In this module, you'll learn some of unique advantages that iterators can offer.
// Step 1. Complete the `capitalize_first` function to pass the first two cases.
// Step 2. Apply the `capitalize_first` function to a vector of strings.
// Ensure that it returns a vector of strings as well.
// Step 3. Apply the `capitalize_first` function again to a list.
// Try to ensure it returns a single string.
// As always, there are hints if you execute `rustlings hint iterators2`!
// I AM NOT DONE
@ryanpcmcquen
ryanpcmcquen / sequential_array.rs
Created July 17, 2020 20:34
Create an array with sequentially incremented items.
let mut a = [0; 900];
for (index, element) in a.iter_mut().enumerate() {
*element = index;
}
println!("{} {} {}", a[23], a[700], a[1]);