Skip to content

Instantly share code, notes, and snippets.

View fumiya-kume's full-sized avatar
⌨️
Typing or Code Reading

kuu(Fumiya Kume) fumiya-kume

⌨️
Typing or Code Reading
View GitHub Profile
@fumiya-kume
fumiya-kume / gist:43f68d041d6c080f143c319fd47545c0
Created May 31, 2025 14:33
Claude Code , setting by Claude Code
{
"permissions": {
"allow": [
"Bash(*)",
"Read(*)",
"Write(*)",
"Edit(*)",
"MultiEdit(*)",
"LS(*)",
"Glob(*)",
def xiaolongbao_fizzbuzz(start: int, end: int) -> None:
"""
start から end までの数字をループし、
3の倍数は '小籠'、5の倍数は '包'、
両方の倍数は '小籠包' を出力します。
"""
for current_number in range(start, end + 1):
if current_number % 15 == 0:
print("小籠包")
elif current_number % 3 == 0:
@fumiya-kume
fumiya-kume / .cursorrules
Created January 11, 2025 14:26
.cursorrules in 2025/01/11
# .cursorrules
# Development Steps for CLI Application in Go
## 1. Overall Design
- Define the purpose and scope of the CLI application.
- Identify the target audience and their needs.
- Outline the main features and functionalities.
- Create a high-level architecture diagram.
- **Improve Specifications/Features:**
@fumiya-kume
fumiya-kume / config.fish
Last active December 12, 2024 15:13
List up the tailscale machines, and ssh it with selected one.
function tssh
ssh (tailscale status --active | awk '/^# / {next} /^[ \t]*$/ {next} /^\-/ {next} {print $2}' | peco | tr "\n" "\0")
end
@fumiya-kume
fumiya-kume / build.sh
Created December 31, 2021 07:17
Skia lib build on macOS
bin/gn gen out/release \
--args="is_official_build=true \
skia_use_libjpeg_turbo_decode=false \
skia_use_libjpeg_turbo_encode=false \
extra_cflags_cc=[\"-frtti\"] \
skia_use_system_libwebp = false \
skia_use_system_harfbuzz = false \
skia_use_system_libpng = false \
is_component_build = false \
"
magick compare -fuzz 5% image1.png image2.png -compose src result.png
public class WavAnalyzer
{
public string riffId;
public uint fileSize;
public string wavId;
public string formatId;
// フォーマットのチャンク数
public uint formatChunkSize;
public ushort format;
// チャネル数
import numpy as np
# 3 layer neural network
class ThreeLayerNetwork:
def sigmoid(self,x):
return 1.0 / (1.0 + np.exp(-np.clip(x, -self.sigmoid_range, self.sigmoid_range)))
def derivative_sigmoid(self,o):
return o * (1.0 - o)
@fumiya-kume
fumiya-kume / なやは
Created October 31, 2018 05:36
かなや
さは
@fumiya-kume
fumiya-kume / ななや
Created October 31, 2018 05:21
あああ
ややや