Skip to content

Instantly share code, notes, and snippets.

@odashi
odashi / should_mute_on_twitter.txt
Last active December 26, 2022 13:02
should_mute.txt
あまり大きな声で言えないのですが
あまり知られてないのですが
ありえない
あんまり言いたくないけど
いい加減にしてほしい
いい歳してお恥ずかしいのですが
悪用厳禁なのですが
安心してください
言いたくない過去を言うと
言わせてください
@stevenkword
stevenkword / bad-words.txt
Last active January 9, 2023 03:02
Bad Words & Banned Usernames
www, web, root, admin, main, invite, administrator, files, blog, blogs, members, member, user, users, profile, profiles, presentation, presentations, slide, slides, wordpress, buddypress, sysop, system, mail, ahole, anus, ash0le, ash0les, asholes, ass, Ass Monkey, Assface, assh0le, assh0lez, asshole, assholes, assholz, asswipe, azzhole, bassterds, bastard, bastards, bastardz, basterds, basterdz, Biatch, bitch, bitches, Blow, Job, boffing, butthole, buttwipe, c0ck, c0cks, c0k, Carpet Muncher, cawk, cawks, Clit, cnts, cntz, cock, cockhead, cock-head, cocks, CockSucker, cock-sucker, crap, cum, cunt, cunts, cuntz, dick, dild0, dild0s, dildo, dildos, dilld0, dilld0s, dominatricks, dominatrics, dominatrix, dyke, enema, fag, fag1t, faget, fagg1t, faggit, faggot, fagit, fags, fagz, faig, faigs, fart, flipping the bird, fuck, fucker, fuckin, fucking, fucks, Fudge, Packer, fuk, Fukah, Fuken, fuker, Fukin, Fukk, Fukkah, Fukken, Fukker, Fukkin, g00k, gay, gayboy, gaygirl, gays, gayz, God-damned, h00r, h0ar, h0re, hells,
@onteria
onteria / 顔文字.txt
Created July 1, 2012 15:21
顔文字.txt
?(っ´。ω゜`c)
☝( ◠‿◠ )☝
༼(*꒪ั❥꒪ั*༽༽
(੭ु ˃̶͈̀ x ˂̶͈́)੭ु⁾⁾
:(ヽ'ω`):
+。:.゚٩(๑>◡<๑)۶:.。+゚
(★l ω l)
(〃`l _ l´)
とりのうたすきすき <(*◔ヮ◔)o¶~~♪  朝シャワーHAPPY☆HAPPY (☝*◔ヮ◔)o¶~~♪  OHAYOUだよ☆ (☞*◔ヮ◔)o¶~~♪
ヾ(l _ l〃)ノ゙

The Mahjong Language

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

言葉の定義

  • 牌: 「🀀🀁🀂🀃🀄🀅🀆 🀇🀈🀉🀊🀋🀌🀍🀎🀏 🀐🀑🀒🀓🀔🀕🀖🀗🀘 🀙🀚🀛🀜🀝🀞🀟🀠🀡」の34種類の麻雀牌を表す文字のいずれか1文字
  • 山: 牌のみで構成される文字列。長さに制限はない
  • 雀士: この言語を解釈し、実行する仮想的な人物. 以下を持つ.
    • 手牌: 長さ13の山。初期値「🀄🀄🀄🀄🀄🀄🀄🀄🀄🀄🀄🀄🀄」
  • PC(Program Counter): int64型の数。初期値 0。
* ホスト名につかえそうなもの
- 将軍の名前
- ローマ皇帝の名前
- ガンダムのモビルスーツの名前
- 麻雀の役
- 天使の名前
- ある歌手の曲名
- 二十八宿(http://ja.wikipedia.org/wiki/%E4%BA%8C%E5%8D%81%E5%85%AB%E5%AE%BF)
- 二十四節気 (http://ja.wikipedia.org/wiki/%E4%BA%8C%E5%8D%81%E5%9B%9B%E7%AF%80%E6%B0%97)
- 東海道の駅名
@rick0000
rick0000 / HoraResultCalclatorTestData.txt
Last active March 13, 2023 12:04
麻雀AI役判定プログラム用テストデータ
This file has been truncated, but you can view the full file.
{"type":"hora","kyoku":1,"bakaze":"E","actor":0,"target":0,"pai":"2p","dora_markers":["4m"],"uradora_markers":["4s"],"hora_tehais":["7m","8m","9m","3p","4p","5p","6p","7p","2s","2s","7s","8s","9s"],"hora_furos":[],"yakus":[["reach",1.0],["menzenchin_tsumoho",1.0],["pinfu",1.0]],"fu":20,"fan":3,"hora_points":3900,"deltas":[4900,-1300,-1300,-1300],"scores":[28900,23700,23700,23700]}
{"type":"hora","kyoku":1,"bakaze":"E","actor":2,"target":2,"pai":"4s","dora_markers":["E"],"uradora_markers":[],"hora_tehais":["3m","4m","5m","4s","5sr","5s","5s"],"hora_furos":[["minsyun","6p","7p","8p"],["minko","W","W","W"]],"yakus":[["jikaze",1.0],["akadora",1.0]],"fu":40,"fan":2,"hora_points":2700,"deltas":[-1400,-800,3000,-800],"scores":[27500,22900,26700,22900]}
{"type":"hora","kyoku":2,"bakaze":"E","actor":1,"target":0,"pai":"7s","dora_markers":["8p"],"uradora_markers":["9m"],"hora_tehais":["1m","1m","4m","5m","6m","3p","4p","5p","8s","9s","9s","9s","9s"],"hora_furos":[],"yakus":[["reach",1.0],["uradora",2.0]],"fu":40,"fan":
@kjunichi
kjunichi / gist_get_by_jsonp.md
Last active March 14, 2023 14:21
JSONPでGitHubのGistが取得できることを知り、XPathでHTMLやJavaScriptを取り出せたのだが。。

背景

Gist外部埋め込みHTMLをJSONPで受け取るにてGistをJSONPで 取得できることを知った。

JSONPで取得できるJSONは微妙

JSONPで取得したJSONはサイトに貼り付けるには便利なのだが、コードとして取り出すにはちょっと面倒

;;; -*- coding: utf-8 -*-
;; okuri-ari entries.
つもあがt /ツモ和了;[麻雀]/
つもあがr /ツモ和了;[麻雀]/
つもt /自摸;[麻雀]/
つもt /ツモ;[麻雀]/
つもr /自摸;[麻雀]/
つもr /ツモ;[麻雀]/
くいながs /喰い流;[麻雀]/
くいなおs /喰い直;[麻雀]/
rank frequency lemma
1 41309.50
2 23509.54
3 22216.80
4 20431.93
5 20326.59
6 20110.69
7 19235.55
8 17292.36
9 16841.17 する
@shokai
shokai / ignore.sh
Created July 7, 2012 13:58
放送禁止用語リスト
curl http://monoroch.net/kinshi/kinshi.csv | nkf -u | grep '^"' | ruby -lane 'puts $_.split(/,/)[0].scan(/"(.+)"/)[0]' | sort | uniq