This file contains hidden or 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
let revoke = ( | |
function() { | |
let display_on = false; | |
const selectors = ` | |
.ytp-chrome-top | |
.ytp-chrome-bottom | |
.ytp-gradient-top | |
.ytp-gradient-bottom`.split('\n').map(s => s.trim()).filter(s => s); | |
function toggleYouTubeControls() { |
This file contains hidden or 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
bl_info = { | |
"name": "Object Tagger", | |
"author": "zvodd", | |
"version": (1, 1, 4), | |
"blender": (4, 2, 0), | |
"location": "3D View > Sidebar (N Panel) > Tagger Tab | V for Pie Menu", | |
"description": "Adds, removes, and manages tags on objects using custom properties. Includes a customizable Pie Menu.", | |
"warning": "", | |
"doc_url": "", | |
"category": "Object", |
This file contains hidden or 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 xml.etree.ElementTree as ET | |
import argparse | |
import sys | |
import os | |
from pathlib import Path | |
def resize_svg(input_file, width=None, height=None): | |
""" | |
Resize an SVG by wrapping its contents in a transform that scales to new dimensions | |
while preserving aspect ratio. |
This file contains hidden or 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 xml.etree.ElementTree as ET | |
import argparse | |
import sys | |
def resize_svg(input_file, width=None, height=None): | |
""" | |
Resize an SVG by wrapping its contents in a transform that scales to new dimensions | |
while preserving aspect ratio. | |
Args: |
This file contains hidden or 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 FontForge( https://fontforge.org ) with font of choice open press Ctrl + . to open the script dialog, paste and run. | |
## You will be asked to save a file. Font will be put in the selected folder with the prefix of the name entered. | |
# | |
## Recommend: Symbols NerdFont at https://www.nerdfonts.com/font-downloads | |
## | |
import os | |
import pprint |
This file contains hidden or 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
def parse(lines): | |
width = len(lines[0]) | |
height = len(lines) | |
for ypos, line in enumerate(lines): | |
for xpos, c in enumerate(line): | |
if c != "X": | |
continue |
This file contains hidden or 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 collections import OrderedDict | |
import socket | |
import sys | |
import re | |
def extract_first_hostname(text): | |
""" | |
Extract the first hostname from a given string. | |
Args: |
This file contains hidden or 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 HavokPhysics, { | |
HavokPhysicsWithBindings, | |
Result, HP_ShapeId | |
} from "@babylonjs/havok"; | |
// Global variable to store the initialized Havok physics engine | |
globalThis['HK'] = (await HavokPhysics()) as HavokPhysicsWithBindings; | |
const HK : HavokPhysicsWithBindings = globalThis.HK; | |
// Define helper functions for common physics types (Vector3, Quaternion, etc.) |
This file contains hidden or 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 | |
import bmesh | |
from mathutils import Vector | |
from bpy.props import BoolProperty, FloatVectorProperty | |
from bpy.types import Operator, Panel, PropertyGroup | |
####################### | |
# Props | |
####################### |
This file contains hidden or 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
@echo off | |
if "%~1"=="" ( | |
set "ENV_FILE=%CD%\.env" | |
) else ( | |
set "ENV_FILE=%~1" | |
) | |
if not exist "%ENV_FILE%" ( | |
echo Error: %ENV_FILE% file not found | |
exit /b 1 |
NewerOlder