Skip to content

Instantly share code, notes, and snippets.

View SG60's full-sized avatar
๐Ÿ“œ

Sam Greening SG60

๐Ÿ“œ
View GitHub Profile
@SG60
SG60 / NavigationProgressBar.svelte
Created May 10, 2022 20:43
A progress bar for navigation in a SvelteKit app (like what YouTube does!)
<script>
import { beforeNavigate, afterNavigate } from '$app/navigation';
import { tweened } from 'svelte/motion';
import { cubicOut } from 'svelte/easing';
// Duration of transitions in milliseconds
const duration = 400;
// Svelte store with slew
const progress = tweened(0, { duration: duration, easing: cubicOut });
@SG60
SG60 / neovide-launcher-pwsh.ps1
Created December 28, 2021 17:40
Neovide WSL Launcher Script
param($p1)
C:\Path\To\neovide.exe --wsl "$(wsl wslpath -ua $p1)"
@SG60
SG60 / Raspberry Pi.md
Last active February 17, 2021 15:53
Rapberry Pi setup
curl -sL https://dtcooper.github.io/raspotify/install.sh | sh

Then edit the config file to get high quality + any other desired options.

Bluetooth

  • Install bluealsa
  • Then follow steps from here
@SG60
SG60 / nix.fish
Last active January 17, 2022 08:58
Nix path setup file for fish (based on the bash version)
if [ -n "$HOME" ]
set NIX_LINK "$HOME/.nix-profile"
# Set the default profile.
if not [ -L "$NIX_LINK" ]
echo "creating $NIX_LINK" >&2
set _NIX_DEF_LINK /nix/var/nix/profiles/default
/nix/store/rznhi2hyzcgckk7yb2662lr57sb906ps-coreutils-8.24/bin/ln -s "$_NIX_DEF_LINK" "$NIX_LINK"
end