Skip to content

Instantly share code, notes, and snippets.

@florianfelix
florianfelix / tag_component.rs
Created December 22, 2023 12:45
leptos tag
use leptos::{leptos_dom::logging::console_log, *};
use leptos_router::ActionForm;
use lib_core::{
ctx::Ctx,
model::{
tag::{TagBmc, TagContentSrv, TagSrv},
ModelManager,
},
};
import os
import bpy
import sys
import typing
import inspect
import pkgutil
import importlib
from pathlib import Path
from collections import OrderedDict
import os
import bpy
import sys
import typing
import inspect
import pkgutil
import importlib
from pathlib import Path
from collections import OrderedDict
import bpy
from bpy.types import Panel
class RENDER_PT_Panel(Panel):
bl_space_type = 'PROPERTIES'
bl_region_type = 'WINDOW'
bl_context = "render"
bl_label = "Parent Panel"
@classmethod
@florianfelix
florianfelix / .pylintrc
Created September 7, 2018 19:21
blender addon pylintrc
[MASTER]
# A comma-separated list of package or module names from where C extensions may
# be loaded. Extensions are loading into the active Python interpreter and may
# run arbitrary code.
extension-pkg-whitelist=
# Add files or directories to the blacklist. They should be base names, not
# paths.
ignore=CVS
@florianfelix
florianfelix / download_buildbot_279.sh
Created August 21, 2018 10:53
Download and extract Blender Buildbot builds
cd ~/Downloads
mkdir tmpdown
cd tmpdown
wget -r -nd -nv -e robots=off -A '*2.79*linux-glibc*x86_64.tar.bz2*' https://builder.blender.org/download/
tar xvjf *
rsync -a -v */ ~/dev/blender/blender-bb/
cd ..
rm -r tmpdown
@florianfelix
florianfelix / convert_to_jpg.py
Created August 21, 2018 10:50
imagemackick batch operations
import os
import sys
from subprocess import run
import logging
logger = logging.getLogger('convert_to_jpg')
hdlr = logging.FileHandler('%s.log' % (__file__), mode="w")
formatter = logging.Formatter('>> %(message)s')
hdlr.setFormatter(formatter)
logger.addHandler(hdlr)
@florianfelix
florianfelix / node_wrangler.py
Created July 30, 2018 14:03
tmp 2.8 migration for node_wrangler
# ##### BEGIN GPL LICENSE BLOCK #####
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2
# of the License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the