Skip to content

Instantly share code, notes, and snippets.

View nakasyou's full-sized avatar

Shotaro Nakamura nakasyou

View GitHub Profile
@nakasyou
nakasyou / 常用漢字表_読み強化.json
Created July 7, 2024 06:10
常用漢字表_読み強化.json
{
"亜": {
"readings": [
{
"reading": "ア",
"examples": [
"亜流",
"亜麻",
"亜熱帯"
],
{
"亜": [
"ア"
],
"哀": [
"アイ",
"あわれ",
"あわれむ"
],
"挨": [
@nakasyou
nakasyou / a.js
Last active June 29, 2024 11:51
a
function reqListener() {
console.log(this.responseText);
}
const req = new XMLHttpRequest();
req.addEventListener("load", reqListener);
req.open("GET", "https://httpbin.org/get");
req.send();
var last_id = "8999999999999999999";
init = () => {
let path = location.pathname.split("/"),
pathlist = ["home", "explore", "search", "notifications", "messages", "i"];
if (path.length != 2 || pathlist.includes(path[1])) {
alert("ユーザーのページを開いてください");
return;
}
screen_name = path[1];
https://nanoha.pages.dev/app/download?url=https://api.end2end.tech/download?id=f5d466698626
@nakasyou
nakasyou / miduhara_ippei.ts
Last active June 8, 2024 11:58
水原n平
/**
* Calc M(n)
* @param n number
*/
export const npei = (n: number) => n * 6200000000
@nakasyou
nakasyou / tailwind.css
Last active June 2, 2024 03:46
tailwind postcss
@tailwind base;
@tailwind components;
@tailwind utilities;
@nakasyou
nakasyou / eruda.ts
Created June 2, 2024 03:45
eruda vite
if (import.meta.env.DEV) {
const script = document.createElement('script')
script.src = 'https://cdn.jsdelivr.net/npm/eruda'
// @ts-ignore global eruda
script.onload = () => globalThis.eruda.init()
document.body.append(script)
}
@nakasyou
nakasyou / favorite-fonts.md
Created May 21, 2024 11:00
Google Fontsお気に入り
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.