Skip to content

Instantly share code, notes, and snippets.

View hiroto-takatoshi's full-sized avatar
🇯🇵

Hiroto.Takatoshi hiroto-takatoshi

🇯🇵
View GitHub Profile
@hiroto-takatoshi
hiroto-takatoshi / 1.json
Last active May 28, 2022 19:53
デレステ decoded jsons
{'data': {'onetime_story_id_list': [], 'friend_pt_info': {'friend_count': 0, 'after_friend_pt': 1950, 'help_count': 1, 'before_friend_pt': 1940, 'viewer_id': 174840612}, 'max_room_num': 2, 'open_jewel_shop_list': [{'buy_end_time': 1473519599, 'sc_use_limit_time': 1473519599, 'id': '2', 'user_buy_count': 1}], 'season_id': 0, 'album_list': [{'max_love_flag': 1, 'love': 50, 'card_id': 100001}, {'max_love_flag': 1, 'love': 150, 'card_id': 100002}, {'max_love_flag': 1, 'love': 20, 'card_id': 100003}, {'max_love_flag': 1, 'love': 60, 'card_id': 100004}, {'max_love_flag': 1, 'love': 20, 'card_id': 100005}, {'max_love_flag': 0, 'love': 20, 'card_id': 100006}, {'max_love_flag': 1, 'love': 20, 'card_id': 100007}, {'max_love_flag': 0, 'love': 20, 'card_id': 100008}, {'max_love_flag': 1, 'love': 20, 'card_id': 100009}, {'max_love_flag': 0, 'love': 30, 'card_id': 100010}, {'max_love_flag': 1, 'love': 20, 'card_id': 100013}, {'max_love_flag': 1, 'love': 60, 'card_id': 100014}, {'max_love_flag': 1, 'love': 20, 'card_id': 10
var Leap = require("leapjs/lib/index")
var net = require('net');
var JsonSocket = require('json-socket');
/*
var WebSocketServer = require('ws').Server
, wss = new WebSocketServer({ port: 2333 });
*/
var mSocket;
var started = true;
@hiroto-takatoshi
hiroto-takatoshi / stopword_rm.py
Created February 7, 2017 07:55
chinese stopwords removal
import re
stopwords = codecs.open('stopwords.txt', 'r', 'utf-8').read()
stopwords = re.findall(r"[\w']+", stopwords)
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@hiroto-takatoshi
hiroto-takatoshi / ss-packets.md
Created March 17, 2017 01:12
ss与ssr的收发包记录

格式说明

twitter.com:443 u 23 517 d 154 u 51 53 98 809 d 44
从左向右看
首先twitter.com:443表示访问twitter.com的443端口,即https
上传方向(以字母u表示),先发送23字节,再发517字节,
然后下载方向(以字母d表示),收到154字节,
接着上传方向再上传51、53、98、809字节,
最后下载方向收到44字节后,连接断开。
一行内容即为一次连接的记录

@hiroto-takatoshi
hiroto-takatoshi / gtav_stocks.rb
Created March 30, 2017 18:28 — forked from edwardloveall/gtav_stocks.rb
Get stocks for the GTA V BAWSAQ
require 'net/http'
require 'json'
def request
Net::HTTP.get(URI('http://socialclub.rockstargames.com/games/gtav/ps4/bawsaq'))
uri = URI('http://socialclub.rockstargames.com/games/gtav/ajax/stockdetail')
http = Net::HTTP.new(uri.host, uri.port)
req = Net::HTTP::Get.new(uri)
myKB.tgds = {
TGD ( { Atom ( "U" , { "x" , "y" , "z" } ) } , { Atom ( "T" , { "x" , "y" , "z" } ) } ),
TGD ( { Atom ( "R" , { "x" , "y" } ) , Atom ( "S" , { "x" , "z" , "w" } ) } , { Atom ( "T" , { "x", "y", "z" } ) , Atom ( "V" , { "w", "x" } ) } )
};
myKB.src.localI = {
Tuple ( "R", { Cell(CONST, "1") , Cell(CONST, "1") } ),
Tuple ( "R", { Cell(CONST, "3") , Cell(CONST, "2") } ),
Tuple ( "S", { Cell(CONST, "1") , Cell(CONST, "1") , Cell(CONST, "4") } ),
Tuple ( "S", { Cell(CONST, "1") , Cell(CONST, "2") , Cell(CONST, "4") } ),
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.