Skip to content

Instantly share code, notes, and snippets.

View zeffii's full-sized avatar

Dealga McArdle zeffii

View GitHub Profile
@zeffii
zeffii / point_picker_and_writer.lsp
Created November 8, 2024 12:04
point picker and setter
(defun c:FindNearestText ()
;; Prompt the user to select a point
(setq pickPoint (getpoint "\nPick a point: "))
;; Check if the point is valid
(if pickPoint
(progn
;; Set initial variables
(setq minDist nil ;; Store minimum distance
nearestTextContent nil) ;; Store content of the nearest text
@zeffii
zeffii / exploration_script.py
Last active September 15, 2024 16:16
pyrevit shell scripts
'''
PyRevit
Final Checklist
[x] list all levels in the current doc
[x] name and
[x] level value
[x] associated with any plan view?
[x] list all plan views
@zeffii
zeffii / robs_songlist.md
Last active November 30, 2023 18:26
rob's songlist
@zeffii
zeffii / pixilang.sublime-syntax
Last active July 31, 2023 15:48
syntax hilighting for pixilang ( incomplete )
%YAML 1.2
---
# See http://www.sublimetext.com/docs/3/syntax.html
name: Pixilang
file_extensions:
- pixi
scope: source.pixi
@zeffii
zeffii / index_progress.html
Last active August 27, 2022 18:27
script for triangulated geometry
<!DOCTYPE html>
<html lang="en">
<head>
<title>three.js webgl - geometry - vertex colors</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0">
<link type="text/css" rel="stylesheet" href="../files/main.css">
<style>
body {
@zeffii
zeffii / mellow_movies.md
Last active August 13, 2022 21:59
mellow movies
  • back to the future (any, all)
  • honey i shrunk the kids
  • microcosm
  • hunt for red october
  • the abyss
  • california man
  • jurrasic park
  • ghost busters 1
  • jacques cousteau docs (any, all)
  • red dwarf (series)
@zeffii
zeffii / ng2svg_converter_writer.py
Last active December 3, 2022 14:49
sverchok nodetree to svg basic
import os
import re
import bpy
import inspect
import textwrap
import sverchok
import numpy as np
from mathutils.geometry import interpolate_bezier as bezlerp
from sverchok.utils.sv_node_utils import recursive_framed_location_finder as absloc
from dataclasses import dataclass
@zeffii
zeffii / beginnings_of_simple_svg.py
Last active July 16, 2022 18:52
blender (sverchok) nodetree to svg
import os
import re
import bpy
import sverchok
from dataclasses import dataclass
from xml.etree import ElementTree as et
@dataclass
@zeffii
zeffii / find_islands.py
Created July 6, 2022 10:33
disjoint meshes set theory
verts = [[1.101621389389038, 0.541892945766449, 0.0], [0.8510395884513855, -0.006982157006859779, 0.0], [0.7924670577049255, -0.006982157006859779, 0.0], [0.5302482843399048, 0.541892945766449, 0.0], [0.677261471748352, 0.541892945766449, 0.0], [0.8203957080841064, 0.23273855447769165, 0.0], [0.9561598300933838, 0.541892945766449, 0.0], [0.37742435932159424, 0.541892945766449, 0.0], [0.6179208755493164, 0.0, 0.0], [0.4728471636772156, 0.0, 0.0], [0.42823895812034607, 0.10705973953008652, 0.0], [0.18580295145511627, 0.10705973953008652, 0.0], [0.14546160399913788, 0.0, 0.0], [0.0023273855913430452, 0.0, 0.0], [0.22071373462677002, 0.541892945766449, 0.0], [0.38828548789024353, 0.20170675218105316, 0.0], [0.30100852251052856, 0.4123351573944092, 0.0], [0.2214895337820053, 0.20170675218105316, 0.0]]
faces = [[2, 4, 3], [2, 5, 4], [5, 0, 6], [5, 1, 0], [2, 1, 5], [13, 7, 14], [13, 16, 7], [16, 8, 7], [13, 17, 16], [15, 8, 16], [13, 11, 17], [11, 15, 17], [11, 10, 15], [10, 8, 15], [13, 12, 11], [9, 8, 10]]
im
@zeffii
zeffii / FCStd_read_mod.py
Created June 11, 2022 17:55
FCStd read node (unknown origin)
from sverchok.dependencies import FreeCAD
from sverchok.utils.dummy_nodes import add_dummy
from sverchok.utils.sv_operator_mixins import SvGenericNodeLocator
if FreeCAD is None:
add_dummy('SvReadFCStdNode', 'SvReadFCStdNode', 'FreeCAD')
else:
F = FreeCAD