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');", |
NOTE: This solution is not permanent! Everytime Anaconda Navigator is being used to update the envs, ~/.conda/environments.txt
will be re-created which will lose all manually added envs.
~/.conda
<new_env_name>
in ~/.conda/envs
~/.conda/environments.txt
to include ~/.conda/envs/<new_env_name>
cmd /c mklink /d c:\path\to\symlink c:\target\directory | |
cmd /c mklink c:\path\to\symlink c:\target\file |
# Reconnect PSDrives for network connections when running with elevated privileges | |
$elevated = (([Security.Principal.WindowsPrincipal][Security.Principal.WindowsIdentity]::GetCurrent()).IsInRole([Security.Principal.WindowsBuiltInRole]::Administrator)) | |
if( $elevated ) { | |
net use | ?{ $_ -match ":\s+\\\\" -and !$_.StartsWith("Unavailable") } | %{ | |
$tokens = $_.split(":") | |
$psdrivename = $tokens[0][$tokens[0].length-1] | |
$path = $tokens[1].trim().split(" ")[0].trim() | |
if( !(get-psdrive | ?{ $_.Name -eq $psdrivename } )) { | |
write-host ( "Restoring PSDrive for {0}: {1}" -f $psdrivename, $path ) |
# read geometry from input node (otherwise inf recursion error) | |
n = pwd().inputs()[0] | |
g = n.geometry() | |
# here's how you access point attrib values from the geometry | |
# orient is a list of float values | |
orient = g.pointFloatAttribValues("orient") | |
x = orient[0] | |
y = orient[1] | |
z = orient[2] | |
w = orient[3] |
In Confluence use the Insert Markup featureset it to Markdown and add any CSS styles you want
for example:
<span style="background-color: #eee; border-top: 1px solid #aaa; border-bottom: 1px solid #aaa; font-family: monospace; padding: 2px;">
//path/to/folder/with/some_file.ext
</span>
easy copy+paste
In site-packages\sphinx_rtd_theme > layout.html
After
{% if sphinx_version >= "1.8.0" %}
<script type="text/javascript" id="documentation_options" data-url_root="{{ pathto('', 1) }}" src="{{ pathto('_static/documentation_options.js', 1) }}"></script>
Add
import bpy | |
active_object = bpy.context.view_layer.objects.active |
#!/usr/bin/python | |
# encoding: utf-8 | |
import os | |
import re | |
import sys | |
import time | |
import argparse | |
from datetime import date |