Skip to content

Instantly share code, notes, and snippets.

# 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)
@pcmid
pcmid / BaiduPCS-appid-getter.py
Created September 20, 2018 06:44
获取有效的百度app_id
from __future__ import print_function
import requests
import threading
import sys
def eprint(*args, **kwargs):
print(*args, file=sys.stderr, **kwargs)
@myfreeer
myfreeer / 7-zip-build.bat
Last active November 25, 2022 14:41
7-zip build script
@echo off
setlocal EnableExtensions EnableDelayedExpansion
pushd "%~dp0"
:Download_7zip
set version=7z1803
appveyor DownloadFile https://www.7-zip.org/a/%version%-src.7z
7z x %version%-src.7z
:Patch
@harvimt
harvimt / cffi_test.c
Created March 10, 2014 07:52
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,
@AngryLoki
AngryLoki / ies2cycles.py
Last active January 30, 2024 16:47
IES to Cycles addon for new nodetree system! It only works for trunk builds of blender 2.66 and later versions!!! Thread on blenderartists.org: http://blenderartists.org/forum/showthread.php?276063 Old outdated version (no rig) for official 2.66 release (old nodetrees): https://gist.github.com/Lockal/5313485
# ##### BEGIN GPL LICENSE BLOCK #####
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2
# of the License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the