You can alter type keys with expressions:
export type PrefixKeyWithColon<Type> = {
[Prop in keyof Type & string as `:${Prop}`]: Type[Prop]
}
/*** | |
*** Modified by Ryan McQuen - February, 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 */ |
#!/usr/bin/env bash | |
# curl -o ~/.osx https://gist.githubusercontent.com/ryanpcmcquen/b2e608311f286a4ab3e1/raw/.osx && bash ~/.osx | |
############################################################################### | |
# General UI/UX # | |
############################################################################### | |
# Disable smart dashes as they’re annoying when typing code. | |
defaults write NSGlobalDomain NSAutomaticDashSubstitutionEnabled -bool false |
[user] | |
email = rpcm@linux.com | |
name = Ryan McQuen | |
[core] | |
autocrlf = false | |
eol = lf | |
editor = subl -w | |
[pull] | |
rebase = false |
.input { | |
display: none; | |
} | |
.output { | |
display: flex; | |
align-items: center; | |
justify-content: center; | |
color: #000000; | |
font-family: monospace; |
parse_git_branch() { | |
git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/(\1)/' | |
} | |
# Useful shortcut to push to all remotes: | |
gpa() { | |
git remote | xargs -L1 git push --all | |
} | |
# Master update function: |
#!/bin/sh | |
# Darkify Slack on Mac OS or Linux. | |
# curl https://gist.githubusercontent.com/ryanpcmcquen/8a7ddc72460eca0dc1f2dc389674dde1/raw/darkify_slack.sh | sh | |
if [ "`uname -s`" = "Darwin" ]; then | |
SLACK_INTEROP_JS="/Applications/Slack.app/Contents/Resources/app.asar.unpacked/dist/ssb-interop.bundle.js" | |
else | |
SLACK_INTEROP_JS="/usr/lib/slack/resources/app.asar.unpacked/dist/ssb-interop.bundle.js" | |
fi |
<?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"/> |
------------------------------------------------------------------- | |
-- Globals | |
------------------------------------------------------------------- | |
-- This controls all window animations. | |
hs.window.animationDuration = 0 | |
------------------------------------------------------------------- | |
-- Window Layouts | |
------------------------------------------------------------------- |
{ | |
"all": | |
{ | |
"end_with_newline": true, | |
"eol": "\n", | |
"indent_size": 2, | |
"indent_with_tabs": false | |
}, | |
"js": | |
{ |