Skip to content

Instantly share code, notes, and snippets.

View naoyashiga's full-sized avatar

Naoya / nao-chan / naoya-tech naoyashiga

View GitHub Profile
@naoyashiga
naoyashiga / create_many_files_on_Mac.sh
Created February 7, 2021 06:59
シェルスクリプトを用いてデスクトップに大量の無害のファイルを生成する。
# 1. デスクトップフォルダに移動
cd ~/Desktop/
# 2. ファイル生成コマンドを実行
for i in {1..200}; do echo "yo" > hack$i.html; done
# 3. 一括ファイル削除
rm hack*.html
@naoyashiga
naoyashiga / main.py
Created October 23, 2022 00:08
オノマトペ一覧取得
"""
雑です。日本語として成立していないものも出力されます。
5600個くらい出ます。
"""
excludes = 'ぁぃぅぇぉゔゕゖゐゑゎ'
hiragana = [chr(i) for i in range(ord("ぁ"), ord("ゖ")+1) if chr(i) not in excludes]
print("".join(hiragana))
count = 1
for first in hiragana:
@naoyashiga
naoyashiga / ColorCodes.js
Created May 25, 2023 23:59
Color Codes Game
import React, {useState, useEffect} from "react";
export const ColorCodes = () => {
const [colors, setColors] = useState([]);
const [correctColor, setCorrectColor] = useState("");
const [isCorrect, setIsCorrect] = useState(false);
const [isShowResult, setIsShowResult] = useState(false);
@naoyashiga
naoyashiga / actions-diff-display-action.yaml
Created February 26, 2025 04:44
GitHub Organization 内にあるパブリックリポジトリと同名のリポジトリが新たに作られていないかを自動チェック
name: "Diff Display and Update Cache"
description: "Compare current top5 results with previous cache, display new additions, and update the cache file."
inputs:
currentResults:
description: "The JSON string of current top5 results from malware-check action."
required: true
orgName:
description: "The GitHub organization name."
required: true