Skip to content

Instantly share code, notes, and snippets.

View tatsuyah's full-sized avatar
๐Ÿ๏ธ
playing

hata tatsuyah

๐Ÿ๏ธ
playing
View GitHub Profile
@robertpainsi
robertpainsi / commit-message-guidelines.md
Last active October 27, 2025 18:09
Commit message guidelines

Commit Message Guidelines

Short (72 chars or less) summary

More detailed explanatory text. Wrap it to 72 characters. The blank
line separating the summary from the body is critical (unless you omit
the body entirely).

Write your commit message in the imperative: "Fix bug" and not "Fixed
bug" or "Fixes bug." This convention matches up with commit messages
@posener
posener / go-kit.md
Last active February 23, 2024 21:35
Why I Recommend to Avoid Using the go-kit Library

Why I Recommend to Avoid Using the go-kit Library

There is a trending 'microservice' library called go-kit. I've been using the go-kit library for a while now. The library provide a lot of convenience integrations that you might need in your service: with service discovery with Consul, distributed tracing with Zipkin, for example, and nice logic utilities such as round robin client side load balancing, and circuit breaking. It is also providing a way to implement communication layer, with support of RPC and REST.

@mono0926
mono0926 / commit_message_example.md
Last active September 5, 2025 05:27
[่ปข่ผ‰] gitใซใŠใ‘ใ‚‹ใ‚ณใƒŸใƒƒใƒˆใƒญใ‚ฐ/ใƒกใƒƒใ‚ปใƒผใ‚ธไพ‹ๆ–‡้›†100
@karpathy
karpathy / min-char-rnn.py
Last active October 23, 2025 16:55
Minimal character-level language model with a Vanilla Recurrent Neural Network, in Python/numpy
"""
Minimal character-level Vanilla RNN model. Written by Andrej Karpathy (@karpathy)
BSD License
"""
import numpy as np
# data I/O
data = open('input.txt', 'r').read() # should be simple plain text file
chars = list(set(data))
data_size, vocab_size = len(data), len(chars)
@chantastic
chantastic / on-jsx.markdown
Last active May 13, 2025 12:04
JSX, a year in

Hi Nicholas,

I saw you tweet about JSX yesterday. It seemed like the discussion devolved pretty quickly but I wanted to share our experience over the last year. I understand your concerns. I've made similar remarks about JSX. When we started using it Planning Center, I led the charge to write React without it. I don't imagine I'd have much to say that you haven't considered but, if it's helpful, here's a pattern that changed my opinion:

The idea that "React is the V in MVC" is disingenuous. It's a good pitch but, for many of us, it feels like in invitation to repeat our history of coupled views. In practice, React is the V and the C. Dan Abramov describes the division as Smart and Dumb Components. At our office, we call them stateless and container components (view-controllers if we're Flux). The idea is pretty simple: components can't

@aphlysia
aphlysia / stfuawsc_itg_advent2014_4_conda.md
Last active June 16, 2023 01:05
conda ใง python ใฎ็’ฐๅขƒใคใใ‚Š

ใ“ใ‚Œใฏ stfuawsc_itg Advent Calendar 2014 4ๆ—ฅ็›ฎใฎ่จ˜ไบ‹ใงใ™ใ€‚

ใƒ—ใƒญใ‚ฐใƒฉใƒŸใƒณใ‚ฐใ‚’ใ—ใฆใ„ใ‚‹ใจใ€ใ„ใ‚ใ„ใ‚ใชใƒใƒผใ‚ธใƒงใƒณใฎ็’ฐๅขƒใ‚’่กŒใฃใŸใ‚ŠๆฅใŸใ‚Šใ—ใŸใใชใ‚‹ใ“ใจใŒใ‚ใ‚Šใพใ™ใ€‚ใŸใจใˆใฐ่จ€่ชžๅ‡ฆ็†ใฏ python 2 ใธ nltk ใ‚’ๅ…ฅใ‚Œใฆใ‚„ใ‚ŠใŸใ„ใ€‚ใ‚ทใƒŸใƒฅใƒฌใƒผใ‚ทใƒงใƒณใฏ python 3 ใธ numpy ๅ…ฅใ‚Œใฆใ‚„ใ‚ŠใŸใ„ใจใ‹ใ€‚
ใใ†ใ„ใ†ใตใ†ใซ่จ€่ชžใ‚„ใƒขใ‚ธใƒฅใƒผใƒซใฎใƒใƒผใ‚ธใƒงใƒณใ‚’ใ„ใ‚ใ„ใ‚็ต„ๅˆใ›ใŸ็’ฐๅขƒใ‚’ๆฐ—่ปฝใซๅˆ‡ใ‚Šๆ›ฟใˆใ‚‰ใ‚Œใ‚‹ใจไพฟๅˆฉใงใ™ใ€‚
ๅฎŸ้š›ใใ†ใ„ใ†ใ“ใจใ‚’ๅฏ่ƒฝใซใ™ใ‚‹ใƒ„ใƒผใƒซใฏใŸใใ•ใ‚“ใ‚ใ‚Šใพใ™ใ€‚virtualenv, pyenv ใชใฉใ€‚
ใ“ใ“ใง็ดนไป‹ใ™ใ‚‹ conda ใจใ„ใ†ใƒ„ใƒผใƒซใ‚‚ใใฎ1ใคใงใ™ใ€‚
virtualenv ใชใฉใงใฏใ€ใƒขใ‚ธใƒฅใƒผใƒซใ‚’ๅ…ฅใ‚Œใ‚‹ใจใใฏ้€šๅธธใฎ python ใฎๆตๅ„€ใงใ‚คใƒณใ‚นใƒˆใƒผใƒซใ™ใ‚‹ใฎใงใ™ใŒใ€ใ‚คใƒณใ‚นใƒˆใƒผใƒซใŒใ†ใพใใ„ใ‹ใชใ„ใจใ„ใ†ใฎใฏใ‚ˆใใ‚ใ‚‹ใ“ใจใงใ™ใ€‚conda ใงใฏใ‚ใ‚‰ใ‹ใ˜ใ‚ใƒ“ใƒซใƒ‰ใ•ใ‚ŒใŸใ‚‚ใฎใ‚’ๅ…ฅใ‚Œใ‚‹ใฎใงใ€ๆฅฝใงใ™ใ€‚ใ‚‚ใกใ‚ใ‚“ conda ใซ็”จๆ„ใ•ใ‚Œใฆใ„ใชใ„ใƒขใ‚ธใƒฅใƒผใƒซใ‚‚ใ‚ใ‚Šใพใ™ใŒใ€ใใ†ใ„ใ†ใฎใฏ pip ็ญ‰้€šๅธธใฎๆ–นๆณ•ใงๅ…ฅใ‚Œใฆๅ…ฑๅญ˜ใงใใพใ™ใ€‚

ใงใฏใ•ใฃใใ conda ใง python ใฎ็’ฐๅขƒใ‚’ไฝœใ‚‹ๆ–นๆณ•ใงใ™ใ€‚

@ancestral
ancestral / ASCII JS Keyboard Map
Created July 6, 2012 04:33
ASCII keyboard map for JavaScript keycodes (Mac)
/*
* JavaScript Keyboard Map (Mac layout)
*
*
* escโ€”โ€” F1โ€”โ€”โ€” F2โ€”โ€”โ€” F3โ€”โ€”โ€” F4โ€”โ€”โ€” F5โ€”โ€”โ€” F6โ€”โ€”โ€” F7โ€”โ€”โ€” F8โ€”โ€”โ€” F9โ€”โ€”โ€” F10โ€”โ€” F11โ€”โ€” F12โ€”โ€” F13โ€”โ€”โ€”โ€”โ€”+
* | 27 | 112 | 113 | 114 | 115 | 116 | 117 | 118 | 119 | 120 | 121 | 122 | 123 | ??? |
* ` โ€”โ€”โ€” 1โ€”โ€”โ€”โ€” 2โ€”โ€”โ€”โ€” 3โ€”โ€”โ€”โ€” 4โ€”โ€”โ€”โ€” 5โ€”โ€”โ€”โ€” 6โ€”โ€”โ€”โ€” 7โ€”โ€”โ€”โ€” 8โ€”โ€”โ€”โ€” 9โ€”โ€”โ€”โ€” 0โ€”โ€”โ€”โ€” - โ€”โ€”โ€” = โ€”โ€”โ€” deleteโ€”โ€”+
* | 192 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 |
* tabโ€”โ€”โ€”โ€” Qโ€”โ€”โ€”โ€” Wโ€”โ€”โ€”โ€” Eโ€”โ€”โ€”โ€” Rโ€”โ€”โ€”โ€” Tโ€”โ€”โ€”โ€” Yโ€”โ€”โ€”โ€” Uโ€”โ€”โ€”โ€” Iโ€”โ€”โ€”โ€” Oโ€”โ€”โ€”โ€” Pโ€”โ€”โ€”โ€” [ โ€”โ€”โ€” ] โ€”โ€”โ€” \ โ€”โ€”โ€”โ€”+
* | 9 | 81 | 87 | 69 | 82 | 84 | 89 | 85 | 73 | 79 | 80 | 219 | 221 | 220 |