Skip to content

Instantly share code, notes, and snippets.

Avatar
🌱
ぺこっぱマスター!

むらため Muratam

🌱
ぺこっぱマスター!
View GitHub Profile
View test
むらたくんに今から100万円を贈ります
View 1373637
2,192.168.0.13 -jia-service-url http://192.168.0.10:5000
22:02:57.343400 ISUCON11 benchmarker 22afea510f641abae34a0e26f98a8c1dc523ec4b
22:02:57.343565 ===> PREPARE
22:02:57.343580 start: load initial data
22:02:57.346200 finish: load initial data
22:03:02.831129 ===> LOAD
22:03:02.831139 SCORE: 00.StartBenchmark : 0
22:03:02.831153 LOAD INFO
Language: go
Campaign: None
View mahjong.md

The Mahjong Language

プログラムコードは 🀀🀁🀂🀃🀄🀅🀆 🀇🀈🀉🀊🀋🀌🀍🀎🀏 🀐🀑🀒🀓🀔🀕🀖🀗🀘 🀙🀚🀛🀜🀝🀞🀟🀠🀡 の文字列のみで構成される。

言葉の定義

  • 牌: 「🀀🀁🀂🀃🀄🀅🀆 🀇🀈🀉🀊🀋🀌🀍🀎🀏 🀐🀑🀒🀓🀔🀕🀖🀗🀘 🀙🀚🀛🀜🀝🀞🀟🀠🀡」の34種類の麻雀牌を表す文字のいずれか1文字
  • 山: 牌のみで構成される文字列。長さに制限はない
  • 雀士: この言語を解釈し、実行する仮想的な人物. 以下を持つ.
    • 手牌: 長さ13の山。初期値「🀄🀄🀄🀄🀄🀄🀄🀄🀄🀄🀄🀄🀄
    • PC(Program Counter): int64型の数。初期値 0。
View x.c
asm(
" .s\145ct\151\157n .r\157d\141t\141\n"
".LC0:\n"
" .str\151ng \"H\145ll\157\"\n"
" .t\145xt\n"
" .gl\157bl m\141\151n\n"
" .t\171p\145 m\141\151n, @f\165nct\151\157n\n"
"m\141\151n:\n"
".LFB0:\n"
" .cf\151_st\141rtpr\157c\n"
@Muratam
Muratam / wikipediaquiz.py
Last active Apr 24, 2020
wikipediaquiz.py
View wikipediaquiz.py
import os.path
import requests
import datetime
import random
import tweepy
import sys
import os
import shutil
import re
from bs4 import BeautifulSoup
@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,"