Skip to content

Instantly share code, notes, and snippets.

@peroon
peroon / gist:b29313e46492e804fb1121b640f68b18
Last active Aug 24, 2019
AtCoder EditorialsでCORSエラーが出たときの対処方法
View Privacy Policy for プロ生ちゃんのダンスをVRで体験.md

このアプリは 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 Dec 17, 2018
[atcoder]betaに関する作業中なので oj したときいつもと動きが違う 2018/12/17 19:42
View a.sh
# いつもの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 Nov 19, 2018
Privacy Policy for Face Parts Randomizer
View PP.md
  • 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
View unity_editor_label.cs
void OnDrawGizmos()
{
#if UNITY_EDITOR
if (isDebug)
{
UnityEditor.Handles.Label(transform.position, state.ToString());
}
#endif
}
View near_power_of_two.py
def near_power_of_two(v):
if v < 0:
return 0
if v == 0:
return 0
v -= 1
count = 0
while v != 0:
View power_of_two.cs
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 Aug 31, 2018
Privacy policy of peroon's Color Bath Camera
View privacy_polocy.md

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.

@peroon
peroon / gist:8f91cff6e8ec8d49a4212ac17514517f
Last active Jul 13, 2018
Image Classification Techniques (Writing...)
View gist:8f91cff6e8ec8d49a4212ac17514517f

TODO

  • Mean Teacher (semi supervised)
  • Mixup
    • merge images and labels, then learn
  • Pyramid Net
    • CNN
  • Random Erasing
    • That's it
  • Test time augmentation
@peroon
peroon / random_forest.py
Created May 17, 2018
Kaggle Titanic by Random Forest
View random_forest.py
# -*- coding: utf-8 -*-
import re
import numpy as np
import pandas as pd
from sklearn.ensemble import RandomForestClassifier
# column name
PassengerId = 'PassengerId'
Survived = 'Survived'