Skip to content

Instantly share code, notes, and snippets.

View nexxeln's full-sized avatar
🔍
duck duck going stuff

Shoubhit Dash nexxeln

🔍
duck duck going stuff
View GitHub Profile
@steven-tey
steven-tey / title-from-url.ts
Last active July 29, 2024 20:57
Get Title from URL
// Note: this gist is a part of this OSS project that I'm currently working on: https://github.com/steven-tey/dub
export default async function getTitleFromUrl (url: string) {
const controller = new AbortController();
const timeoutId = setTimeout(() => controller.abort(), 2000); // timeout if it takes longer than 2 seconds
const title = await fetch(url, { signal: controller.signal })
.then((res) => {
clearTimeout(timeoutId);
return res.text();
})

Poimandres Warp Theme

Made a Warp theme based on the Poimandres VSCode Theme.

Install

  1. Copy the base16_pmndrs.yaml file into ~/.warp/themes
wget https://gist.githubusercontent.com/juliusmarminge/ea45f0f2c627ee8d1778404f4642986d/raw/5ea3cd5bf7f18c6a3f08a29edabfca5b59bc2778/base16_pmndrs.yaml -o ~/.warp/themes
@fischgeek
fischgeek / resume_template.json
Last active April 26, 2022 00:19
Resume Template as JSON
{
"personal_info": {
"name": "first last",
"age": 0,
"phone": "000-000-0000",
"email": "[email protected]",
"address": "address",
"website": "https://dev.to"
},
"cv": {
[
{
"key": "ctrl+tab",
"command": "workbench.action.nextEditor"
},
{
"key": "ctrl+shift+tab",
"command": "workbench.action.previousEditor"
},
{
@InterStella0
InterStella0 / HelpCommand_walkthrough_guide.md
Last active September 6, 2024 19:17
Walkthrough guide on subclassing HelpCommand
@itsMapleLeaf
itsMapleLeaf / folder-structure.md
Last active April 26, 2024 02:55
Folder structure

✨ My go-to folder structure ✨

In a nutshell, flat feature folders:

src/
  app/
    home.tsx
    app-header.tsx
 app-sidebar.tsx
@CMCDragonkai
CMCDragonkai / higher_kinded_types_in_rust_and_haskell.md
Last active September 8, 2024 17:06
Rust/Haskell: Higher-Kinded Types (HKT)

Rust/Haskell: Higher-Kinded Types (HKT)

A higher kinded type is a concept that reifies a type constructor as an actual type.

A type constructor can be thought of in these analogies:

  • like a function in the type universe
  • as a type with a "hole" in it

Markdown and reStructuredText

GitHub supports several lightweight markup languages for documentation; the most popular ones (generally, not just at GitHub) are Markdown and reStructuredText. Markdown is sometimes considered easier to use, and is often preferred when the purpose is simply to generate HTML. On the other hand, reStructuredText is more extensible and powerful, with native support (not just embedded HTML) for tables, as well as things like automatic generation of tables of contents.