Skip to content

Instantly share code, notes, and snippets.

View sawadyrr5's full-sized avatar

さわでぃ sawadyrr5

View GitHub Profile
@toriwasa
toriwasa / AutoHotKey.ahk
Last active April 29, 2024 23:23
手の移動距離を減らすためのAutoHotKeyスクリプト
;------------------------------------------------------------------------------
; 前提:
; 日本語, 英語キーボードどちらでも使用可能
; 英語キーボードの場合、変換・無変換キーが存在するUS配列として扱えるAX配列を利用する
; 参考:
; https://www.atmarkit.co.jp/ait/articles/0001/26/news001.html
; Change Key使用:
; 日本語キーボードの場合
; Caps Lock -> Ctrl
; 英語キーボードの場合
@nakagami
nakagami / PyConJP2016.rst
Last active December 13, 2023 04:23
How to write python database driver (PyCon JP 2016 talk)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
How to write python database driver
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- https://pycon.jp/2016/ja/schedule/presentation/13/
- https://www.youtube.com/watch?v=ax2WmQ_MSXs
- https://togetter.com/li/1028521
========================================
Preface
@StuartGordonReid
StuartGordonReid / VolatilityAdjustedReturns.py
Created June 12, 2015 13:38
Risk adjusted returns based on volatility
"""
Note that this Gist uses functions made available in another Gist -
https://gist.github.com/StuartGordonReid/67a1ec4fbc8a84c0e856
"""
def treynor_ratio(er, returns, market, rf):
return (er - rf) / beta(returns, market)
@matsubo
matsubo / credit_card_bin_codes.md
Last active June 11, 2024 05:23
Credit Card Bin Codes

概要

クレジットカード番号には法則があり、先頭6桁でカードの種類を識別、分類することができる。

詳細はISO/IEC 7812で規定されている。

ISO/IEC 7812 - Wikipedia https://ja.wikipedia.org/wiki/ISO/IEC_7812

先頭の6桁を銀行識別番号(Bank Identification Number、略称:BIN)ないしは発行者識別番号(Issuer Identification Number、略称:IIN)と呼び、この先頭6桁でカード発行会社(イシュア、issuer)が判るようになっている。