Skip to content

Instantly share code, notes, and snippets.

View ThinaticSystem's full-sized avatar
🈂️
以外の感情がない

しなちくシステム ThinaticSystem

🈂️
以外の感情がない
View GitHub Profile
@mitchellh
mitchellh / merge_vs_rebase_vs_squash.md
Last active June 24, 2024 23:45
Merge vs. Rebase vs. Squash

I get asked pretty regularly what my opinion is on merge commits vs rebasing vs squashing. I've typed up this response so many times that I've decided to just put it in a gist so I can reference it whenever it comes up again.

I use merge, squash, rebase all situationally. I believe they all have their merits but their usage depends on the context. I think anyone who says any particular strategy is the right answer 100% of the time is wrong, but I think there is considerable acceptable leeway in when you use each. What follows is my personal and professional opinion:

@marihachi
marihachi / parsing-01.js
Last active March 21, 2023 15:07
パーサーの例
const T_EOF = 'EOF'; // end of input
const T_NUM = 'NUM'; // [0-9]+
const T_ADD = 'ADD'; // "+"
const T_SUB = 'SUB'; // "-"
const T_MUL = 'MUL'; // "*"
const T_DIV = 'DIV'; // "/"
/**
* @param {string} input
*/

Misskey v12 API エラーコード一覧

ID エラーコード(UUIDv4) 詳細
INTERNAL_ERROR 5d37dbcb-891e-41ca-a3d6-e690c97775ac 原因不明の内部エラー
ACCESS_DENIED 56f35758-7dd5-468b-8439-5d6fb8ec9b8e アクセス拒否(権限のないエンドポイントにアクセスすると発生)
NO_SUCH_ENDPOINT f8080b67-5f9c-4eb7-8c18-7f1eeae8f709 存在しないエンドポイント
CREDENTIAL_REQUIRED 1384574d-a912-4b81-8601-c7b1c4085df1 アクセストークンによる認証が必要
AUTHENTICATION_FAILED b0a7f5f8-dc2f-4171-b91f-de88ad238e14 認証が必要
I_AM_AI 60c46cd1-f23a-46b1-bebe-5d2b73951a84 Ai-Modeのため、そのエンドポイントに対してのアクセスは制限されている。
YOUR_ACCOUNT_SUSPENDED a8c724b3-6e9c-4b46-b1a8-bc3ed6258370 アカウントが凍結されている
@greymd
greymd / sudo新一.md
Last active June 28, 2024 00:26
sudo新一

 オレは高校生シェル芸人 sudo 新一。幼馴染で同級生の more 利蘭と遊園地に遊びに行って、黒ずくめの男の怪しげな rm -rf / 現場を目撃した。端末をみるのに夢中になっていた俺は、背後から近づいてきたもう1人の --no-preserve-root オプションに気づかなかった。 俺はその男に毒薬を飲まされ、目が覚めたら・・・ OS のプリインストールから除かれてしまっていた!

sudo がまだ $PATH に残っていると奴らにバレたら、また命を狙われ、他のコマンドにも危害が及ぶ』

 上田博士の助言で正体を隠すことにした俺は、 which に名前を聞かれて、とっさに『gnuplot』と名乗り、奴らの情報をつかむために、父親がシェル芸人をやっている蘭の $HOME に転がり込んだ。ところが、このおっちゃん・・・とんだヘボシェル芸人で、見かねた俺はおっちゃんになりかわり、持ち前の権限昇格能力で、次々と難タスクを解決してきた。おかげで、おっちゃんは今や世間に名を知られた名エンジニア、俺はといえばシェル芸 bot のおもちゃに逆戻り。クラスメートの convertojichattextimg にお絵かきコマンドと誤解され少年ワンライナーお絵かき団を結成させられる始末。

 ではここで、博士が作ってくれたメカを紹介しよう。最初は時計型麻酔 kill 。ふたについた照準器にあわせてエンターを押せば、麻酔シグナルが飛び出し、プロセスを瞬時に sleep させることができる。 次に、蝶ネクタイ型 banner 。裏についているダイヤルを調整すれば、ありとあらゆる大きさのメッセージを標準出力できる。必殺のアイテムなら fork 力増強シューズ。電気と磁力で足を刺激し、 :(){ :|:& };: でプロセステーブ

@sindresorhus
sindresorhus / esm-package.md
Last active June 29, 2024 11:18
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.
@voluntas
voluntas / webrtc_turn.rst
Last active May 27, 2024 05:35
WebRTC で利用されいる TURN プロトコルの解説

WebRTC で利用されいる TURN プロトコルの解説

日時:2021-01-29
作:@voluntas
バージョン:2021.2
url:https://voluntas.github.io/

@josepereza
josepereza / angular-infinite-scroll-cdk.md
Created October 2, 2020 13:42
Infinite Virtual Scroll with the Angular CDK

title: Infinite Virtual Scroll with the Angular CDK lastmod: 2018-10-21T18:16:07-07:00 publishdate: 2018-10-21T18:16:07-07:00 author: Jeff Delaney draft: false description: Build an Infinite Virtual Scroll with the Angular CDK tags: - angular

  • animation
@tsunyan
tsunyan / エクスプローラ周り重い人向け覚書.bat
Last active March 1, 2024 00:12
エクスプローラ周り重い人向け覚書
@rem 「※※※」は私のコメントです(元増田のコメントではありません)
@rem エクスプローラ周り重い人向け覚書
@rem https://anond.hatelabo.jp/20191116220232
@rem ■ システム設定
@rem Windows Defender自身を検索して無限ループに陥る問題を解消する
@rem - 設定→更新とセキュリティ→Windows セキュリティ→ウイルスの驚異の防止
@rem - ウイルスと驚異の防止の設定→設定の管理
@mamemomonga
mamemomonga / mstdn_custom_emoji_download.sh
Last active August 15, 2021 06:23
マストドンのカスタム絵文字をダウンロード
DOMAIN_NAME=mstdn.jp
curl -s https://$DOMAIN_NAME/api/v1/custom_emojis | jq -r '.[] | "curl -s -o " + .shortcode + ".png " + .url' | sh -x
@AgentOak
AgentOak / youtube_formats.md
Last active June 28, 2024 01:51
Youtube Format IDs

Last updated: April 2021

Also known as itag or format codes and way back they could be specified with the fmt parameter (e.g. &fmt=22). Depending on the age and/or popularity of the video, not all formats will be available.

DASH video

Resolution AV1 HFR High AV1 HFR AV1 VP9.2 HDR HFR VP9 HFR VP9 H.264 HFR H.264
MP4 MP4 MP4 WebM WebM WebM MP4 MP4