Skip to content

Instantly share code, notes, and snippets.

View aiya000's full-sized avatar
🐶
Inu

aiya000 aiya000

🐶
Inu
View GitHub Profile
@aiya000
aiya000 / auth-user.ts
Last active February 19, 2021 12:40
Getting an access token of VRChat API. and then getting friend list using it. VRChat APIでアクセストークンを使って、フレンドを取得するやつ。
import axios from 'axios'
function isThatArray<T>(x: unknown, p: (a: unknown) => a is T): x is Array<T> {
return Array.isArray(x) && x.every(p)
}
function isString(x: unknown): x is string {
return typeof x === 'string'
}
@upbit
upbit / README.md
Last active May 9, 2025 17:15 — forked from ZipFile/README.md
Pixiv OAuth Flow (with Selenium)

Retrieving Auth Token (with Selenium)

  1. Setup, install Selenium/ChromeDriver
pip install selenium
# download chromedriver from https://chromedriver.storage.googleapis.com/index.html?path=91.0.4472.101/
# eg: wget https://chromedriver.storage.googleapis.com/91.0.4472.101/chromedriver_mac64.zip && unzip chromedriver_mac64.zip
@aiya000
aiya000 / .gitignore
Last active September 1, 2024 09:31
.gitignore for VRChat avatar projects
# Created by https://www.toptal.com/developers/gitignore/api/unity
# Edit at https://www.toptal.com/developers/gitignore?templates=unity
### Unity ###
# This .gitignore file should be placed at the root of your Unity project directory
#
# Get latest from https://github.com/github/gitignore/blob/master/Unity.gitignore
#/[Ll]ibrary/
/[Tt]emp/
@aiya000
aiya000 / config\Launcher.json
Last active July 13, 2020 15:48
Record&Replay VRC With Xbox Game bar. (The origin is https://booth.pm/ja/items/2026998)
{
"App1": {
"ApplicationName": "Record VRC With Xbox Game Bar",
"FilePath": "recordVRC.bat",
"WorkingDirectory": "./Scripts",
"Arguments": "",
"StartupDialogMainText": "Record VRC with Xbox Game Bar?",
"StartupDialogSubText": "押すごとに録画開始/録画終了を行う",
"MinimumLaunch": true
},
@shadero
shadero / getName.py
Last active February 24, 2025 23:16
私の名前はこのスクリプトで作りました。
# MIT LICENSE: Copyright (c) 2020, yanorei32 All rights reserved.
import random
base = list("でっどぷろとたいぷえちえちしすこんしゃっきん")
def getName(length=4):
return ''.join([random.choice(base) for _ in range(length)])
def main():
for _ in range(200):
@uhooi
uhooi / Makefile
Last active February 8, 2020 15:44
Makefile for Re:VIEW
REVIEW_VERSION := 4.0
REVIEW_CONFIG_FILE ?= config.yml
REVIEW_OUTPUT_TYPE ?= pdf
REVIEW_BOOKNAME := Foo
.DEFAULT_GOAL := help
.PHONY: help
help:
@grep -E '^[a-zA-Z_-]+:.*?# .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":[^#]*? #| #"}; {printf "%-18s%s\n", $$1 $$3, $$2}'
@nemasu
nemasu / virus_scan.sh
Last active February 24, 2025 16:35
Progress for clamdscan.
#!/usr/bin/bash
function show_progress() {
echo -ne "\r"
echo -n "`echo "scale=5; ($count / $total)*100" | bc`"
}
path="/"
if [ -n "$1" ]; then
@esperecyan
esperecyan / VRChatCrossGit.cs
Last active March 14, 2021 09:38
『VRChatCrossGit.cs』 Sync two local Unity projects using Git. Put this script into “Assets/Editor” folder. / Gitを利用してローカルの2つのUnityプロジェクトを同期します。使い方: https://gitlab.com/vrc-gitcommitter/wiki/-/wikis/%E3%80%90VRChat%E3%80%91%E7%B6%99%E7%B6%9A%E7%9A%84%E3%81%AA%E3%82%AF%E3%83%AD%E3%82%B9%E3%83%97%E3%83%A9%E3%83%83%E3%83%88%E3%83%95%E3%82%A9%E3%83%BC%…
using System;
using System.Collections.Generic;
using System.IO;
using System.Text;
using System.Text.RegularExpressions;
using System.Diagnostics;
using System.ComponentModel;
using UnityEngine;
using UnityEditor;
@khibino
khibino / Yoneda.agda
Last active February 21, 2023 03:03
Yoneda Lemma Proof under Haskell like Functor
module Yoneda where
open import Function.Base using (_∘_)
open import Relation.Binary.PropositionalEquality.Core using (_≡_)
{- specialized Morphism to Haskell function,
specialized Functor to Haskell Functor,
Proof of Yoneda Lemma -}
{- 射を Haskell の関数に、
関手を Haskell の Functor に限定した場合の
@aiya000
aiya000 / Test.re
Last active September 8, 2019 09:26
会話風「キャラクター + ふきだし」 in Re:VIEW css-typesetting https://gyazo.com/163677e435eef1bcac18ca034dc1112e
= 始まり
静寂な朝。
白基調のログハウス、高さ5メートル、風がよく通った部屋。
青くて白い、春の空。
//talkright[mu-smile]{
お風呂上がったよ〜。
//}