Skip to content

Instantly share code, notes, and snippets.

@toaoman
toaoman / cffi_test.c
Created January 19, 2022 12:35 — forked from harvimt/cffi_test.c
lib7zip minimal c example.
#include <stdio.h>
#include <windows.h>
#include <wchar.h>
#include <initguid.h>
#include "pstdint.h"
DEFINE_GUID(CLSID_CFormat7z,
0x23170F69, 0x40C1, 0x278A, 0x10, 0x00, 0x00, 0x01, 0x10, 0x07, 0x00, 0x00);
DEFINE_GUID(IID_IInArchive,
# By Heran Zhou, 2019.
'''
import reScale
reload (reScale)
reScale.gui()
'''
import pymel.core as pm
win_width = 150
@toaoman
toaoman / BaiduPCS-appid-getter.py
Last active May 18, 2019 13:38 — forked from pcmid/BaiduPCS-appid-getter.py
获取有效的百度app_id[python2.7.9]
from __future__ import print_function
import requests
import threading
import sys
def eprint(*args, **kwargs):
print(*args, file=sys.stderr, **kwargs)