Skip to content

Instantly share code, notes, and snippets.

🌱
ぺこっぱマスター!

むらため Muratam

🌱
ぺこっぱマスター!
Block or report user

Report or block Muratam

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@Muratam
Muratam / cookie.html
Last active Oct 31, 2019
cookie.html
View cookie.html
View 関係性.nim
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),
View bench.nim
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)
@Muratam
Muratam / main.go
Last active Sep 12, 2019
bcryptを20個x10回やるやつ
View main.go
package main
import (
"fmt"
"golang.org/x/crypto/bcrypt"
)
var hashes = [...][]byte{
[]byte("$2a$10$Rvrp.PkB.pnvmXkbu7IYvuglQhJ.kAGJG/.rkCgiDbC1JCEyP7Avq"),
[]byte("$2a$10$mrNWPjlGFqRPbHmzybgJye90m7aUL12f0ZaEmzMBZ2rOfpmba23qO"),
View users.json
[
{"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,"
@Muratam
Muratam / hoge.nim
Last active Aug 8, 2019
不思議の城のヘレンの痺れの人をロングボウ・サンダー・ヒールで倒すスクリプト
View hoge.nim
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)
@Muratam
Muratam / Ruby0.49.txt
Created Jun 21, 2019
Ruby 0.49 Specs
View Ruby0.49.txt
.\" spec - -*- Indented-Text -*- created at: Tue May 25 15:18:26 JST 1993
* はじめに(なぜRubyか?)
Rubyは「UNIXで手軽にオブジェクト指向プログラミング」をしたいという望み
を実現するために生まれた. そのために必要だと思われた性質は:
* 文法や機能が単純である.
* オブジェクト指向プログラミングをサポートする機能を
持つ言語として設計されている.
@Muratam
Muratam / tweetdeck-smallwindow-2019-05-19.css
Created May 19, 2019
tweetdeck-smallwindow-2019-05-19.css
View tweetdeck-smallwindow-2019-05-19.css
.js-drawer.drawer.wide{
width: 200px;
left: -200px;
}
.js-app-content.app-content.is-open{
transition-duration: 200ms;
transform: translateX(200px);
margin-right: 200px;
}
@Muratam
Muratam / flamegraph.nim
Last active Dec 7, 2018
profile_results.txt を flamegraph.pl 形式にするやつ
View flamegraph.nim
import os
import system
import strutils
import sequtils
import algorithm
proc findCallCount(line:string) : string =
let args = line.split(" ")
for i,arg in args:
View twitter消すやつ.py
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)
You can’t perform that action at this time.