Skip to content

Instantly share code, notes, and snippets.

View YuzuRyo61's full-sized avatar
🌲

YuzuRyo61

🌲
View GitHub Profile
@YuzuRyo61
YuzuRyo61 / ril_export_csv.py
Created February 26, 2024 03:08
Pocketでエクスポートしたデータを、CSVに加工するPythonスクリプト
import sys
import os
import datetime
import csv
from html.parser import HTMLParser
EXPORTED_FILE_NAME = "ril_export.html"
OUTPUT_FILE_NAME = "ril_export_csv.csv"
@YuzuRyo61
YuzuRyo61 / main.gd
Created November 10, 2023 16:02
Misskey streaming client for Godot game engine
extends Node2D
## Misskey server address
@export var misskey_server_address: String = "misskey.io"
var _client = WebSocketPeer.new()
func _ready():
_client.connect_to_url("wss://%s/streaming" % misskey_server_address)
@YuzuRyo61
YuzuRyo61 / regloss.cs
Last active September 4, 2023 23:52
The source code in "ReGLOSS '瞬間ハートビート' OFFICIAL MV" ( https://youtu.be/Ix_uXN_ybxc ) [UNOFFICIAL gist]
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace debut
{
class Program
{
@YuzuRyo61
YuzuRyo61 / sb2txt.py
Created May 13, 2023 04:31
Scrapbox exported data convert to text files (Abridged edition)
#!/usr/bin/env python3
import argparse
import logging
import os
import sys
import json
import re
logging.basicConfig(
level=logging.INFO,
@YuzuRyo61
YuzuRyo61 / app.test.ts
Created November 27, 2022 11:56
DenoとHonoでWebアプリ、ユニットテストも軽く書いたやつ
import { assertEquals } from 'std/testing/asserts.ts';
import { app } from './app.ts';
Deno.test('Should be HTTP status is 200', async () => {
// Request URL must be an absolute path
const res = await app.request('http://localhost:8000/');
// assert
assertEquals(res.status, 200);
});
@YuzuRyo61
YuzuRyo61 / ByaccoID.py
Last active April 13, 2022 12:51
勢いだけで作ったID生成器
import time
import random
import datetime # 生成器では使用しない
class ByaccoID:
def __init__(
self,
timestamp: int,
random_seq: int,
@YuzuRyo61
YuzuRyo61 / main.html
Created March 6, 2022 13:05
Improvisation work at about 1 hour (Using tailwindcss) https://play.tailwindcss.com/kD7TbSJha9
<div class="card">
<div class="card-header">
<img class="card-header-image" alt="acct" src="https://avatars.githubusercontent.com/u/18282413?v=4">
<div class="card-header-name">
<h3>Display name</h3>
<small>@username</small>
</div>
</div>
<div class="card-body">
<p>Text here text here</p>
@YuzuRyo61
YuzuRyo61 / actor.py
Created March 6, 2022 03:48
Python classmethod practice
from typing import Optional
from pprint import pp
class Actor:
__id: int
name: Optional[str] = None
description: Optional[str] = None
@property
@YuzuRyo61
YuzuRyo61 / .vimrc
Last active December 3, 2021 09:02
My configuration file for vim
set number
set nowritebackup
set nobackup
set whichwrap=b,s,h,l,<,>
set cursorline
set hlsearch
set incsearch
set smartindent
set laststatus=2
set wildmenu