Skip to content

Instantly share code, notes, and snippets.

View arvigeus's full-sized avatar
🎯
You can't change the world but you can make a commit.

Nikolay Stoynov arvigeus

🎯
You can't change the world but you can make a commit.
View GitHub Profile
@arvigeus
arvigeus / Comments.js
Last active August 26, 2022 08:37
VS Code FileTreeView
// https://stackblitz.com/edit/shopify-hydrogen-z8a9cx?file=package.json&title=Hydrogen
@arvigeus
arvigeus / sitemap.ts
Created September 7, 2020 08:28
Next.js sitemap
const { promises: fs } = require("fs");
const path = require("path");
interface FileInfo {
page: string;
lastModified: Date;
}
const pagesDir = `${process.cwd()}/src/pages/`;
@arvigeus
arvigeus / async-generator-iterator.js
Created May 2, 2019 14:24
Iterate over complex structures
const master = [
100,
[
200,
210,
220,
230,
[240, 241, 242, 243, 244, 245, [2450, 2451, 2452, 2454, 2454, 2455]],
250
],