- An extension to invoke Sublime Merge commands in VS Code
- Goparsify - A parser cominator library that lets you parse text and give meaning to the items in it
- Lastly - Get song link for various music streaming platforms using Last.fm
- Live server on Python
- My dotfiles
This file contains hidden or 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 React, { useState, useMemo } from 'react' | |
import css from './tabs.module.scss' | |
/* | |
usage | |
<Tabs> | |
<Tab label="one"> | |
<OneContent /> |
This file contains hidden or 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
function pewpew(text, query) { | |
const textLen = text.length | |
const queryLen = query.length | |
if (queryLen > textLen) return false; | |
if(queryLen === textLen) return query === text | |
let textIdx = 0; | |
let queryIdx = 0; |
This file contains hidden or 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
function jqdoprocessoneach | |
# https://stackoverflow.com/a/965106/7683365 | |
set -l old_file_path $argv[1] | |
set -l new_filename $argv[2]"."(echo $argv[1] | sed 's/.*\.//') | |
echo $old_file_path | |
# echo $new_filename | |
# sleep 1 | |
nvr --remote-send '<cmd>e '$old_file_path'<cr>' | |
sleep 1 |
This file contains hidden or 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
interface TextToken { | |
type: 'text'; | |
text: string; | |
} | |
interface LinkToken { | |
type: 'link'; | |
name: string; | |
link: string; | |
} |
This file contains hidden or 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
function butt | |
if [ "$argv[1]" = "" ] | |
echo "Please provide a dir name" | |
return 1 | |
end | |
set -l up_times 0 | |
set -l found 0 | |
set -l path (string sub --start 2 $PWD) |
This file contains hidden or 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
[ | |
{ | |
"caption": "Create an Empty Commit...", | |
"command": "git", | |
"args": { "argv": ["commit", "--allow-empty", "-m", "$text"] } | |
}, | |
{ | |
"caption": "Delete Remote Tag (origin)...", | |
"command": "git", | |
"args": { "argv": ["push", "--delete", "origin", "$text"] } |
Add no-unexpected-multiline rule in ESLint.
Further readings:
This file contains hidden or 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
export function isNumber(input: unknown): input is number { | |
return Number.isFinite(input); | |
} | |
export function isString(input: unknown): input is string { | |
return typeof input === 'string'; | |
} | |
export function isObject(input: unknown): input is object { | |
return input !== null && typeof input === 'object'; |