Skip to content

Instantly share code, notes, and snippets.

View nobuh's full-sized avatar

Nobuhiro Hatano nobuh

View GitHub Profile
@voluntas
voluntas / index.md
Last active July 10, 2024 02:10
Zig 言語リファレンス
  • これは Zig ドキュメント 0.10.1 を DeepL Pro と ChatGPT を利用して翻訳したものです。
    • 一部 master なモノもあります、ごちゃ混ぜです
  • 自分用に翻訳しています
<?php
const EXIT_SUCCESS = 0;
const EXIT_FAILURE = 0;
const COLUMN_ID_SIZE = 19;
const COLUMN_USERNAME_SIZE = 32;
const COLUMN_EMAIL_SIZE = 80;
const ID_SIZE = COLUMN_ID_SIZE;
@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
@0x4D31
0x4D31 / beautiful_idiomatic_python.md
Last active July 8, 2024 09:36 — forked from JeffPaine/beautiful_idiomatic_python.md
[Beautiful Idiomatic Python] Transforming Code into Beautiful, Idiomatic Python #python

Transforming Code into Beautiful, Idiomatic Python

Notes from Raymond Hettinger's talk at pycon US 2013 video, slides.

The code examples and direct quotes are all from Raymond's talk. I've reproduced them here for my own edification and the hopes that others will find them as handy as I have!

Looping over a range of numbers

for i in [0, 1, 2, 3, 4, 5]:
@nobuh
nobuh / equation_in_jupyter.ipynb
Last active June 21, 2018 21:23
jupyter notebook で数式
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@mrry
mrry / tensorflow_self_check.py
Last active August 24, 2023 17:13
[DEPRECATED] TensorFlow on Windows self-check
# Copyright 2015 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
@nobuh
nobuh / how_to_find_good_engineer.md
Last active March 6, 2024 10:23
よいエンジニアの見分け方

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

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

謙虚さ

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

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

@shyouhei
shyouhei / gist:0b7dab3e75bfbf96f895
Created March 31, 2015 15:26
新社会人の人が留意すべき事項

新社会人に必須である:

  • 勤務先との書面による「労働契約」。業務委託契約等NG。
  • 多寡を問わず毎月払われる給料。遅配等論外である。
  • 健康保険。
  • 労災保険。
  • 雇用保険。
  • 三六協定。
  • 年次有休。
  • 育児休業の制度があり取得者がいる会社に勤務する。
@nobuh
nobuh / nginx.conf
Created August 26, 2014 02:17
Zone Apex / Naked Domain / Root Domain redirect to the www subdomain by nginx
# Zone Apex / Naked Domain / Root Domain redirect to the www subdomain by nginx
# Here is a part of nginx config file
#
# For example on Debian 6 (Squeeze)
# /etc/nginx/site-available/default
#
server {
listen 80; ## listen for ipv4
listen [::]:80 default ipv6only=on; ## listen for ipv6