Skip to content

Instantly share code, notes, and snippets.

import sys
import plistlib
import datetime
class CCBReal:
def __init__(self, value):
self.value_raw = value
self.value = float(value)
@justbilt
justbilt / luapack.py
Created September 10, 2017 10:57
增量 lua 文件打包脚本
#!/usr/bin/env python
# coding=utf-8
# Python 2.7.3
import os,sys,json
import zipfile
import shutils
HOME = os.path.expanduser("~")
CACHE_ROOT = os.path.join(HOME, ".lua_compile")
@justbilt
justbilt / lua.py
Last active June 11, 2023 09:39
魔改 json 导出为 lua
"""Implementation of JSONEncoder
"""
import re
try:
from _json import encode_basestring_ascii as c_encode_basestring_ascii
except ImportError:
c_encode_basestring_ascii = None
try:
from _json import make_encoder as c_make_encoder