Skip to content

Instantly share code, notes, and snippets.

View tatsuyasusukida's full-sized avatar

Tatsuya Sususkida tatsuyasusukida

View GitHub Profile
@voluntas
voluntas / shiguredo_model.rst
Last active December 26, 2023 21:46
時雨堂を支えるビジネスモデル

時雨堂を支えるビジネスモデル

更新

2023-12-08

作者

@voluntas

バージョン

2023.2

URL

https://voluntas.github.io/

タイポなどは Twitter の @voluntas までお願いします。

@LeeDDHH
LeeDDHH / youtube-markdown.md
Created November 29, 2020 04:51
Youtube markdown 埋め込み
import { useCallback, useState } from "react";
import debounce from "lodash/debounce";
export const useDebouncedValue = (initialValue, wait) => {
const [debouncedValue, setDebouncedValue] = useState(initialValue);
const debouncedFunction = useCallback(debounce(setDebouncedValue, wait), []);
return [debouncedValue, debouncedFunction];
};
@ww9
ww9 / gist_markdown_examples.md
Last active May 3, 2024 10:34
Gist markdown examples

Gist markdown examples

A collection of Markdown code and tricks that were tested to work in Gist.

This and all public gists in https://gist.github.com/ww9 are Public Domain. Do whatever you want with it including , no need to credit me.

Todo

  • Reformat this whole document and assimilate these:
@mapk0y
mapk0y / docker-run-init.md
Last active July 11, 2022 22:58
docker run の --init をつけた場合(Docker 1.13 以降)

docker 1.13 以降使えるようになった docker run --init についての調査

この機能は docker/docker#26061 で実装された。
--init をつけた場合に実行されるバイナリ(/dev/init)の実態は docker/docker#28037 により krallin/tini に変更されている。

調査方法

python で time.sleep(100)するだけのコンテナを docker run で実行し、そのコンテナに対して docker stop した場合に --init 有り無しで違いがあるかを比較してみる。

--init をつけない場合

@fliedonion
fliedonion / !GIST file list order - summary.md
Last active April 26, 2024 08:11
Understand GIST file list order.
Summary How to control (or Understand) your GIST page's files list order.
Notice not official documentation.
@uupaa
uupaa / get.path.for.node.js.md
Last active December 5, 2023 11:18
node.js で絶対パスや相対パスを取得する方法 npm __dirname

node.js でパスを取得する方法についてのメモ

$ node ~/hoge/Foo.js/a.js

を実行したときに、

  • process.argv[1] から、node コマンドに指定された a.js のパス( ~/hoge/Foo.js/a.js )を取得できます
@t-nissie
t-nissie / HowToGist.md
Last active December 9, 2023 09:44
Gistの使い方のメモ

Gistの使い方のメモ

Gistを使い始めて気がついた点をメモした。 Gistはこのようなメモや短いコードをバージョン管理しながら公開するのに便利。

特にこのメモでは、画像を同一ディレクトリに置いて、 それGFMファイル内に挿入する方法を解説。

このメモにはgitコマンドの使い方の解説はない。 このメモは随時更新される予定。