Skip to content

Instantly share code, notes, and snippets.

@peroon
peroon / 謝罪文.md
Last active June 8, 2023 18:21
Twitterでは謝罪画像がUPされることがある。謝罪文は画像ではなくgit管理して履歴まで見せてはどうか説

謝罪文

この度、わたくし○○が2022/10/20にて△△した件で世間を騒がせてしまい、hogehoge.

今後はこのようなことがないよう、会社共にチェック体制を強化して参ります。


2022/10/20 名前太郎

The Cauchy-Schwarz Inequality $$\left( \sum_{k=1}^n a_k b_k \right)^2 \leq \left( \sum_{k=1}^n a_k^2 \right) \left( \sum_{k=1}^n b_k^2 \right)$$

You need to add .md filename.

This sentence uses $ delimiters to show math inline: $\sqrt{3x-1}+(1+x)^2$

@peroon
peroon / gist:b29313e46492e804fb1121b640f68b18
Last active August 24, 2019 19:30
AtCoder EditorialsでCORSエラーが出たときの対処方法

(privacy policyをどこかに書く必要があるようなので)

このアプリは Android 広告 ID の収集及び転送を行っているとGoogleから指摘されました。しかし実際は広告IDの送信も使用も行っておりません。通信を切っても正常に動くことをご確認ください。

Google pointed out that this app is collecting and transferring Android ad IDs. However, we do not send or use ad ID in practice. Please confirm that it works properly even if the communication is disconnected.

@peroon
peroon / a.sh
Created December 17, 2018 10:43
[atcoder]betaに関する作業中なので oj したときいつもと動きが違う 2018/12/17 19:42
# いつものURL
```
ktmac:hoge kt$ oj d https://atcoder.jp/contests/abc102/tasks/abc102_a
[-] unknown submission: https://atcoder.jp/contests/abc102/tasks/abc102_a
[-] unknown problem: https://atcoder.jp/contests/abc102/tasks/abc102_a
テストケース落ちてこない
```
# 動くURL
@peroon
peroon / PP.md
Created November 19, 2018 20:51
Privacy Policy for Face Parts Randomizer
  • This app requires CAMERA permission, but in fact, this app doesn't use camera.
  • I made this app using Unity, and Untiy automatically adds this permission.
android.permission.CAMERA
void OnDrawGizmos()
{
#if UNITY_EDITOR
if (isDebug)
{
UnityEditor.Handles.Label(transform.position, state.ToString());
}
#endif
}
def near_power_of_two(v):
if v < 0:
return 0
if v == 0:
return 0
v -= 1
count = 0
while v != 0:
static int Pow2(uint n)
{
--n;
int p = 0;
for (; n != 0; n >>= 1) p = (p << 1) + 1;
return p + 1;
}
// Pow(31) -> 32
@peroon
peroon / privacy_polocy.md
Last active August 31, 2018 03:57
Privacy policy of peroon's Color Bath Camera

Color Bath Camera Privacy Policy of Color Bath Camera

Privacy Policy

Effective date: August 31, 2018

Color Bath Camera ("us", "we", or "our") operates the website and the Color Bath Camera mobile application (the "Service").

This page informs you of our policies regarding the collection, use, and disclosure of personal data when you use our Service and the choices you have associated with that data. This Privacy Policy for Color Bath Camera is powered by FreePrivacyPolicy.com.