Skip to content

Instantly share code, notes, and snippets.

@esterTion
esterTion / skel2json.php
Last active November 17, 2021 06:19
Some sort of spine skeleton binary data to json converter
<?php
/*
This converter is not finished, and will not be finished.
If you are interested in previewing, use this modified WebGL runtime lib
https://github.com/esterTion/spine-runtimes/tree/3.6/spine-ts
Change the SkeletonJson class to SkeletonBinary to load binary skel data
Usage demo: https://redive.estertion.win/spine/
*/
/*
Some sort of skel binary to json converter
@esterTion
esterTion / webp2png.lua
Last active April 26, 2018 14:05
Serves webp as png for Firefox and Safari
--[[
* @Author: esterTion
* requirement: nginx-lua-module, working ffmpeg
* explaination: webp decode and png encode speed should be quick enough to serve on the fly.
* use under {location ~ .+\.webp$}
* Currently deployed under https://redive.estertion.win/
]]
local ua=string.lower(ngx.var.http_user_agent)
local file=ngx.var.document_root..ngx.var.uri
@esterTion
esterTion / 0_generateMessage
Last active February 22, 2024 05:31
Bang Dream proto dumper
gist title place holder
@esterTion
esterTion / 0_puriconeRtech
Last active April 12, 2018 14:45
redive-tech
shit title place holder
@esterTion
esterTion / applink.m
Last active October 20, 2021 19:34
AppLink for iOS 9+ (Symlink app/data dir under Documents/App-link)
@esterTion
esterTion / export.js
Last active March 16, 2018 14:25
GreaseMonkey scripts to ViolentMonkey
/**
* @author esterTion
* before use: npm install xml2js jszip https://github.com/mapbox/node-sqlite3/tarball/master
* place inside profile\gm_scriptss, run, then import violentmonkey.zip
*/
var fs = require('fs');
var parseString = require('xml2js').parseString;
var JSZip = require('jszip');
var sqlite3 = require('sqlite3');
@esterTion
esterTion / snow.htm
Created December 22, 2017 05:55
Quick snowing
<!DOCTYPE html><html>
<head><meta charset="UTF-8"><style>html,body{background:#bababa}</style></head>
<body><script src="snow.js"></script></body>
</html>
{
"code": 0,
"data": [
{
"pid": 91,
"pname": "2233",
"state": 0,
"purl": "https://i0.hdslb.com/bfs/vip/1096316282b3bacfc184ca7269ff7397886967bb.png",
"emojis": [
{
@esterTion
esterTion / bilibili_dynamic_new.md
Last active October 19, 2023 09:02
b站新动态 api
@esterTion
esterTion / sdmht_unity3d_hashlist.txt
Last active August 19, 2017 05:13
神代梦华谭 unity3d文件hash历史
游戏卡面打包(CardM,CardL,CardBattle,Master)位于 https://pan.baidu.com/s/1pKVis7D
file list @ 20170818
2941510fd6111254fe3366ff7e79fc72082eeecc BackgroundBattle_10001.unity3d
0fef32d6192a276732a5986ffac199faefa6d07f BackgroundBattle_10002.unity3d
ccb999a3572bbbe266767361f84ca06a0b1133e0 BackgroundBattle_10003.unity3d
c97d6fa557b608d32e0f9697bc2803cc0911a55b BackgroundBattle_10004.unity3d
c259f808ea228a7ce6eec4d9bd7bc78eebdc8ba3 BackgroundBattle_10005.unity3d
d190fc127668f7e714c4fb944c4588772c90cd17 BackgroundBattle_10006.unity3d
24e626bde17623b24c874c3ce327ec722017b74d BackgroundBattle_20001.unity3d