Skip to content

Instantly share code, notes, and snippets.

View SpeedxPz's full-sized avatar
🎯
Focusing

Spz.Takumi SpeedxPz

🎯
Focusing
View GitHub Profile
{
"client_id": "myclient",
"client_name": "MyApp",
"client_secret": "mysecret",
"grant_types": ["authorization_code", "refresh_token"],
"redirect_uris": ["http://localhost:1234/callbacks"],
"response_types": ["code", "id_token"],
"scope": "offline users.write users.read users.edit users.delete openid",
"token_endpoint_auth_method": "client_secret_post"
}
@SpeedxPz
SpeedxPz / subtitle.go
Created January 23, 2023 05:45
Convert bilibili json subtitle to srt
package subtitle
import (
"encoding/json"
"errors"
"fmt"
"io/ioutil"
"os"
"time"
)
@SpeedxPz
SpeedxPz / rename.js
Created January 23, 2023 05:37
Node.js script rename the anime filename order by original name to format 'SXXEXX.XXX'
var fs = require('fs');
const SeasonNum = 1 // Change season Number
const baseDir = `./Season ${pad(SeasonNum, 2)}/`;
var files = fs.readdirSync(baseDir);
const prefix = `S${pad(SeasonNum, 2)}`
let counter = 1;
files.forEach(element => {
const destName = `${prefix}E${pad(counter, 2)}`;
const ext = element.split('.').pop();
apiVersion: apps/v1
kind: Deployment
metadata:
name: nginx-deployment
spec:
selector:
matchLabels:
app: nginx
replicas: 1
template:
@SpeedxPz
SpeedxPz / chatbox.css
Last active January 10, 2020 19:17
Ryosz HTML
@import url(https://fonts.googleapis.com/css?family=Roboto:700);
* {
box-sizing: border-box;
}
html, body {
height: 100%;
overflow: hidden;
}
@SpeedxPz
SpeedxPz / 10060505.log
Created September 11, 2019 15:59
Server Resource Version : 10060505
[ASSETBUNDLES](36300/75258) Downloading -> 3d_live.unity3d [FIX] Completed
[ASSETBUNDLES](37649/75258) Downloading -> 3d_mirrorscan_pattern_0060.unity3d [FIX] Completed
[ASSETBUNDLES](68476/75258) Downloading -> chara_635_00_face_08.unity3d [FIX] Completed
[BLOB](74938/75259) Downloading -> master.mdb [FIX] Completed
@SpeedxPz
SpeedxPz / 10060500.log
Created September 11, 2019 06:11
Server Resource Version : 10060500
[ASSETBUNDLES](154/75258) Downloading -> live_bg2d_bg_live_6003.unity3d [NEW] Completed
[ASSETBUNDLES](2287/75258) Downloading -> 3d_cyalume_m203_hq.unity3d [NEW] Completed
[ASSETBUNDLES](9458/75258) Downloading -> card_100723_sm.unity3d [NEW] Completed
[ASSETBUNDLES](9459/75258) Downloading -> card_100724_sm.unity3d [NEW] Completed
[ASSETBUNDLES](10816/75258) Downloading -> card_300719_sm.unity3d [NEW] Completed
[ASSETBUNDLES](10817/75258) Downloading -> card_300720_sm.unity3d [NEW] Completed
[ASSETBUNDLES](12972/75258) Downloading -> vr_music_jacket_3203.unity3d [NEW] Completed
[ASSETBUNDLES](12973/75258) Downloading -> vr_music_jacket_3203_mini.unity3d [NEW] Completed
[ASSETBUNDLES](15215/75258) Downloading -> banner_bnr_601100.unity3d [FIX] Comp
@SpeedxPz
SpeedxPz / nation_blue.csv
Created April 22, 2019 03:33
Nation Blue subtitle timing
time lyrics size
0
10.64 諦める事無く 前を向いて 自分信じてね
16.06 いつもキミを見てる
23.62
28.83 晴れ渡る空を ビルの谷間に眺め
34.38 一人 とりとめも無く いつもと違う道へ
41.06 佇むことも そして振り返ることも無く
46.76 キミの近く そう 付いて行きたいんだ
52.50 どこまでも連れて行って 青いこの輝いた道を
@SpeedxPz
SpeedxPz / beginRequest.cs
Last active August 6, 2016 07:50
Fate/GO Login Top Code
// TopLoginRequest
public new void beginRequest()
{
base.addBaseField();
TopLoginRequest.UserState userState = TopLoginRequest.UserState.Flag1;
using (AndroidJavaClass androidJavaClass = new AndroidJavaClass("com.unity3d.player.UnityPlayer"))
{
using (AndroidJavaObject @static = androidJavaClass.GetStatic<AndroidJavaObject>("currentActivity"))
{
using (AndroidJavaObject androidJavaObject = @static.Call<AndroidJavaObject>("getPackageManager", new object[0]))
@SpeedxPz
SpeedxPz / DeviceManager.cs
Last active November 12, 2015 09:41
Idolm@ster CG Starlight Stage, Emulator Check Function
public bool isEmulator()
{
Process[] processes = Process.GetProcesses();
Process[] array = processes;
for (int i = 0; i < array.Length; i++)
{
Process process = array[i];
if (process.ProcessName.Contains("com.bluestacks"))
{
return true;