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

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.

@CMCDragonkai
CMCDragonkai / higher_kinded_types_in_rust_and_haskell.md
Last active July 10, 2024 12:38
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
@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
@InterStella0
InterStella0 / HelpCommand_walkthrough_guide.md
Last active June 4, 2024 18:06
Walkthrough guide on subclassing HelpCommand
[
{
"key": "ctrl+tab",
"command": "workbench.action.nextEditor"
},
{
"key": "ctrl+shift+tab",
"command": "workbench.action.previousEditor"
},
{
@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@domain.com",
"address": "address",
"website": "https://dev.to"
},
"cv": {

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
@steven-tey
steven-tey / title-from-url.ts
Last active July 9, 2023 19:48
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();
})