Skip to content

Instantly share code, notes, and snippets.

View hisasann's full-sized avatar
🔖
I aspire to become a bookseller.

Yoshiyuki Hisamatsu hisasann

🔖
I aspire to become a bookseller.
View GitHub Profile
import ts, { factory } from "typescript";
export function transformerFactory(context: ts.TransformationContext) {
function visitNode(node: ts.Node): ts.Node {
const newNode = ts.visitEachChild(node, visitNode, context);
if (
ts.isJsxOpeningElement(newNode) ||
ts.isJsxSelfClosingElement(newNode)
) {
return appendSourceMapAttribute(newNode.getSourceFile(), newNode);
@hisasann
hisasann / 聖杯ダンジョンがだるい人たちに攻略まとめ【Bloodborne】.md
Last active September 23, 2020 08:11
聖杯ダンジョンがだるい人たちに攻略まとめ【Bloodborne】

聖杯だるい人たちにまとめ

【共通聖杯ダンジョンの概要】

※足りない素材は探索や一部の敵から集めること

①血の乾いた獣から「トゥメルの聖杯」を入手

②トゥメルの聖杯から「中央トゥメルの聖杯」を入手(以下全て最上層のボスを倒すと次の聖杯を入手できる)

@hisasann
hisasann / title-url-bookmarklet.js
Created July 5, 2020 08:10
サイトのタイトルと URL をコピペする用のブックマークレット
javascript:var ret=window.prompt('',document.title + ' - ' + location.href);
@mala
mala / covid19-twitter-research_01.md
Last active December 31, 2021 05:58
生活と意見: ソーシャルディスタンスなどと称してユーザー名や文章にスペースを挟む行為についての苦情

生活と意見: ソーシャルディスタンスなどと称してユーザー名や文章にスペースを挟む行為についての苦情

更新履歴

2020-05-13 追記

@argyleink
argyleink / is.css
Last active December 9, 2022 20:15
light intro to the :is() selector syntax and value
/* before :is() */
button.focus,
button:focus {
...
}
/* after :is() */
button:is(.focus, :focus) {
...
}
@hassaku63
hassaku63 / keybindings.json
Created July 19, 2019 17:17
VSCode_move_focus_between_editor_and_terminal.json
// VSCodeで、エディタとターミナルを往復できるショートカットの定義
// Place your key bindings in this file to override the defaultsauto[]
[
{
"key": "ctrl+`",
"command": "workbench.action.focusActiveEditorGroup",
"when": "terminalFocus"
},
{
"key": "ctrl+`",
@hrdtbs
hrdtbs / react-hooks_exhaustive-deps.md
Last active October 10, 2023 09:36
メモ、なぜ`react-hooks/exhaustive-deps`はただcomponentDidMountのように使いたいだけなのに依存関係を入れてくるのか

なぜreact-hooks/exhaustive-depsはただcomponentDidMountのように使いたいだけなのに依存関係を入れてくるのか

export const Example = ({ loadOnlyOnce }) => {
    useEffect(() => {
      loadOnlyOnce()
    }, [loadOnlyOnce]) // ← WHY?
}

最新のステータス: 追記: 2019/7/10

転職しました。長らくのご愛顧誠にありがとうございました。


転職先をちょくちょく探しています。

興味ある方は twitter @mizchi へのリプライorDM、または mizchi2w@gmail.com まで。

@adamay000
adamay000 / app.js
Last active November 14, 2018 07:00
CanvasでHMRするときの基本
/**
* hmr前後で引き継ぎたいデータはまとめて外出する(Store)
* Storeを書き換えた場合はページをリロードするか、もしくは別途accept()の処理を書く
* Storeはconstructorの引数でどんどん子孫に渡していく。必要ならDIなりdecoratorなりでコードをキレイにする
*/
/** @type {Assets} 一度だけロードすればいいやつとかはまとめておくと良い */
let assets = null;
/** @type {Store} 復元したいデータは全部外にまとめておく or serialize的な保存・復元の方法が必要 */
let store = null;