Skip to content

Instantly share code, notes, and snippets.

View takapiro99's full-sized avatar
Happy

Takahiro Nishino takapiro99

Happy
View GitHub Profile
@mala
mala / meety_vuln.md
Last active September 14, 2024 09:13
Meety脆弱性 2022-11

Meety脆弱性 2022-11

文責 mala

経緯:

  • Meety退会しようと思ったがアカウントがなかったので、退会するためにアカウントを作ることにした。

免責:

  • 気になった範囲ですぐに見つかったもののうち、悪用可能なものを記載しています。
  • 好ましくないが仕様だろうというものは書いていません。
@sindresorhus
sindresorhus / esm-package.md
Last active May 22, 2025 09:41
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.
@takapiro99
takapiro99 / 作ったものをまとめるページ.md
Last active December 13, 2024 17:02
制作物やイベント参加記録
@sounisi5011
sounisi5011 / Num2DecStr.js
Last active March 25, 2025 11:56
指数表記にしかならないようなJavaScriptの数値を整数表記や小数表記の文字列にする関数
/**
* 数値を整数・少数表記に変換する。
* 内部的には、指数表記の文字列をパースし、小数表記に変換している。
*
* @param {number|string} number 変換したい数値、または数値形式の文字列。
* 数値型であればNaNやInfinityも指定できるが、そのまま文字列化して返される。
* @return {string} 小数表記の数値文字列
* @throws 適切な形式の数値、または文字列が与えられなかった場合に発生する。
*
* Note: この関数は、JavaScriptで正確な数値演算を行うために使う**べきではない**
@laobubu
laobubu / ABOUT.md
Last active March 12, 2025 21:04
A very simple HTTP server in C, for Unix, using fork()

Pico HTTP Server in C

This is a very simple HTTP server for Unix, using fork(). It's very easy to use

How to use

  1. include header httpd.h
  2. write your route method, handling requests.
  3. call serve_forever("12913") to start serving on port 12913
@asflash8
asflash8 / legend-source.md
Last active October 18, 2023 06:35
ISUCON秘伝のタレ

bash

# change login shell
chsh
# => Login Shell [/bin/sh]: /bin/bash

# bash completion
sudo apt-get install bash-completion