Skip to content

Instantly share code, notes, and snippets.

View Muratam's full-sized avatar
🌱
ぺこっぱマスター!

むらため Muratam

🌱
ぺこっぱマスター!
View GitHub Profile
@Muratam
Muratam / nerke.ts
Last active February 4, 2024 09:28
// ts-node nerke.ts
const alchesRaw = [
["シングルスカット", "武器", 1077, 13, 23, { 木弾の実: 1, フラム: 1, 玉鋼石: 3, アイヒェ: 2 }],
["開拓便利ツール", "雑貨", 1888, 18, 21, { 磨いた水晶: 1, シルヴァリア: 1, ラバーツリー: 1, 土: 5 }],
["クリスタファング", "武器", 1144, 14, 21, { 連岩: 1, 磨いた水晶: 1, ペンデローク: 1, 水: 2 }],
["音手箱", "雑貨", 1086, 13, 21, { ひかる円盤: 1, くず鉄: 1, ピュアオイル: 1 }],
["アーマードバンカー", "武器", 1048, 13, 21, { インゴット: 1, くず鉄: 1, 連岩: 1, 火: 2 }],
["ベジまんじゅう", "食材", 698, 10, 21, { 小麦粉: 3, 葉レタス: 3, 何かのタマゴ: 5, 風: 5 }],
["フリューゲル", "服飾", 524, 8, 21, { 動物の皮革: 1, 水: 10, 風: 5 }],
["干し草用フォーク", "建材", 0, 7, 21, { ラバーツリー: 1, キンバー鉱石: 1, 風: 5 }],
@Muratam
Muratam / 過去問やるやつ
Last active February 26, 2022 06:02
mahjong handle.js
// ==UserScript==
// @name Fix Mahjong Handle
// @namespace fmh
// @version 0.1
// @description try to take over the world!
// @author You
// @match https://mahjong-handle.update.sh/
// @icon https://www.google.com/s2/favicons?sz=64&domain=google.com
// @grant none
// ==/UserScript==
@Muratam
Muratam / test
Last active September 30, 2021 13:30
test
むらたくんに今から100万円を贈ります
@Muratam
Muratam / 1373637
Created September 12, 2021 13:04
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

The Mahjong Language

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

言葉の定義

  • 牌: 「🀀🀁🀂🀃🀄🀅🀆 🀇🀈🀉🀊🀋🀌🀍🀎🀏 🀐🀑🀒🀓🀔🀕🀖🀗🀘 🀙🀚🀛🀜🀝🀞🀟🀠🀡」の34種類の麻雀牌を表す文字のいずれか1文字
  • 山: 牌のみで構成される文字列。長さに制限はない
  • 雀士: この言語を解釈し、実行する仮想的な人物. 以下を持つ.
    • 手牌: 長さ13の山。初期値「🀄🀄🀄🀄🀄🀄🀄🀄🀄🀄🀄🀄🀄」
  • PC(Program Counter): int64型の数。初期値 0。
@Muratam
Muratam / x.c
Created April 24, 2020 17:45
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 April 24, 2020 15:38
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 October 31, 2019 11:07
cookie.html
@Muratam
Muratam / 関係性.nim
Created September 26, 2019 04:38
関係性.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),
@Muratam
Muratam / bench.nim
Created September 21, 2019 19:29
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)