Skip to content

Instantly share code, notes, and snippets.

View nakasyou's full-sized avatar

Shotaro Nakamura nakasyou

View GitHub Profile
@edokeh
edokeh / index.js
Last active July 3, 2025 23:09
佛祖保佑,永无 BUG
//
// _oo0oo_
// o8888888o
// 88" . "88
// (| -_- |)
// 0\ = /0
// ___/`---'\___
// .' \\| |// '.
// / \\||| : |||// \
// / _||||| -:- |||||- \
@voluntas
voluntas / webrtc.rst
Last active July 14, 2025 04:05
WebRTC コトハジメ
@stereokai
stereokai / gist:36dc0095b9d24ce93b045e2ddc60d7a0
Last active July 12, 2025 23:08
CSS rounded corners with gradient border
.rounded-corners-gradient-borders {
width: 300px;
height: 80px;
border: double 4px transparent;
border-radius: 80px;
background-image: linear-gradient(white, white), radial-gradient(circle at top left, #f00,#3020ff);
background-origin: border-box;
background-clip: padding-box, border-box;
}
@Rich-Harris
Rich-Harris / footgun.md
Last active July 11, 2025 10:35
Top-level `await` is a footgun

Edit — February 2019

This gist had a far larger impact than I imagined it would, and apparently people are still finding it, so a quick update:

  • TC39 is currently moving forward with a slightly different version of TLA, referred to as 'variant B', in which a module with TLA doesn't block sibling execution. This vastly reduces the danger of parallelizable work happening in serial and thereby delaying startup, which was the concern that motivated me to write this gist
  • In the wild, we're seeing (async main(){...}()) as a substitute for TLA. This completely eliminates the blocking problem (yay!) but it's less powerful, and harder to statically analyse (boo). In other words the lack of TLA is causing real problems
  • Therefore, a version of TLA that solves the original issue is a valuable addition to the language, and I'm in full support of the current proposal, which you can read here.

I'll leave the rest of this document unedited, for archaeological

@sifue
sifue / 無料で読めるポール・グレアムの「ハッカーと画家」+αの日本語訳のみのまとめ.md
Last active July 21, 2025 15:32
無料で読めるポール・グレアムの「ハッカーと画家」+αの日本語訳のみのまとめ
@ruario
ruario / 1-README.md
Last active June 17, 2025 19:53
A script that fetches a ChromeOS image for ARM32 and extracts the Widevine binary, saving it in a compressed archive for use with Vivaldi

The included script 'widevine-flash_armhf.sh' fetches a ChromeOS image for ARM and extracts the Widevine binary, saving it in a compressed archive. Since it downloads a fairly large file (2Gb+ on disk after download) it is recommended that you run the script on a machine that has plenty of disk space.

To install the resultant archive, issue the following on your ARM machine–after copying over the archive if needed:

sudo tar Cfx / widevine-flash-20200124_armhf.tgz

(Where 'widevine-flash-20200124_armhf.tgz' is updated to reflect the actual name of the created archive)

@bmaupin
bmaupin / free-database-hosting.md
Last active July 21, 2025 08:01
Free database hosting
@minop1205
minop1205 / conventional-commits.md
Last active July 7, 2025 09:54
コミットメッセージ規約
@yuya-takeyama
yuya-takeyama / README.md
Last active January 5, 2025 16:25
Mono Repo のための GitHub Actions の Tips 集

paths フィルターを活用する

https://docs.github.com/en/actions/reference/workflow-syntax-for-github-actions#onpushpull_requestpaths

Mono Repo では package や service をディレクトリとして表現するので、特定のディレクトリが変更された時だけ実行したい Workflow があると思います。 典型的にはテストやビルドでしょう。

foo ディレクトリ内のファイルに変更があったときのみトリガーするには以下のうに指定します。

Babel Plugin Handbook

このドキュメントではBabelプラグインを作る方法を解説します。.

cc-by-4.0

このハンドブックは他の言語でも閲覧可能です。READMEをご覧ください。

目次