Skip to content

Instantly share code, notes, and snippets.

View GeordieP's full-sized avatar
😎

Geordie Powers GeordieP

😎
View GitHub Profile
@GeordieP
GeordieP / setup-nvim-leptos-lsp.md
Last active January 12, 2024 06:24
in the leptos-start example project, neovim will mark the SSR main function as dead code.

Problem:

in the leptos-start example project, neovim will mark the SSR main function as dead code:

image

the rust-analyzer LSP client inside nvim thinks the SSR flag is disabled by default.

Fix:

@GeordieP
GeordieP / fish_prompt.fish
Last active September 11, 2022 18:09
GP fish_prompt (goes in ~/.config/fish/functions)
function fish_prompt --description 'Write out the prompt'
set -l last_status $status
set -l normal (set_color normal)
set -l status_color (set_color brgreen)
set -l cwd_color (set_color brblue)
set -l vcs_color (set_color brblue)
set -l separator_color (set_color brblack)
set -l prompt_status ""
# Since we display the prompt on a new line allow the directory names to be longer.
@GeordieP
GeordieP / idea-theme-GP_Gruvbox_Light_Medium.icls
Created June 27, 2022 15:48
GP version of Gruvbox Light Medium for JetBrains IDEs
<scheme name="Gruvbox Light Medium gp" version="142" parent_scheme="Default">
<metaInfo>
<property name="created">2022-06-27T11:47:27</property>
<property name="ide">WebStorm</property>
<property name="ideVersion">2021.3.3.0.0</property>
<property name="modified">2022-06-27T11:47:41</property>
<property name="originalScheme">Gruvbox Light Medium gp</property>
</metaInfo>
<colors>
<option name="ADDED_LINES_COLOR" value="b8bb26" />
@GeordieP
GeordieP / idea-theme-GP_Gruvbox_Dark_Medium.icls
Created June 27, 2022 15:41
GP version of Gruvbox Dark Medium for JetBrains IDEs
<scheme name="Gruvbox Dark Medium gp" version="142" parent_scheme="Darcula">
<metaInfo>
<property name="created">2022-06-27T11:38:28</property>
<property name="ide">WebStorm</property>
<property name="ideVersion">2021.3.3.0.0</property>
<property name="modified">2022-06-27T11:38:35</property>
<property name="originalScheme">Gruvbox Dark Medium gp</property>
</metaInfo>
<colors>
<option name="ADDED_LINES_COLOR" value="79740e" />
@GeordieP
GeordieP / idea-theme-GP_Sepia.icls
Created June 27, 2022 15:37
GP version of Sepia color scheme for JetBrains IDEs
<scheme name="GP Sepia" version="142" parent_scheme="Default">
<metaInfo>
<property name="created">2022-06-27T11:35:53</property>
<property name="ide">WebStorm</property>
<property name="ideVersion">2021.3.3.0.0</property>
<property name="modified">2022-06-27T11:36:00</property>
<property name="originalScheme">GP Sepia</property>
</metaInfo>
<colors>
<option name="ADDED_LINES_COLOR" value="b8bb26" />
type Maybe<T> = T | null;
type BlogPost = {
title: string;
author: string;
}
type BlogPostResponse = Maybe<{
title?: Maybe<string>,
author?: Maybe<string>,

git terminal

cli for opening a git client (or other dev tool) in a certain directory

use

  • enter g command at shell

  • see a list of project names and paths

    $> g

https://www.youtube.com/watch?v=tq_r4-jO8W8,title=Bob Marley - Could You Be Loved (TJR vs Olav Basoski),genre=House,source=verisimilitdude
https://www.youtube.com/watch?v=GIXV7MmjjEU,title=Halogenix - Independent,genre=DnB,source=UKF Drum & Bass
https://www.youtube.com/watch?v=_53ER9vANvs,title=Think Tonk - What A Ting (L-Side Remix),genre=DnB,source=Skankandbass
https://www.youtube.com/watch?v=eQv0p8fu254,title=Data 3 - Molecular,genre=DnB,source=Drum&BassArena
https://www.youtube.com/watch?v=lGGi42AFxDg,title=MVRK & Screamarts - Infinite Funk (Disprove Remix),genre=Hard DnB,source=Skankandbass
https://www.youtube.com/watch?v=o3sL6rXQTAQ,title=Jack Mirror, Champion - Oculus,genre=Uplifting DnB,source=Jack Mirror - Topic
https://www.youtube.com/watch?v=0FY4o9QFLGQ,title=Camo & Krooked - Anubis (Inside Info Remix),genre=DnB,source=CeleritySounds
https://www.youtube.com/watch?v=1Xgrt4-pWg4,title=Camo & Krooked - Cryptkeeper (Mind Vortex Remix),genre=DnB-Halftime,source=Zion Music
https://www.youtube.com/watch?v
@GeordieP
GeordieP / .ideavimrc
Last active March 17, 2021 23:48
~/.ideavimrc - Config for IdeaVim plugin
"==========================
" searching
"==========================
set incsearch
set ignorecase
set smartcase
set commentary
set easymotion
package main
import (
"fmt"
"io"
"net/http"
"os"
"strings"
"path/filepath"
"archive/zip"