Skip to content

Instantly share code, notes, and snippets.

View sorami's full-sized avatar

Sorami Hisamoto sorami

View GitHub Profile
@mugenen
mugenen / wn.py
Created March 4, 2012 11:48 — forked from yanbe/wn.py
A frontend of WordNet-Ja database file (sqlite3 format) which is available on http://nlpwww.nict.go.jp/wn-ja/
#!/usr/bin/env python
# encoding: utf-8
import sys
import sqlite3
from collections import namedtuple
conn = sqlite3.connect("wnjpn.db")
Word = namedtuple('Word', 'wordid lang lemma pron pos')
@naoya
naoya / netgame_life.md
Last active April 18, 2018 04:54
ネットゲーマーとMBAコンサルタント

海岸沿いの小さな村に、MBAをもつアメリカのコンサルタントが訪れた。 あるネットゲーマーの画面を見ると活きのいいキャラが育っている。

コンサルタントは聞いた。

「いいキャラですね。レベルカンストにはどのくらいの時間かかるのですか?」 「そうだな、1,000時間ってとこだな。」

「まだ日は高いのに、こんなに早くログインしてどうするのですか?」

@tasukujp
tasukujp / 5_description.markdown
Last active July 13, 2018 08:43
SnakeYAMLの使い方
@adeel
adeel / arXiv_citation.js
Last active October 20, 2018 07:50
arXiv citation bookmarklet
// Save the following as a bookmark:
// javascript:(function()%7Bfunction%20callback()%7B(function(%24)%7Bvar%20jQuery%3D%24%3Bvar%20authors%20%3D%20%24(%22.authors%20a%22).map(function()%20%7Breturn%20%22%5B%5B%22%20%2B%20%24.trim(%24(this).html())%20%2B%20%22%5D%5D%22%3B%7D).get().join(%22%2C%20%22)%3B%24(%22.title%20.descriptor%22).remove()%3Bvar%20title%20%3D%20%24.trim(%24(%22.title%22).html())%3Bvar%20arxivId%20%3D%20%24(%22.arxivid%20a%22).html()%3Bvar%20URL%20%3D%20location.href%3Bvar%20citation%20%3D%20%22*%20%22%20%2B%20authors%20%2B%20%22%2C%20_%22%20%2B%20title%20%2B%20%22_%2C%20%5B%22%20%2B%20arxivId%20%2B%20%22%5D(%22%20%2B%20URL%20%2B%20%22).%22%3Bwindow.prompt(%22Copy%20to%20clipboard%3A%20Ctrl%2BC%2C%20Enter%22%2C%20citation)%7D)(jQuery.noConflict(true))%7Dvar%20s%3Ddocument.createElement(%22script%22)%3Bs.src%3D%22https%3A%2F%2Fajax.googleapis.com%2Fajax%2Flibs%2Fjquery%2F2.1.3%2Fjquery.min.js%22%3Bif(s.addEventListener)%7Bs.addEventListener(%22load%22%2Ccallback%2Cfalse)%7Delse%20if(s.ready
@sile
sile / rust_memo.md
Last active April 3, 2019 04:47
2017年6月時点のRustの開発用メモ

2017年6月時点のRustの開発用メモ

注意

  • 特に最新動向を追ったりはしていないので、情報が古い可能性はある

インストール

@n1n9-jp
n1n9-jp / README.md
Last active September 26, 2021 07:53
Natural Earth Border Issue
  • Shapefile that is distributed from NaturalEarth( http://www.naturalearthdata.com/ ) have the data that (I am not sure all of the files but) the Northern Territories and Takeshima are not the Japanese territory. It is different from the Japanese government claims( http://www.mofa.go.jp/region/europe/russia/territory/index.html http://www.mofa.go.jp/region/asia-paci/takeshima/index.html ). The author of D3.js is using this file, and the people who do not know how to convert Shapefile to Geo/Topojson use his file as it is, it would imperceptibly become the de facto standard. This is an expressed concern that it could be causing the common sense of the world.

  • Natural Earthで配布されているShapefileは(すべてのファイルを確認していないですが)北方領土や竹島が、日本政府の主張( http://www.mofa.go.jp/mofaj/area/hoppo/index.html http://www.mofa.go.jp/mofaj/area/takeshima/index.html )と異なる、日本の領土ではないようなデータになっています。D3.jsの作者がこのファイルを使用していて、ShapefileをGeo/Topojsonへ変換する方法を知らない人たちは彼のファイルをそのまま使うので、いつの間にかこのような領土の表示が事実上の標準、常識になってしまうことに懸念を表明します。

@ailispaw
ailispaw / patch.fix.tumblr.getTumblelogs.tbrl.js
Last active December 28, 2021 04:33
Fix Tumblr.getTumblelogs 2021.10
// ==Taberareloo==
// {
// "name" : "Fix Tumblr.getTumblelogs 2021.12"
// , "description" : "Fix Tumblr.getTumblelogs 2021.12"
// , "include" : ["background"]
// , "version" : "0.5.2"
// , "downloadURL" : "https://gist.githubusercontent.com/ailispaw/3aef8857c274e22f2b41/raw/patch.fix.tumblr.getTumblelogs.tbrl.js"
// }
// ==/Taberareloo==
@ailispaw
ailispaw / patch.fix.tumblr.post.tbrl.js
Last active April 11, 2022 03:07
Taberareloo: Fix Tumblr.post 2021.12
// ==Taberareloo==
// {
// "name" : "Fix Tumblr.post 2021.12"
// , "description" : "Fix Tumblr.post 2021.12"
// , "include" : ["background", "content"]
// , "match" : ["*://*/*"]
// , "version" : "0.4.3"
// , "downloadURL" : "https://gist.githubusercontent.com/ailispaw/b5b2b65fddcb70f03e298a15403bfa8e/raw/patch.fix.tumblr.post.tbrl.js"
// }
// ==/Taberareloo==
@dc7290
dc7290 / fan-of-astro.md
Last active December 31, 2022 20:26
Astroのいいところ(個人的まとめ)

Astroのいいところ

  • islands architecture によって初期で読み込まれるJSサイズが少ない
  • 元々、Webサイト(静的サイト)に特化したフレームワークなので、他のフレームワークと違い使い勝手がいい
    • 言葉では伝えづらいのですが、「これだよこれ!」感がとても強いのです。

      https://docs.astro.build/en/concepts/why-astro/ Astroは、コンテンツに特化した 高速な Webサイトを構築するためのオールインワン Webフレームワークです。 >

@Hayao0819
Hayao0819 / destroy.sh
Last active June 22, 2023 17:35
シェル芸ロシアンルーレット
#!/bin/sh
# 参考
# https://qiita.com/_-_-_-_-_/items/214d537aae2c1488692c
get_random(){
od -v -An --width=1 -tu1 -N1 < /dev/urandom | \
awk "{ print \$1 % 10 }"
}