Skip to content

Instantly share code, notes, and snippets.

View ryoppippi's full-sized avatar
🪀
yoyo

ryoppippi ryoppippi

🪀
yoyo
View GitHub Profile
export const requireComment = {
meta: {
type: "suggestion",
docs: {
description: "useEffectにはコメントでの説明が必須です。",
},
schema: [],
messages: {
requireCommentOnUseEffect: `useEffectにはコメントでの説明が必須です。
[
{
"word": "Asshole",
"kana": "アスホール",
"meaning": "いやな奴(Ass=お尻、Hole=穴)",
"notice": "「うざい野郎」「ろくでなし」"
},
{
"word": "あばずれ",
"kana": "あばずれ",
@HugeLetters
HugeLetters / router-gen.ts
Last active September 6, 2024 01:46
SvelteKIt type-safe router
import { watch } from 'chokidar';
import { writeFile } from 'fs/promises';
import { glob } from 'glob';
import { format } from 'prettier';
const pageGlobMatcher = './src/routes/**/+page?(@)*.svelte';
export default async function generateRoutes() {
const paths = await getPaths();
const routes = paths.map(parsePath);
@laiso
laiso / main.py
Last active June 14, 2023 14:09
ダジャレを送ると採点と評価をしてくれるプログラム https://zenn.dev/laiso/articles/b516dc215a2e87
import sys
import openai
import json
def run_conversation(input):
content = f"""
ダジャレの面白さをAからEに評価して、評価の理由を論理的にコメントします。
ダジャレ:{input}
@ityonemo
ityonemo / test.md
Last active December 8, 2025 03:51
Zig in 30 minutes

A half-hour to learn Zig

This is inspired by https://fasterthanli.me/blog/2020/a-half-hour-to-learn-rust/

Basics

the command zig run my_code.zig will compile and immediately run your Zig program. Each of these cells contains a zig program that you can try to run (some of them contain compile-time errors that you can comment out to play with)

/*
Copyright 2012 Jun Wako <[email protected]>
Copyright 2015 Jack Humbert
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 2 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
@mpppk
mpppk / clean_architecture.md
Last active December 5, 2025 07:33
クリーンアーキテクチャ完全に理解した

2020/5/31追記: 自分用のメモに書いていたつもりだったのですが、たくさんのスターを頂けてとても嬉しいです。
と同時に、書きかけで中途半端な状態のドキュメントをご覧いただくことになっており、大変心苦しく思っています。

このドキュメントを完成させるために、今後以下のような更新を予定しています。

  • TODO部分を埋める
  • 書籍を基にした理論・原則パートと、実装例パートを分割
    • 現在は4層のレイヤそれぞれごとに原則の確認→実装時の課題リスト→実装例という構成ですが、同じリポジトリへの言及箇所がバラバラになってしまう問題がありました。更新後は、実装時の課題リストを全て洗い出した後にまとめて実装を確認する構成とする予定です。

2021/1/22追記:

@korakot
korakot / record.py
Last active April 24, 2025 14:08
Record audio in Colab using getUserMedia({ audio: true })
# all imports
from IPython.display import Javascript
from google.colab import output
from base64 import b64decode
from io import BytesIO
!pip -q install pydub
from pydub import AudioSegment
RECORD = """
const sleep = time => new Promise(resolve => setTimeout(resolve, time))
@kazuki
kazuki / rnnoise.py
Created November 25, 2017 01:39
Python Bindings for RNNoise(https://github.com/xiph/rnnoise/)
from ctypes import byref, c_float, c_void_p, CDLL
class RNNoise(object):
def __init__(self):
self._native = CDLL('./librnnoise.so')
self._native.rnnoise_process_frame.restype = c_float
self._native.rnnoise_process_frame.argtypes = (
c_void_p, c_void_p, c_void_p)
self._native.rnnoise_create.restype = c_void_p
@Kuniwak
Kuniwak / kuniwak-resume.md
Last active July 3, 2025 14:49
Kuniwak (Yuki Kokubun) の職務経歴書

自己紹介

SET(Software Engineer in Test) のグループの元マネージャ。専門は ソフトウェアテスト/Lint/Git。実務経験のあるプログラミング言語は JavaScript, TypeScript, Swift, C#, Go, Isabelle, OCaml, F#(コードは OSS を参照)。

(2025/06現在)転職活動をしています。

提供できる価値