This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 'Item*' it the pattern to look for | |
# sed "s/I/i/g" is the replacement pattern | |
for f in Item*; mv $f (echo {$f} | sed "s/I/i/g"); end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Show hidden characters
{ | |
"disable_tab_abbreviations_for_scopes": "string" | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set nocompatible | |
set modelines=0 | |
set wildcharm=<C-z> | |
filetype off | |
" save swap files globally | |
set directory^=$HOME/.vim/tmp// | |
" Tabs |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if status is-interactive | |
# Commands to run in interactive sessions can go here | |
end | |
set -gx PATH /usr/local/bin $PATH | |
set -gx PATH /opt/homebrew/bin $PATH | |
set -gx PATH /opt/homebrew/opt/python@3.9/libexec/bin $PATH | |
abbr gf "git fetch" | |
abbr gb "git branch" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.tab-bar { | |
height: 34px; | |
padding: 0; | |
.tab { | |
-webkit-transform: none; | |
top: 2px; | |
line-height: 25px; | |
&.active { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"$schema": "https://aka.ms/terminal-profiles-schema", | |
"alwaysShowTabs": false, | |
"confirmCloseAllTabs": false, | |
"showTabsInTitlebar": false, | |
"theme": "light", | |
"defaultProfile": "{2c4de342-38b7-51cf-b940-2309a097f518}", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// NEXT (10.0.0) | |
// --- | |
time npx create-next-app nextjs-blog --use-npm --example "https://github.com/vercel/next-learn-starter/tree/master/learn-starter" | |
---------------------------------------------- | |
112.68 real 15.44 user 6.49 sys | |
time npm run build | |
---------------------------------------------- | |
13.84 real 15.19 user 1.07 sys |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import equal from '@app-elements/equal' | |
import { useEffect, useReducer, useRef } from 'preact/compat' | |
export function useMappedState (store, mapper) { | |
const [, forceRender] = useReducer(s => s + 1, 0) | |
const initialState = mapper(store.getState()) | |
const mappedStateRef = useRef(initialState) | |
useEffect(() => { | |
function checkForUpdates () { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Media queries used on blog.staydecent.ca by Adrian Unger | |
check my full source at: | |
http://blog.staydecent.ca/static/css/style-0.1.6.css */ | |
@media only screen and (min-width:768px) and (max-width:1269px) { | |
/* In my particular design, I used a fluid grid limited to a | |
max-width of 1140px, while (if there is enough room) | |
pushing the menu outside of layout, requiring a total | |
limit of at least 1270px. | |
So, this first query applies to any screen-width less |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { | |
createContext, | |
useContext, | |
useEffect, | |
useReducer, | |
useRef | |
} from "preact/compat"; | |
import { getRouteComponent, getAllRoutes, getHref } from "./util"; | |
const EMPTY = Symbol(); |
NewerOlder