sequenceDiagram autonumber
actor ユーザー
ユーザー ->> サービス: メール送って!
サービス -->> ユーザー: OAuth的なマジックリンクを送信
ユーザー ->> メールプロバイダー: リンクにアクセス
メールプロバイダー -->> ユーザー:「○○(サービス)がメールを送ろうとしています」
alt 許可
メールプロバイダー -->> サービス: リダイレクトで`code_verifier`的なものを送信
サービス ->> メールプロバイダー: `access_token`でホワイトリスト登録
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 参考:http://ydal.de/vimium-mapping-for-dvorak-layouts/ | |
unmapAll | |
map r reload | |
map x removeTab | |
map u restoreTab | |
map t scrollDown | |
map n scrollUp | |
map h scrollLeft |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
nextpair (@z ->) (-> @y) = @z -> unpair (fst:-> @f) (snd:-> copy (-> id ->:fst) (-> + @f ->:snd) pair -> @y) | |
next (@x ->) (-> @y) = nextpair (fib (@x - 1)) -> @y | |
fib (@x ->) (-> @y) = @x -> if (@x == 0 || @x == 1) (then:-> (1, 1) ->) (else:-> next ->) merge -> @y | |
:{ | |
@x'0 -> fib -> unpair (fst:-> @t) (snd:-> output) | |
@x'0 + 1 -> @x | |
:} |
I hereby claim:
- I am y-yu on github.
- I am yyu (https://keybase.io/yyu) on keybase.
- I have a public key ASA29kppYrs84fsXeT9qihzr8-1L7A33xqHeHHSYvoxVcQo
To claim this, I am signing this object:
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from math import sqrt | |
from graphillion import GraphSet as gs | |
universe = [ | |
# 1 | |
('1', '2', 1.0), | |
('1', '4', 1.0), | |
('1', '5', sqrt(2)), | |
('1', '6', sqrt(3)), | |
('1', '8', sqrt(3)), |
- tototoshi/slick-joda-mapper#30 で
Calender
を使う実装がはいった - 具体的なところは
mysql-connector-java
の実装による疑惑があるが、setTimestamp
でCalendar
を渡すと実際にDBに対して発行されるINSERT
などのクエリーの時間の表現が変化すると思われる-
Calendarオブジェクトを使用すると、ドライバはカスタム・タイムゾーンを考慮してタイムスタンプを計算できます。
- https://docs.oracle.com/javase/jp/8/docs/api/java/sql/PreparedStatement.html#setTimestamp-int-java.sql.Timestamp-java.util.Calendar-
-
- ただ👇下記のようにタイムゾーンを変更した時間をDBに入れるテストを追加すると
Calendar
を利用するとおかしなことが起きてしまう
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from charm.toolbox.ecgroup import ECGroup, G, ZR | |
from charm.toolbox.eccurve import prime192v1, prime192v2 | |
from charm.core.math.integer import integer, toInt | |
import random | |
from functools import reduce | |
# utility functions | |
def random_point(group): | |
return group.random(G) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from charm.toolbox.integergroup import IntegerGroupQ | |
from charm.core.math.integer import toInt | |
import random | |
from functools import reduce | |
group = IntegerGroupQ() | |
group.paramgen(512) | |
cards = 52 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;; For Satyrographos 0.0.2 series | |
(version 0.0.2) | |
;; Library declaration | |
(library | |
;; Library name | |
(name "satysfi-start") | |
;; Library version | |
(version "1.0.0") | |
;; Files |
NewerOlder