Skip to content

Instantly share code, notes, and snippets.

@bron84
bron84 / platform_info_mod.py
Created June 15, 2016 05:29
platform_info_mod.py
import inspect, platform
for name, value in inspect.getmembers(platform):
if name[0] != '_' and callable(value):
try:
value = value()
except (IndexError, TypeError):
continue
if str(value).strip("( ,')"):
print('{:>21}() = {}'.format(name, value))
@bron84
bron84 / save_py3.py
Created June 15, 2016 06:12
save_py3.py
# coding: utf-8
import appex, console
import ui
import os.path
import os
import clipboard
import gc
import shutil