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 cadquery as cq | |
from build123d import * | |
from typing import Union | |
from build123d.build_common import LocationList | |
VectorLike = Union[Vector, tuple[float, float], tuple[float, float, float]] | |
RotationLike = Union[tuple[float, float, float], Rotation] | |
class SolidType: |
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 math | |
from typing import Union, Sequence, overload | |
import cadquery as cq | |
from OCP.gp import gp, gp_Vec, gp_Pnt, gp_Dir, gp_XYZ | |
class Vector: | |
"""Create a 3-dimensional vector |
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
#!/bin/bash | |
set -x | |
BRAVE_FW="/Applications/Brave Browser.app/Contents/Frameworks/Brave Browser Framework.framework" | |
PAK="$BRAVE_FW/Versions/Current/Resources/brave_resources.pak" | |
ls -l "$PAK" | |
if [[ $1 == "-r" ]]; then | |
if [[ -f /tmp/brave_resources.pak ]]; then | |
echo "Restoring latest resource file" | |
cp /tmp/brave_resources.pak "$PAK" |