No symbols shown in editor outline when opening a .py file.
Message No symbols found in document '<document name>.py
displayed in editor outline panel.
{ | |
// Place your snippets for python here. Each snippet is defined under a snippet name and has a prefix, body and | |
// description. The prefix is what is used to trigger the snippet and the body will be expanded and inserted. Possible variables are: | |
// $1, $2 for tab stops, $0 for the final cursor position, and ${1:label}, ${2:another} for placeholders. Placeholders with the | |
// same ids are connected. | |
// Example: | |
// "Print to console": { | |
// "prefix": "log", | |
// "body": [ | |
// "console.log('$1');", |
// 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 |
; ### 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 |
#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 |
#!/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: | |
+--+--+--+--+--+--+--+--+--+ |
<?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 |
# 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 |
#!/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 |
# -*- 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): |