Skip to content

Instantly share code, notes, and snippets.

Hajime Nakagami nakagami

Block or report user

Report or block nakagami

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View db2_on_cloud.rst
@nakagami
nakagami / python_and_db2.rst
Last active May 11, 2019
Python database driver and Db2
View python_and_db2.rst
@nakagami
nakagami / quickstartdjango.rst
Last active Apr 7, 2019
Quickstart with Django and pure python database drivers (2019-04-06)
View quickstartdjango.rst
View firebirdsql_sqlx_example.go
package main
import (
"database/sql"
"fmt"
"log"
"github.com/jmoiron/sqlx"
_ "github.com/nakagami/firebirdsql"
)
View tokyoex9.rst
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Elixir のプロジェクトに Pull Request を送った
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
tokyo.ex #9 https://beam-lang.connpass.com/event/103873/
LT
2018-10-21
=============
自己紹介
@nakagami
nakagami / pg_scram_sha_256.py
Created Sep 24, 2018
PostgreSQL SCRAM-SHA-256 authentication
View pg_scram_sha_256.py
import hashlib
import hmac
import base64
import binascii
password = 'foobar'
client_nonce = '9IZ2O01zb9IgiIZ1WJ/zgpJB'
server = {
'r': '9IZ2O01zb9IgiIZ1WJ/zgpJBjx/oIRLs02gGSHcw1KEty3eY',
's': 'fs3IXBy7U7+IvVjZ',
@nakagami
nakagami / mssql_python.rst
Created Aug 4, 2018
Python and MS SQL Server, MS SQL Server and Python
@nakagami
nakagami / jabstract.py
Last active Dec 14, 2018
Japanese summarization module using LexRank algorithm.
View jabstract.py
#!/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:
@nakagami
nakagami / word2vec_sample.rst
Last active Apr 9, 2018
python + word2vec 最初のサンプルコード
View word2vec_sample.rst

word2vec を使って類似語を探す

白ヤギコーポレーションさんが作成、公開している日本語モデルを使ってみます

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
@nakagami
nakagami / wagahaiwa_nekodearu_yomi.py
Last active Mar 30, 2018
青空文庫の「我輩は猫である」を形態素解析して読み仮名を表示
View wagahaiwa_nekodearu_yomi.py
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')
You can’t perform that action at this time.