Skip to content

Instantly share code, notes, and snippets.

View hayashikun's full-sized avatar

Ryosuke Hayashi hayashikun

  • Tokyo, Japan
View GitHub Profile
#!/bin/sh
current_dir=$(pwd)
script_dir=$(dirname "$0")
python $script_dir/pwg.py $@
@hayashikun
hayashikun / univ.ipynb
Created August 9, 2020 06:23
Universities in Tokyo
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
import argparse
import os
import re
import sys
import pyperclip
BraKetDefinition = r"""
[tex:
\def\bra#1{\mathinner{\left\langle{#1}\right|}}
@hayashikun
hayashikun / cm.ipynb
Last active May 17, 2018 03:27
Python Snippets
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@hayashikun
hayashikun / sava.py
Created February 4, 2018 14:26
Debug Server
from datetime import datetime
from flask import Flask, request
app = Flask(__name__)
@app.route('/', defaults={'path': ''}, methods=["GET", "POST"])
@app.route('/<path:path>', methods=["GET", "POST"])
def handle(path):
print("\n\n========== %s ==========" % datetime.now())
print(request.method, "/" + path)
@hayashikun
hayashikun / oauth.py
Created August 4, 2017 02:19
oauth.py
import requests
import time
import random
import hashlib
import hmac
import base64
OAUTH_TOKEN = "oauth_token"
OAUTH_TOKEN_SECRET = "oauth_token_secret"
OAUTH_VERIFIER = "oauth_verifier"
<style>
#heart {
width: 280px;
height: 280px;
background-image: url(http://cdn-ak.f.st-hatena.com/images/fotolife/h/hayashikunsan/20160321/20160321164813.png);
background-position: left;
}
</style>
<div id="heart"></div>
@hayashikun
hayashikun / gist:fbb5e7fb34b61369f6b6
Last active August 29, 2015 14:10
KOANアプリ開発之記

#はじめに KOANアプリ開発について書きます
Android版とiOS版(Swift)の開発です

自己紹介

理学部化学科B2です
PythonでWebとかAndroidアプリ開発してます
Objective-Cは未経験ですが、SwiftでiOSアプリ開発は最近始めました

KOANとは