- Added time module
- Format is default
"%H:%M:%S"
but can be overwritten with an environment variablePURE_TIME_FORMAT
- Format is default
- Added dist module
- Can be used to insert a distance to right aline values. Only works on first line and only once.
- Changed virtualenv module
- Uses
VIRTUAL_ENV_PROMPT
(name of virtual env) if set overVIRTUAL_ENV
(path of virtual env).
- Uses
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
""" | |
In my opinion the strenght of a system like this lies in that you can easily | |
provide additional interfaces in later versions which can be accessed to | |
users using the new version, however old versions can still run with under | |
same plugin system. | |
License - MIT | |
""" | |
def my_plugin(interface_api, interface_config): |
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
# https://blender.stackexchange.com/a/203990 | |
bl_info = { | |
"name": "Lock View Rotation", | |
"blender": (3, 6, 4), | |
"category": "View", | |
} | |
import bpy | |
def draw_lock_rotation(self, context): |
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
import time | |
from Qt import QtWidgets, QtCore | |
import runnable | |
class MainWindow(QtWidgets.QMainWindow): | |
def __init__(self, *args, **kwargs): | |
super(MainWindow, self).__init__(*args, **kwargs) |
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
class ToolNotRegisteredError(Exception): | |
"""Adding special exception to be able to only catch this special exception""" | |
pass | |
def unregister_tool(tool_cls): | |
space_type = tool_cls.bl_space_type | |
context_mode = tool_cls.bl_context_mode | |
from bl_ui.space_toolsystem_common import ( | |
ToolSelectPanelHelper, |
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
import bpy | |
class BoilerPlateData(bpy.types.PropertyGroup): | |
counter: bpy.props.IntProperty(name="Count", default=1, min=0) | |
class BoilerPlate_OT_Operator(bpy.types.Operator): | |
bl_idname = "boilerplate.operator" | |
bl_label = "" |
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
<html lang="en"> | |
<head> | |
<meta content="Nuts for Tokens - Commander (Toski, Bearer of Secrets)" property="og:title"> | |
<meta content="Toski is ready and able to lure in the enemy so your army can get through. Watch out for his hammer!" property="og:description"> | |
<meta content='https://assets.moxfield.net/cards/card-Yoej2-art_crop.jpg' property='og:image'> | |
<meta name="theme-color" content="#E85485"> | |
<link type="application/json+oembed" href="https://gist.githubusercontent.com/Jerakin/c7e93b35fd360ed9775c8a595ad1d7c8/raw/927c3f555b80e091c33806aaf55d055bdfc2b630/discord-embed.json" /> | |
</head> | |
</html> |
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
local md5 = require "main.md5" | |
local by_index = {} | |
local by_id = {} | |
local function time_it(fnc) | |
local before = os.clock() | |
fnc() | |
print((os.clock() - before)*1000) | |
end |
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
from PIL import Image | |
from pathlib import Path | |
import json | |
root = Path(__file__).parent | |
output = root / "assembled_tokens" | |
tokens = root / "images" | |
token_source = root / "token_source" | |
data_file_folder = root.parent.parent.parent / "assets" / "datafiles" | |
pokemon_folder = data_file_folder / "pokemon" |
NewerOlder