Skip to content

Instantly share code, notes, and snippets.

@Rich-Harris
Rich-Harris / footgun.md
Last active March 9, 2025 06:13
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

#%RAML 0.8
title: 青空文庫Webサーバ
baseUri: http://www.aozora.gr.jp
version: v1.0
mediaType: text/html
/index_pages:
/index_top.html#public_list:
get:
description: 総合インデックス・公開中の作品

蟻本はとりあえず急いでフローを求めたい人向けの説明なので、
アルゴリズムイントロダクション(図書館にある)とかを読むのをお勧めします。
http://hos.ac/slides/20150319_flow.pdf
これが分かりやすいですかね。

用語として、 フロー、フローの残余グラフ、増加路、カット、とかは理解しておきましょう。

増加路が存在しない⇔最大フローとか、 最大フロー最小カット定理、とかは理解しておくとよい。

@ntddk
ntddk / fx0.md
Last active June 20, 2023 06:17
国内版Fx0にAndroidをインストールする

必要なもの

  • Windowsがインストールされたマシン(Windows 10で動作確認済)

手順

  • Android SDKをインストールする
  • KingoRootをインストールする
  • Fx0をUSBケーブルでマシンにつなぐ
  • KingoRootを起動し,「ROOT」をクリック
  • 待つ
  • adb shellからsuする
@cookie-s
cookie-s / sig-ctf.md
Last active June 5, 2016 12:28
sig-ctf-2

Networkの話

インターネットはどう動いているのか。小さいネットワークから順番に構成を考える。

2つのPCが1本のケーブルでつながっているネットワークは簡単に作れる。 電気が流れてきたらそれは自分宛てのデータだし、電気を流せばそれは相手へのデータ。 衝突回避は適当にやればよい。

MACアドレス

3つ、4つ、...とコンピュータをつなげようとすると、完全グラフをつくるわけにもいかなくなってくる。 そのとき、どのような形で効率的につなげるかは(ネットワークトポロジ)場合によるが、いずれにせよすべてのPCにユニークなIDをつけなければならない。(さもなくば電気信号として着信したデータが自分宛なのかわからない。)

Project Title Student Display Name Organization Name Mentors
Key mapping GUI Tomasito665 Mixxx DJ Software RJ Ryan, Ferran Pujol Camins
YAPDNS system64 The Honeynet Project Pietro Delsante, Fedele Mantuano, Andrea De Pasquale
FFv1 P frame support sdolganov FFmpeg Reynaldo Verdejo, michaelni
coala: Integrating coala with the Eclipse IDE Sheikh Araf Python Software Foundation Harsh Dattani, Lasse Schuirmann (sils1297), AbdealiJKothari
User interfaces for Tracker Dilushi Sustainable Computing Research Group ( SCoRe ) Dinith Minura, Namal Jayasuriya, Rumesh
File Support izgzhen Mozilla Manishearth
KolibriOS. Development of TLS/SSL library DenisKarpenko KolibriOS Jeffrey A., Pathoswithin
IPFS friendly & distributed version of Amber skbly7 Berkman Center for Internet and Society Genève
Cache layer for jpf-nhandler Jayton Java Pathfinder Team franck, Nastaran, Cyrille Artho
@skypenguins
skypenguins / minor_songs_of_idolmaster.md
Last active January 21, 2023 16:40
アイマスの非売品&入手困難・不可&マイナーな曲やCD一覧

【アイマスの非売品&入手困難・不可&マイナーな曲やCD一覧】

CD

765

  • 入手困難なCDとしてやたらと有名である。
@domitry
domitry / blog.md
Last active February 5, 2019 08:10

Google Summer of Code やろう

はじめに

この記事はOUCC Advent Calendar 2015のために書かれたものです.

先日OUCCのデキそうな後輩にGSoCとか興味ない?と聞いたところつらそうなイメージがあるからいいです(要約)と言われてしまい, 苦労話をしすぎたかなとちょっとショックだったのでそんなに辛くないよむしろ楽しいよ!というノリで書いていく.

他の参加者に話を聞くと僕が参加したプロジェクトはかなり特殊なやり方をしていたようなので, より一般的な話はしゅうう先生の以下の記事などを参考にすることを推奨する.

学生諸君、Google Summer of Code 2013に参加して50万円貰ってオープンソースソフトウェアのコミッターになろう - かーねる・う゛いえむにっき

@fand
fand / flux_history.md
Last active October 19, 2016 04:26
Flux戦争の歴史

Flux戦争の歴史メモ

Fluxxor by binarymuse

  • 2014/05/12 first commit
    • F8での "Flux" の登場からわずか4日
  • 素朴な実装
  • mixinベースの機能
    • 〜React v0.12という感じ

Reflux by spoike

@paulirish
paulirish / what-forces-layout.md
Last active May 16, 2025 17:21
What forces layout/reflow. The comprehensive list.

What forces layout / reflow

All of the below properties or methods, when requested/called in JavaScript, will trigger the browser to synchronously calculate the style and layout*. This is also called reflow or layout thrashing, and is common performance bottleneck.

Generally, all APIs that synchronously provide layout metrics will trigger forced reflow / layout. Read on for additional cases and details.

Element APIs

Getting box metrics
  • elem.offsetLeft, elem.offsetTop, elem.offsetWidth, elem.offsetHeight, elem.offsetParent