Skip to content

Instantly share code, notes, and snippets.

View sr8e's full-sized avatar
🎳
Full of temptation

しらす sr8e

🎳
Full of temptation
View GitHub Profile

TA2020デジタルアンプ基板v2.1

連絡先: しらす

基板作成のあらまし

  • 2019年夏: 当時使っていた自作のアンプ(リニア)の調子が悪くなってきたため、D級にも手を出してみるか...と、たまたま目に留まったTA2020を購入。千鳥足ICなのでユニバーサル基板で作る気にならず、適当にプリント基板(v1)を設計・発注するも、アンプの調子が良くなってきたため、そのまま2年ほど作らずに放置
  • 2021年春: アンプの調子が再度悪化したため組み立てを決意したが、基板の設計が悪かったためノイズを吐き散らす不良品であることが判明。改良版(v2)を設計して無事動作するものが出来上がる
  • 2024年夏: C104でコミケ初参加。プリント基板の最小ロットが5枚だったため余っていた4枚を賑やかし程度にスペースに置いていたところ思いのほか好評、なぜか売り切れる
##### keybinds ######
# change prefix key
unbind-key C-b
set -g prefix C-q
bind C-q send-prefix # send C-q to terminal
# reload settings
bind r source-file ~/.tmux.conf
# split pane
[alias]
tree = log --date=format:'%Y-%m-%d %H:%M:%S' --graph --pretty=format:'%C(auto) %h [%C(green)%ad%C(reset)] %C(ul)%an%C(reset): %s %C(auto)%d'
@sr8e
sr8e / hexmap.py
Last active December 13, 2023 15:15
Hexmap (Tsukuba) distance
import math
from collections import deque
from typing import NamedTuple
import matplotlib.pyplot as plt
class ObliqueVector(NamedTuple):
xi: int
eta: int
@sr8e
sr8e / App.vue
Last active April 12, 2023 16:09
sample of two-way binding using v-model on multiple checkbox component (for Vue 3.x)
<script>
import MultiCheckbox from "./MultiCheckbox.vue"
import MultiCheckboxProp from "./MultiCheckboxProp.vue"
export default {
components: { MultiCheckbox, MultiCheckboxProp },
data(){
return{
checkList: [],
checkListProp: []
}
# bit-reversed increment sample. See: https://mell0w-5phere.net/jaded5phere/2023/03/23/bit-reversed-increment/
import time
def bit_reverse_naive(bits):
table = [0 for _ in range(1 << bits)]
for i in range(1 << bits):
s = 0
for j in range(bits):
if bits > 2 * j:
@sr8e
sr8e / keybase.md
Last active February 7, 2020 08:37

Keybase proof

I hereby claim:

  • I am sr8e on github.
  • I am sr_ on keybase.
  • I have a public key ASBIKOjul0ye2q05Oqz0kAUVQFUyNPN2aGDsrO9oCGBh8go

To claim this, I am signing this object: