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
import tables,strformat,math,strutils | |
let charas : Table[string,tuple[count:int,color:string]] = { | |
"香風智乃":(8866,"#cfefff"), | |
"保登心愛":(5104,"#ffefcf"), | |
"桐間紗路":(3180,"#efffcf"), | |
"天々座理世":(3120,"#efcfef"), | |
"宇治松千夜":(2258,"#cfffef"), | |
}.toTable() | |
let rels : seq[tuple[src,dst:string,count:int]] = @[ | |
("桐間紗路","宇治松千夜",1+109), |
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
import sequtils,times | |
template stopwatch(body) = (let t1 = cpuTime();body;stderr.writeLine "TIME:",(cpuTime() - t1) * 1000,"ms") | |
const N = 10_000_0000 | |
proc newSeqProc*(len: int): seq[int] = | |
result = newSeq[int](len) | |
proc newSeqProc2*(len: int): seq[int] = | |
let x = newSeq[int](len) | |
return x | |
template newSeqTemplate*(len: int): seq[int] = | |
let result = newSeq[int](len) |
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
package main | |
import ( | |
"fmt" | |
"golang.org/x/crypto/bcrypt" | |
) | |
var hashes = [...][]byte{ | |
[]byte("$2a$10$Rvrp.PkB.pnvmXkbu7IYvuglQhJ.kAGJG/.rkCgiDbC1JCEyP7Avq"), | |
[]byte("$2a$10$mrNWPjlGFqRPbHmzybgJye90m7aUL12f0ZaEmzMBZ2rOfpmba23qO"), |
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
[ | |
{"account_name":"uesugi_shinichi","address":"埼玉県厚別区5-27","buy_parent_category_id":60,"created_at":1565402710,"id":3907,"num_buy_items":4,"num_sell_items":0,"plain_passwd":"pwhBq/lbL8Gz2xU4hAHcT4MaaS3gygDxxBGhlt+pr74"}, | |
{"account_name":"maki_mayuko","address":"滋賀県清田区5-4","buy_parent_category_id":10,"created_at":1565400177,"id":1374,"num_buy_items":4,"num_sell_items":0,"plain_passwd":"5+qHwh2zs79WbM5uDdckEmU4HEc2SRr/ctMLAdIIPs4"}, | |
{"account_name":"sakurai_hidetsugu","address":"三重県昭和区2-37","buy_parent_category_id":60,"created_at":1565399430,"id":627,"num_buy_items":4,"num_sell_items":4,"plain_passwd":"PGGNHUv+/sZJjahIJpYXdp3DcgWudAjMVKvQirD56uc"}, | |
{"account_name":"ooura_eiichi","address":"大阪府若林区5-41","buy_parent_category_id":50,"created_at":1565399457,"id":654,"num_buy_items":4,"num_sell_items":2,"plain_passwd":"HK624wvQTAkx0SIifGQ6i6+Zl6wAR3fDYeSQrcrMcm4"}, | |
{"account_name":"sasaki_ouga","address":"鹿児島県宮前区3-16","buy_parent_category_id":60,"created_at":1565401098,"id":2295,"num_buy_items":4,"num_sell_items":0," |
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
import deques,sets | |
# outputs | |
# CLEAR!! | |
# HHTHBHTBBBBB | |
# (myHP: 2, eneHP: -3, myCmd: 0, eneCmd: 3, myLeftTurn: 5, eneLeftTurn: 1) | |
# HP:71 -> 78 | |
# bow:21/2/5 (0) | |
# thu:35/0/10(1) | |
# hea:60/0/15(2) |
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
.\" spec - -*- Indented-Text -*- created at: Tue May 25 15:18:26 JST 1993 | |
* はじめに(なぜRubyか?) | |
Rubyは「UNIXで手軽にオブジェクト指向プログラミング」をしたいという望み | |
を実現するために生まれた. そのために必要だと思われた性質は: | |
* 文法や機能が単純である. | |
* オブジェクト指向プログラミングをサポートする機能を | |
持つ言語として設計されている. |
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
.js-drawer.drawer.wide{ | |
width: 200px; | |
left: -200px; | |
} | |
.js-app-content.app-content.is-open{ | |
transition-duration: 200ms; | |
transform: translateX(200px); | |
margin-right: 200px; | |
} |
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
import requests | |
import os | |
import shutil | |
from bs4 import BeautifulSoup | |
your_id = "xx_xxxxxx" | |
your_pass = "xxxxxxxx" | |
s = requests.session() | |
login = s.get("https://bookroll.let.media.kyoto-u.ac.jp/bookroll/login") |
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
import pandas as pd | |
import tweepy | |
def get_api(): | |
c_k = "K**" | |
c_s = "u**" | |
a_k = "2**" | |
a_s = "b**" | |
auth = tweepy.OAuthHandler(c_k, c_s) | |
auth.set_access_token(a_k, a_s) |