Skip to content

Instantly share code, notes, and snippets.

View fanjc320's full-sized avatar

Jacky fanjc320

View GitHub Profile
@fanjc320
fanjc320 / unwxapkg.py
Created June 2, 2024 14:25 — forked from Integ/unwxapkg.py
A useful tool for unpack wxapkg file with python3 surport.
# coding: utf-8
# py2 origin author lrdcq
# usage python3 unwxapkg.py filename
__author__ = 'Integ: https://github.com./integ'
import sys, os
import struct
class WxapkgFile(object):
@fanjc320
fanjc320 / json.lua
Created June 19, 2018 14:18 — forked from tylerneylon/json.lua
Pure Lua json library.
--[[ json.lua
A compact pure-Lua JSON library.
The main functions are: json.stringify, json.parse.
## json.stringify:
This expects the following to be true of any tables being encoded:
* They only have string or number keys. Number keys must be represented as
strings in json; this is part of the json spec.
@fanjc320
fanjc320 / codeSnippet.cpp
Created July 12, 2017 13:19
strftime 格式化打印时间
char bufTime[64];
time_t now = time(NULL);
tm* lt = localtime(&now);
strftime(bufTime, 64, "%F %T", lt);