tokyo.ex #9 https://beam-lang.connpass.com/event/103873/ LT 2018-10-21
============= 自己紹介
package main | |
import ( | |
"database/sql" | |
"fmt" | |
"log" | |
"github.com/jmoiron/sqlx" | |
_ "github.com/nakagami/firebirdsql" | |
) |
tokyo.ex #9 https://beam-lang.connpass.com/event/103873/ LT 2018-10-21
============= 自己紹介
import hashlib | |
import hmac | |
import base64 | |
import binascii | |
password = 'foobar' | |
client_nonce = '9IZ2O01zb9IgiIZ1WJ/zgpJB' | |
server = { | |
'r': '9IZ2O01zb9IgiIZ1WJ/zgpJBjx/oIRLs02gGSHcw1KEty3eY', | |
's': 'fs3IXBy7U7+IvVjZ', |
mssql-scripter https://github.com/Microsoft/mssql-scripter
#!/usr/bin/env python | |
# The MIT License (MIT) | |
# Copyright © 2015 Recruit Technologies Co.,Ltd. | |
# | |
# Permission is hereby granted, free of charge, to any person obtaining a copy | |
# of this software and associated documentation files (the "Software"), to deal | |
# in the Software without restriction, including without limitation the rights | |
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
# copies of the Software, and to permit persons to whom the Software is | |
# furnished to do so, subject to the following conditions: |
白ヤギコーポレーションさんが作成、公開している日本語モデルを使ってみます
http://aial.shiroyagi.co.jp/2017/02/japanese-word2vec-model-builder/
$ curl http://public.shiroyagi.s3.amazonaws.com/latest-ja-word2vec-gensim-model.zip > latest-ja-word2vec-gensim-model.zip
import io | |
import re | |
import collections | |
import zipfile | |
import requests | |
from janome.tokenizer import Tokenizer | |
r = requests.get('http://www.aozora.gr.jp/cards/000148/files/789_ruby_5639.zip') | |
f = zipfile.ZipFile(io.BytesIO(r.content)).open('wagahaiwa_nekodearu.txt') |
"""ウィキペディア日本語版のアーカイブファイルから多く参照されているページをリスト | |
https://dumps.wikimedia.org/jawiki/latest/ に最新のアーカイブファイルが存在する | |
以下のコマンドで記事が1ファイルになった jawiki-latest-pages-articles.xml をカレントディレクトリにおいてからスクリプトを実行 | |
:: | |
curl https://dumps.wikimedia.org/jawiki/latest/jawiki-latest-pages-articles.xml.bz2 |bzcat > jawiki-latest-pages-articles.xml | |
""" | |
import collections | |
import re |
import io | |
import re | |
import collections | |
import zipfile | |
import requests | |
from janome.tokenizer import Tokenizer | |
r = requests.get('http://www.aozora.gr.jp/cards/000148/files/789_ruby_5639.zip') | |
f = zipfile.ZipFile(io.BytesIO(r.content)).open('wagahaiwa_nekodearu.txt') |