Skip to content

Instantly share code, notes, and snippets.

@sindresorhus
sindresorhus / esm-package.md
Last active October 13, 2025 05:46
Pure ESM package

Pure ESM package

The package that linked you here is now pure ESM. It cannot be require()'d from CommonJS.

This means you have the following choices:

  1. Use ESM yourself. (preferred)
    Use import foo from 'foo' instead of const foo = require('foo') to import the package. You also need to put "type": "module" in your package.json and more. Follow the below guide.
  2. If the package is used in an async context, you could use await import(…) from CommonJS instead of require(…).
  3. Stay on the existing version of the package until you can move to ESM.
@hlb8122
hlb8122 / voyage.rs
Last active November 22, 2020 07:13
Compile Time Space Voyage
/// HMS-Oxide floats motionless, shimmering in a sunbeam, above...
pub struct Spacecraft;
/// ...the cool blue ocean planet.
pub struct OceanPlanet;
/// Every hospitable planet has to have a layer of Atmosphere...
pub struct Atmosphere<Altitude>(Altitude);
impl OceanPlanet {
@haxscramper
haxscramper / languages-and-vms.md
Last active July 2, 2024 03:38
languages-and-vms
@tomhicks
tomhicks / plink-plonk.js
Last active September 13, 2025 12:13
Listen to your web pages
- description: /*** でgitignoreに従わずにファイル列挙
regexp-left: (?P<body>.*?)(?P<path>~{0,1}([\S&&[^@]]*/)*)\*\*\*$
cmd-groups:
- stmt: fd --full-path -I --color always '' <path>
after: awk '{print $0}'
buffer-left: <body>
buffer-right: '[]'
- description: /** でgitignoreに従ってファイル列挙
regexp-left: (?P<body>.*?)(?P<path>~{0,1}([\S&&[^@]]*/)*)\*(?P<query>\S*)\*$
@XVilka
XVilka / FontShapingSupport.md
Created October 26, 2019 03:09
Font shaping e.g. ligatures support in terminal emulators and applications

This gist will show the support of font shaping support in the terminal emulators and console programs.

Supporting font shaping

@xream
xream / gist:88559091be365b72c94d606c2b310aed
Created September 12, 2019 16:33
UserScript: VSCode Insiders Install Btn
// ==UserScript==
// @name VSCode Insiders Install Btn
// @namespace http://tampermonkey.net/
// @version 0.1
// @description try to take over the world!
// @author You
// @match https://marketplace.visualstudio.com/items*
// @grant none
// ==/UserScript==
@greymd
greymd / yamaya_fib.md
Last active November 4, 2024 07:48
yamayaさんの難読化シェル芸(フィボナッチ数列) 解説

yamayaさんの難読化シェル芸(フィボナッチ数列) 解説

経緯

(1) ある日、yamaya さんという怖い方がこのツイートを投稿する。

yamaya_src

@laggardkernel
laggardkernel / startup-time-of-zsh.md
Last active September 8, 2025 11:02
Comparison of ZSH frameworks and plugin managers

Comparison of ZSH frameworks and plugin managers

Changelog

  • update 1: add a FAQ section
  • update 2: benchmark chart and feature comparison table
  • update 3:
    • improve the table with missing features for antigen
    • new zplg times result

TLDR

@sho-t
sho-t / zsh_variable.md
Last active February 25, 2025 02:22
Zsh 変数メモ

variable

変数に関するメモ。 💤がついてるのはzsh 固有のもの。

📮 シェル変数と環境変数

  • シェル変数 → 子プロセスに継承されない
  • 環境変数 → 子プロセスに継承される

環境変数登録