Skip to content

Instantly share code, notes, and snippets.

View y-yu's full-sized avatar

YOSHIMURA Yuu y-yu

View GitHub Profile
@y-yu
y-yu / vimiumrc
Created July 27, 2012 15:38
Vimium key map
# 参考: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
sequenceDiagram autonumber
    actor ユーザー
    ユーザー ->> サービス: メール送って!
    サービス -->> ユーザー: OAuth的なマジックリンクを送信
    ユーザー ->> メールプロバイダー: リンクにアクセス
    メールプロバイダー -->> ユーザー:「○○(サービス)がメールを送ろうとしています」
    alt 許可
      メールプロバイダー -->> サービス: リダイレクトで`code_verifier`的なものを送信
 サービス ->> メールプロバイダー: `access_token`でホワイトリスト登録
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
:}
@y-yu
y-yu / inherit.md
Created August 9, 2012 06:57
JavaScriptの継承について

JavaScriptの継承について

全然理解出来てなかったので調べてみた。

経緯

function f () {
	// Class
}
@y-yu
y-yu / keybase.md
Last active November 29, 2022 16:08

Keybase proof

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:

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)),
@y-yu
y-yu / slick-joda-mapper-issue.md
Last active September 14, 2022 08:50
slick-joda-mapperの件

slick-joda-mapperの動作がおかしそう

概要

@y-yu
y-yu / grouping.py
Last active August 24, 2022 21:03
grouping
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)
@y-yu
y-yu / mp.py
Last active January 3, 2022 11:43
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
;; 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