Skip to content

Instantly share code, notes, and snippets.

View dusty-phillips's full-sized avatar

Dusty Phillips dusty-phillips

View GitHub Profile
export function createDexieStore<T extends StoreNode>(
querier: () => T | undefined | Promise<T | undefined>,
): WithLoadingState<T> {
const [store, setStore] = createStore<WithLoadingState<T>>({
__loading: true,
});
const observable = liveQuery(querier);
const signal = from<T | undefined>(observable);
createEffect(() => {
import std::fmt::(Format, Formatter, fmt)
import std::stdio::STDOUT
class Node[T: Format] {
let @next: Option[Node[T]]
let @prev: Option[mut Node[T]]
let @data: T
fn pub static new(value: T) -> Self {
function virtualenv_info {
[ $VIRTUAL_ENV ] && echo '('`basename $VIRTUAL_ENV`') '
}
function prompt_char {
git branch >/dev/null 2>/dev/null && echo '⠠⠵' && return
echo '○'
}
function box_name {
@dusty-phillips
dusty-phillips / init.vim
Created February 16, 2021 14:04
2021 Neovim Config
set termguicolors
set background=dark
let g:bubbly_palette = #{
\ background: "#34343c",
\ foreground: "#c5cdd9",
\ black: "#3e4249",
\ red: "#ec7279",
\ green: "#a0c980",
set termguicolors
set background=dark
let g:bubbly_palette = #{
\ background: "#34343c",
\ foreground: "#c5cdd9",
\ black: "#3e4249",
\ red: "#ec7279",
\ green: "#a0c980",
### Keybase proof
I hereby claim:
* I am dusty-phillips on github.
* I am dustyphillips (https://keybase.io/dustyphillips) on keybase.
* I have a public key ASDFxICzYo10kqSU9_HS1vn6UCE4PG91aL6HjfFI4IZC-Qo
To claim this, I am signing this object:
@dusty-phillips
dusty-phillips / AdvancedWindowSnap.ahk
Last active March 13, 2024 14:12 — forked from Cerothen/AdvancedWindowSnap.ahk
Advanced Window Snap is a script for AutoHotKey that expands upon Windows built-in window-snapping hotkeys.
/**
* Advanced Window Snap (Extended
* Snaps the Active Window to one of nine different window positions.
*
* @Editing author Jarrett Urech
* @Original author Andrew Moore <[email protected]>
* @version 2.1
*
**/

Keybase proof

I hereby claim:

  • I am dusty-phillips on github.
  • I am dusty_phillips (https://keybase.io/dusty_phillips) on keybase.
  • I have a public key ASCYE_7jCH0oDrVi0LA7t0KpnyJDIQ9JptNN5OfcN5PvTgo

To claim this, I am signing this object: