Skip to content

Instantly share code, notes, and snippets.

View hiroaki-yamamoto's full-sized avatar
🍵
I code while I'm on github. I read books while I'm off github.

Hiroaki Yamamoto hiroaki-yamamoto

🍵
I code while I'm on github. I read books while I'm off github.
View GitHub Profile
@hiroaki-yamamoto
hiroaki-yamamoto / gist:2adb7be972c7eb65b32fc2d9323297ee
Last active July 14, 2024 06:31
僕がプログラミングを一時休止している理由 - 幸福が苦痛に変わる時

僕がOSSプログラミングを一時休止している理由 - 幸福が苦痛に変わる時

対象となる読者: 嫌な気分になりたいマゾヒスト

初めに

僕のプロファイルを見てもらうと分かると思うが、2024年7月現在、OSSでのプログラミングを、ひょっとしたら プログラミングそのものを一時的に止めていると思う。その理由を書いていく。

プログラミングが幸福だった時

人が幸福を感じるときは、その享楽の源泉が自身に存在するか否かで異なる。つまり、例えば君が人と話して

合理化された世界

対象とする読者: メモのためなし。強いて言えば、今の合理的な社会に奇妙な違和感を覚えている人

僕から見た世界

数百年前と比べて世界は極めて合理的な構造となっている。海外の人々との交流のために海を渡り現地に赴く 必要はほぼほぼなくなり、音声通話のために札束を電話会社に投げる必要もなく、単にインターネットを介し てビデオ通話のボタンを押すだけで良い。更にはひと昔前で言う所の「ググる」、「検索する」という行為もAI を使えば必要な情報を即座にまとめてくれる。産業に関しても、農耕技術の発展により飢える事もなくなり、

@hiroaki-yamamoto
hiroaki-yamamoto / settings.json
Last active January 9, 2020 00:08
My vscode's settings.json
{
"workbench.startupEditor": "newUntitledFile",
"workbench.colorTheme": "One Dark Pro",
"editor.fontSize": 12,
"editor.rulers": [80],
"editor.tabSize": 2,
"[python]": {
"editor.tabSize": 4
},
"atomKeymap.promptV3Features": true,
@hiroaki-yamamoto
hiroaki-yamamoto / handle_code_137_docker.md
Last active April 7, 2023 22:10
How to handle exit code 137 on docker

Problem

When you use docker with "multiple commands", you will write scripts like this:

run.sh

#!/bin/sh -e

pip install --upgrade poetry
poetry config settings.virtualenvs.create false
poetry install

[検閲済み]

Keybase proof

I hereby claim:

  • I am hiroaki-yamamoto on github.
  • I am hyamamoto (https://keybase.io/hyamamoto) on keybase.
  • I have a public key ASCo4YSg57cOpZmu7mVJdPQNsKTEv5BRXStahU_KpnIWVwo

To claim this, I am signing this object:

atom-ide-debugger-node@0.7.3
atom-ide-debugger-python@0.7.3
atom-ide-ui@0.13.0
atom-typescript@13.1.0
autocomplete-clang@0.11.5
autocomplete-modules@2.2.6
autocomplete-paths@2.12.2
autocomplete-python@1.12.0
autocomplete-xml@0.11.0
busy-signal@2.0.0
@hiroaki-yamamoto
hiroaki-yamamoto / scp-xxx.md
Last active April 23, 2017 12:40
SCP-XXX

SCP-XXX [名称未設定]

オブジェクトクラス: Thaumiel Keter

特別収容手順

現在、SCP-XXX-1は4次元空間系の時間平面系に対して、財団が確保している時間空間系と干渉しないよ うに収容されています。この収容された時空は臨時時空エリア81/XXXと呼称されます。収容の維持に あたり、スクラントン現実錨(SRA)及びシャンク/アナスタサコス恒常時間溝(XACTS)を空中、海中、 地中を含め、地球上から観測可能な全ての領域に有効範囲外となる領域が生じないように配置されます。 また、地球上及び月の周回軌道上にSRA及びXACTSを搭載した静止軌道衛星を、地球及び月を覆うよう

@hiroaki-yamamoto
hiroaki-yamamoto / base.py
Last active May 12, 2017 07:09
Useful Template View Test Base Classes
#!/usr/bin/env python
# coding=utf-8
"""View test base."""
from urllib import parse
from django.conf import settings
from django.contrib.auth import authenticate, get_user_model, get_user
from django.core.urlresolvers import reverse, resolve
@hiroaki-yamamoto
hiroaki-yamamoto / snippets.cson
Created November 14, 2016 12:57
Atom Snippet
# Your snippets
#
# Atom snippets allow you to enter a simple prefix in the editor and hit tab to
# expand the prefix into a larger code block with templated values.
#
# You can create a new snippet in this file by typing "snip" and then hitting
# tab.
#
# An example CoffeeScript snippet to expand log to console.log:
#