This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# encoding: utf-8 | |
''' | |
${module} -- ${shortdesc} | |
${module} is a ${description} | |
It defines ${classes_and_methods} | |
@author: ${user_name} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/local/bin/python2.7 | |
# encoding: utf-8 | |
''' | |
${module} -- ${shortdesc} | |
${module} is a ${description} | |
It defines ${classes_and_methods} | |
@author: ${user_name} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Guild Wars 2 Spidy Functions | |
* | |
* for use in Google Docs spreadsheets | |
* via the Script Editor. | |
* | |
* After an idea and first concept of | |
* Valaadus.5012 on Northern Shiverpeaks | |
* | |
* Additional functions by Cauldron.1653 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
; ### Example Code ##### | |
Gui,Add,Button,hwndbutton1 Gbut1,Test Button 1 | |
Gui,Add,Button,hwndbutton2,Test Button 2 | |
Gui,Add,Button,hwndbutton3,Test Button 3 | |
AddTooltip(button1,"Press me to change my tooltip") | |
AddTooltip(button2,"Another Test Tooltip") | |
AddTooltip(button3,"A Multiline`nTest Tooltip") | |
Gui,show,,Test Gui | |
Return |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class MinMax(object): | |
""" | |
Calculate various area metrics from a list of points, | |
such as min, max, midpoint, radius and size. | |
""" | |
def __init__(self): | |
super(MinMax, self).__init__() | |
FLOATMIN = sys.float_info[3]-1000 # workaround for underflow error | |
FLOATMAX = sys.float_info[0] | |
self.min = c4d.Vector(FLOATMAX, FLOATMAX, FLOATMAX) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/local/bin/python | |
# -*- coding: utf-8 -*- | |
# | |
# pyobjc_coregraphics_example1.py | |
# PyObjC Scripts | |
# | |
# Created by André Berg on 2013-07-09. | |
# Copyright 2013 Berg Media. All rights reserved. | |
# | |
# Example script that shows how to use |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Data type script for displaying and manipulating the | |
# timestamp header bytes in a Python bytcode (pyc) file. | |
# | |
# pyc header | |
# 8 16 | |
# +-+-+-+-+-+-+-+-+ +-+-+-+-+-+-+-+-+ | |
# |X|X|X|X|0|D|0|A| |T|I|M|E|S|T|M|P| | |
# +-+-+-+-+-+-+-+-+ +-+-+-+-+-+-+-+-+ | |
# \______/\______/ \_______________/ | |
# inc. cr/lf timestamp |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<ufwb version="1.5.1"> | |
<grammar name="Python Bytecode" start="id:104" author="André Berg" email="andre.bergmedia@googlemail.com" fileextension="pyc, pyo" uti="public.data" complete="yes"> | |
<description>Grammar for PYC and PYO files | |
Version: 8 | |
Now works with pyc/pyo files generated by Python 2, Python 3.0-3.2 and Python 3.3. | |
References |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/local/bin/python3.3 | |
''' | |
pylong_from_bytearray -- methods for reading and converting PyLong objects. | |
Ported from Python's C source code, specifically from marshal.c and longobj.c | |
Serialization of PyLong objects to marshal's bytecode format has the following | |
layout: | |
+--+--+--+--+--+--+--+--+--+ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- coding: utf-8 -*- | |
# | |
# Created by André Berg on Jun 2, 2013. | |
# Copyright 2013 Berg Media. All rights reserved. | |
# | |
from functools import wraps, partial | |
def benchmark(func=None, prec=3, unit='auto', name_width=0, time_width=8): |
OlderNewer