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 /
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 /
Last active June 11, 2023 09:39
魔改 json 导出为 lua
"""Implementation of JSONEncoder
import re
from _json import encode_basestring_ascii as c_encode_basestring_ascii
except ImportError:
c_encode_basestring_ascii = None
from _json import make_encoder as c_make_encoder