Skip to content

Instantly share code, notes, and snippets.

View jgentes's full-sized avatar
🎯
Crushing it

James Gentes jgentes

🎯
Crushing it
View GitHub Profile
@jgentes
jgentes / multisync
Created June 21, 2023 03:26
archive multisync logic
play: async (trackId?: Track['id']) => {
let tracks
if (!trackId) {
// pull players from audioState to play all
;[tracks] = getAudioState()
tracks = Object.keys(tracks) as Track['id'][]
} else tracks = [trackId]
for (const trackId of tracks) {
if (trackId) setAudioState[trackId as number].playing(true)
@jgentes
jgentes / $profile
Last active March 29, 2024 00:28
powershell autocomplete
Import-Module posh-git
Set-PSReadlineKeyHandler -Key Tab -Function Complete
Set-PSReadLineKeyHandler -Chord "Tab" -Function AcceptSuggestion
Set-PSReadLineKeyHandler -Chord "RightArrow" -Function ForwardWord