Skip to content

Instantly share code, notes, and snippets.

View nobuh's full-sized avatar

Nobuhiro Hatano nobuh

View GitHub Profile
@nobuh
nobuh / brave_story.md
Last active September 23, 2017 08:09
【書評】宮部みゆき「ブレイブ・ストーリー」

宮部みゆき「ブレイブ・ストーリー」

あらすじ

小学校5年生のワタルは、友達もいるごく普通の小学生。近所には建設が途中で中断になった廃屋のようなビルがある。 学校でそのビルで幽霊の噂がたち、子供らしい好奇心で探検することになるが、そこで謎の扉に遭遇する。 それに合わせるように過去に家族における凄惨な不幸を経験している転校生のミツル、誘拐事件の被害者で精神を病んでしまったビルオーナーの娘のカオリ、傲慢で暴力的な地域の有力者の息子、いろいろな事件が発生する。ついに自らにも降りかかった不幸な運命を変えるために、ミツルに続いて扉を通って「幻界」に赴くことになる

感想

@nobuh
nobuh / .vimrc
Created September 20, 2017 01:08
my vimrc
" To insert spaces whenever the tab key is pressed.
" To expand existing tabs, use :retab
set expandtab
" Number of spaces inserted for indentation.
set shiftwidth=4
" BS delete spaces for tabs
set smarttab
" Without .swap files
set noswapfile
set tabstop=4
@nobuh
nobuh / seigino_mikata.md
Last active September 17, 2017 08:55
【書評】本多 孝好「正義のミカタ」

正義のミカタ表紙

あらすじ

高校時代はずっと殴られたり、恐喝されるなどのいじめを受けていた主人公。豊かではないががんばって生活している家族環境のなか、 高校卒業を控えた3年生に少しでも自分を変えようと一念発起して一年間ほど勉強し、なんとか中堅の飛鳥大学に入ることに成功する。

新たな生活で自分を変えようと思った矢先、高校時代のいじめっこと再会をする。早速いじめの暴力を受けたとき同じ新入生のトモイチが救ってくれる。 彼は飛鳥大学に長い伝統を持つ「正義の味方研究会」の部員だった。

ながいいじめを受けてきたことで培われた反射神経やダメージを軽減する防御テクニックを見込まれ、主人公も正義の味方研究会に参加することになる。

@nobuh
nobuh / cool_techs.md
Created July 14, 2017 04:13
最近触ってみたいなと思ったクールなテクノロジ
@nobuh
nobuh / equation_in_jupyter.ipynb
Last active June 21, 2018 21:23
jupyter notebook で数式
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@nobuh
nobuh / python_cron.md
Created June 21, 2017 01:11
Python3 の ConfigParser を使うスクリプトを cron で使う場合

このようにかかれている python スクリプトを cron 実行すると config file が読めずにエラーになる

conf_file = "../settings.ini"
config = configparser.ConfigParser()

try:
    config.read(conf_file)

cron の実行時にカレントディレクトリをスクリプトの場所に変更してはくれないため .. が期待とは違う場所になる

@nobuh
nobuh / disable_tap.sh
Last active May 2, 2016 08:31
Disable tap on touchpad of Lubuntu
#!/bin/sh
# Disable tap on touchpad
synclient TapButton1=0
synclient TapButton2=0
synclient TapButton3=0
@nobuh
nobuh / .minttyrc
Created April 27, 2016 03:09
My minttyrc
BoldAsFont=yes
FontHeight=14
Columns=80
Rows=40
Locale=ja_JP
Charset=UTF-8
FontSmoothing=default
BoldAsColour=yes
AllowBlinking=yes
Font=Consolas
@nobuh
nobuh / how_to_find_good_engineer.md
Last active March 6, 2024 10:23
よいエンジニアの見分け方

よいエンジニアの見分け方

よいエンジニアかどうか見分ける、たった一つの方法で必要にして十分なもの。それは

謙虚さ

何も謙虚な態度をつねにしてなきゃいけない、という訳じゃない。若者特有の「俺最高!」な全能感に突き動かされることもあるだろうし、そうした強さも競争を勝ち抜くために必要なのも事実。

でも、職人的な仕事、とくにエンジニアに関してはこの「謙虚さ」が今までも、そしてこれからももっとも大切な資質になる。これからそれを詳しく解説しよう。

@nobuh
nobuh / check_username.php
Created April 6, 2016 06:42
Yo の API 練習
<?php
$url = 'http://api.justyo.co/check_username/';
$data = array('api_token' => '********KEY*********', 'username' => '*****');
$options = array(
'http' => array(
'header' => "Content-type: application/x-www-form-urlencoded\r\n",
'method' => 'GET',
'content' => http_build_query($data),
),