Skip to content

Instantly share code, notes, and snippets.

View AlansCodeLog's full-sized avatar

Alan North AlansCodeLog

View GitHub Profile
@AlansCodeLog
AlansCodeLog / link-local.mjs
Last active January 13, 2023 21:45
pnpm link local packages workaround
@AlansCodeLog
AlansCodeLog / index.py
Created January 1, 2020 17:55
Return Words with X Syllables in Given List #python #program
inputdict = {}
name = "0"
nametype = ""
results = []
def inputtodict (list):
list = list
list = [words for segments in list for words in segments.split()]
global inputdict
inputdict = dict((x,0) for x in list)
@AlansCodeLog
AlansCodeLog / index.md
Last active January 1, 2020 17:54
PPT-GUI Install Notes #photogrammetry

PPT-GUI (Python Photogrammetry GUI)

Install

Regular Install

Installing per site instructions works perfectly.

Conda

Through conda it wants to throw this error: File "B:\Programs\PPT-GUI\osm-bundler\osm-bundlerWin64\ppt_gui.py", line 6, in

@AlansCodeLog
AlansCodeLog / index.sh
Created January 1, 2020 17:38
Configuring Git Auth for WSL and Windows #wsl #auth #git
git config --global credential.helper "/mnt/c/Program\ Files/Git/mingw64/libexec/git-core/git-credential-manager.exe"
@AlansCodeLog
AlansCodeLog / install.bat
Last active September 18, 2019 21:08
Blender as a Python Module Install Script #blender #builds
REM To use: Copy to build folder. Run "install YOURPYTHONPATH PYTHONVERSION BLENDERVERSION" e.g. "install C:\Python36 36 2.79"
REM No backslash after path.
set pypath=%1
set pyversion=%2
set version=%3
copy bin\Release\bpy.pyd %pypath%\Lib\site-packages\
copy bin\Release\*.dll %pypath%\Lib\site-packages\
del %pypath%\Lib\site-packages\python%pyversion%.dll
@AlansCodeLog
AlansCodeLog / neatpath.bat
Last active September 18, 2019 21:08
neatpath - prints human readable path #utils #cmd
@echo %path:;=&echo.%
@AlansCodeLog
AlansCodeLog / oldTest.py
Last active December 26, 2021 16:49
Run a simple ptvsd/debugpy server, for debugging... debuggers. #repo-extras #project_blender-debugger #blender
# pre addon version 2.0.0
import ptvsd
ptvsd.enable_attach(("0.0.0.0", 3000))
print ("ptvsd version is: " + ptvsd.__version__)
print("Waiting")
ptvsd.wait_for_attach()
print("Connected")
input('Press Enter to Exit')
@AlansCodeLog
AlansCodeLog / script_panel.py
Last active August 24, 2019 17:27
Blender Scripts Add-on #blender
# My Scripts Panel
# Simple tab in tools panel with my most used scripts.
bl_info = {
"name": "Scripts Panel",
"category": "User Interface"
}
import bpy