This file contains 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 -*- | |
# | |
# == Aptana Ruble Commands | |
# Convert Between Python 2 and Py3k Print Statements | |
# | |
# Created by André Berg on 2013-05-23. | |
# Copyright 2013 Berg Media. All rights reserved. | |
# | |
# Used from a Python.ruble command in Eclipse | |
# Aptana Studio 3: |
This file contains 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 -*- | |
# | |
# convert_print.py | |
# Aptana Ruble Commands | |
# | |
# Created by André Berg on 28.05.2013. | |
# Copyright 2013 Berg Media. All rights reserved. | |
# | |
# Used from a Python.ruble command in Eclipse |
This file contains 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): |
This file contains 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 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 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="[email protected]" 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 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 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
#IfWinActive, Path of Exile ahk_class Direct3DWindowClass | |
#SingleInstance force | |
; Menu tooltip | |
Menu, tray, Tip, Path of Exile Macros | |
; NOTE: Adjust this path so it is correct. | |
; If you are using my PoE-Item-Info script you can find | |
; the tray icons inside its data directory. | |
Menu, tray, Icon, PoE Item Info\data\poe-web.ico |
This file contains 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 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
// The module 'vscode' contains the VS Code extensibility API | |
// Import the module and reference it with the alias vscode in your code below | |
import * as vscode from 'vscode'; | |
// this method is called when your extension is activated | |
// your extension is activated the very first time the command is executed | |
export function activate(context: vscode.ExtensionContext) { | |
// Use the console to output diagnostic information (console.log) and errors (console.error) | |
// This line of code will only be executed once when your extension is activated |