mssql-scripter https://github.com/Microsoft/mssql-scripter
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
| Elixir のプロジェクトに Pull Request を送った | |
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
| tokyo.ex #9 https://beam-lang.connpass.com/event/103873/ | |
| LT | |
| 2018-10-21 | |
| ============= | |
| 自己紹介 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import hashlib | |
| import hmac | |
| import base64 | |
| import binascii | |
| password = 'foobar' | |
| client_nonce = '9IZ2O01zb9IgiIZ1WJ/zgpJB' | |
| server = { | |
| 'r': '9IZ2O01zb9IgiIZ1WJ/zgpJBjx/oIRLs02gGSHcw1KEty3eY', | |
| 's': 'fs3IXBy7U7+IvVjZ', |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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') |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| """ウィキペディア日本語版のアーカイブファイルから多く参照されているページをリスト | |
| 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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') |