Skip to content

Instantly share code, notes, and snippets.

View chalkygames123's full-sized avatar
❌
Uncaught TypeError: Cannot read property 'status' of undefined

Takuya Fukuju chalkygames123

❌
Uncaught TypeError: Cannot read property 'status' of undefined
  • Rhelixa Inc.
  • Hedonic Treadmill, Japan
  • 08:55 (UTC +09:00)
View GitHub Profile
@chalkygames123
chalkygames123 / Install agent skills with GitHub CLI.yaml
Created September 3, 2026 04:25
Warp Drive Workflows — Install agent skills with GitHub CLI
---
name: Install agent skills with GitHub CLI
command: "gh skill install {{repository}} --dir ~/.agents/skills/"
description: Installs agent skills from the specified repository to the standard user scope directory.
arguments:
- name: repository
arg_type: Text
description: "The GitHub repository in `OWNER/REPO` format to install the skills from."
default_value: ~
tags: []
@chalkygames123
chalkygames123 / Update all shadcn_ui components.yaml
Created September 3, 2026 04:22
Warp Drive Workflows — Update all shadcn/ui components
---
name: Update all shadcn/ui components
command: "nlx shadcn add --yes --overwrite --cwd apps/{{project}}/ $(find apps/{{project}}/src/components/ui/ -type f -exec basename -a -s .tsx {} +)"
description: ~
arguments:
- name: project
arg_type: Text
description: ~
default_value: ~
tags: []
const closedStateIconSelector = [
'svg.octicon-issue-closed',
'svg.octicon-git-pull-request-closed',
'svg.octicon-git-merge',
].join(', ');
const selected = [];
const skipped = [];
for (const checkbox of document.querySelectorAll('input[type="checkbox"]')) {
@chalkygames123
chalkygames123 / generate-oxlint-recommended.ts
Last active June 12, 2026 12:30
Generates Oxlint-ready recommended rule maps for supported plugins.
import globals from 'globals';
import { defineConfig } from 'oxlint';
export default defineConfig({
categories: {
correctness: 'deny',
nursery: 'warn',
pedantic: 'allow',
perf: 'warn',
restriction: 'deny',
@chalkygames123
chalkygames123 / stringify-error-chain.ts
Created February 5, 2026 17:00
Utility to recursively stringify and error object with causes
export const stringifyErrorChain = (error: unknown, level = 0) => {
let current: unknown = error;
const lines: string[] = [];
while (current instanceof Error) {
const indent = ' '.repeat(level);
lines.push(`${indent}${current.name}: ${current.message}`);
current = current.cause;
@chalkygames123
chalkygames123 / disable-all-transitions.css
Last active January 29, 2026 03:50
CSS to disable all transitions
:is(.no-transition, .no-transition *) {
/* biome-ignore lint/complexity/noImportantStyles: because it is truly necessary */
transition: none !important;
&::before,
&::after {
/* biome-ignore lint/complexity/noImportantStyles: because it is truly necessary */
transition: none !important;
}
}
@chalkygames123
chalkygames123 / is-retryable-http-status-code.ts
Last active January 29, 2026 03:53
Utility to determine whether an HTTP response status code indicates a transient error that can be retried
const RETRYABLE_HTTP_STATUS_CODES = new Set([
408, 425, 429, 500, 502, 503, 504,
]);
/**
* Determines whether an HTTP response status code indicates a transient error that can be retried.
*
* @returns A boolean indicating whether the status code indicates a transient error.
*/
export const isRetryableHttpStatusCode = (code: number): boolean => {
@chalkygames123
chalkygames123 / conventional-commits-regexp.txt
Last active October 21, 2025 23:46
Regexp matching Conventional Commits for a metadata restriction
^(?<type>build|chore|ci|docs|feat|fix|perf|refactor|revert|style|test)(?<scope>\([\w\-]+(?:[,\/\\] [\w\-]+)*\))?!?:
'use strict';
// 参照: https://tama-san.com/resolve-kanji/
const table = {
'⺃': '乚',
'⺅': '亻',
'⺇': '𠘨',
'⺉': '刂',
'⺋': '㔾',
'⺍': '𭕄',