Skip to content

Instantly share code, notes, and snippets.

View heyztb's full-sized avatar
💻
Working remotely

Zach Blake heyztb

💻
Working remotely
View GitHub Profile
@heyztb
heyztb / Header.svelte
Last active September 11, 2021 04:00
Svelte Dark Mode implementation
<script>
// snip
import { theme } from '$lib/stores/theme-store'
const toggleTheme = () => {
if ($theme === 'dark') {
$theme = 'light'
} else {
$theme = 'dark'
}

Keybase proof

I hereby claim:

  • I am heyztb on github.
  • I am 0x7a7462 (https://keybase.io/0x7a7462) on keybase.
  • I have a public key ASAJNAcnkXzn01Co_icT4CiiZqRWrIH-9DBfimh2jIKgMQo

To claim this, I am signing this object:

@heyztb
heyztb / Fixup.sh
Created November 26, 2018 09:12
A simple script that allows you to fix previous git commits, with the help of fzf.
#!/usr/local/bin/zsh
readonly HASH=$(git log --oneline --decorate --graph | fzf | awk -F' ' '{ print $2 }')
git commit --fixup ${HASH}
GIT_SEQUENCE_EDITOR=true git rebase --autostash -i --autosquash ${HASH}\~1