Posts

py.RegExp.py

importre##Import for re or Regular Expressions###INPUTS (Two Inputs- 0 and 1- ad inputs to python node to correspond with th [+] button)StrList=IN[0]##Simple list of items to matchregexExp=IN[1]##Regexp string to match ##see https://docs.python.org/3.3/howto/regex.html "Regular expressions in dynamo" and ##https://regex101.com for regular expressions 101 testing##OUTPUTOutlist=[]##Outlist TRUE if match is find for each item in list###Initialize RegexpRegex=re.compile(regexExp,re.IGNORECASE)###The actual RegExp compare for each item in the listforiteminStrList:## For each item in the list run a match Outlist.append(Regex.match(item)isnotNone)##If match is not NONE then it is a match (true) - else (false)- append that to the list for each itemOUT=Outlist##Set output to results

PY.RegExp.sub.py

importre##Import for re or Regular Expressions###INPUTS (Two Inputs- 0 and 1- ad inputs to python node to correspond with th [+] button)StrList=IN[0]##Simple list of items to matchregexExp=IN[1]##Regexp string to match ##see https://docs.python.org/3.3/howto/regex.html "Regular expressions in dynamo" and ##https://regex101.com for regular expressions 101 testingRegExpSub=IN[2]##Regexp substitution from IN[2]##OUTPUTOutlist=[]##Outlist TRUE if match is find for each item in list###Initialize Regexp###The actual RegExp compare for each item in the listforiteminStrList:## For each item in the list run a match result=re.sub(regexExp,RegExpSub,item,1)Outlist.append(result)##If match is not NONE then it is a match (true) - else (false)- append that to the list for each itemOUT=Outlist##Set output to results
Purge Printers from Windows 7 VBS
''''''''''Execute subs CheckArgsCleanupPrintersdimSleepTime''globals for sleep time in Milliseconds dimquiet''globals for no dialog dimMsg''Message string '''''''''''----------------------------------------------------- subCheckArgs()''push args into array ReDimargs(WScript.Arguments.Count-1)Fori=0ToWScript.Arguments.Count-1args(i)=WScript.Arguments(i)&""NextForargCt=0toubound(args)iflcase(trim(args(argCt)))="\sleep"thenargCt=argCt+1SleepTime=int(args(argCt))msg=msg&vbCr&"\sleep="&int(SleepTime)endififlcase(trim(args(argCt)&""))="\q"orlcase(trim(args(argCt)&""))="\quiet"thenquiet=truemsg=msg&vbCr&"\quiet="&quietEndifNextifmsg>""thenmsg=msg&vbCrendsub'''''''------------------------…

py. pair objects by assembly code to workset

importclrclr.AddReference('ProtoGeometry')fromAutodesk.DesignScript.Geometryimport*#The inputs to this node will be stored as a list in the IN variables.Worksets_all=IN[0]Elements=IN[1]##Regex to get the worksets matching the assembly criteria##https://stackoverflow.com/questions/7014674/in-python-how-do-i-remove-from-a-list-any-element-containing-certain-kinds-of-cimportre##NOTE This is REgular EXpressions - a powerful pattern matching languageregex=re.compile(r"([abcdefglABCDEFGL]\d{2})|([Ww]orkset 1)",re.IGNORECASE)## ABCD follow by 2 numbers #L added for airport special##Iteration over list i[0] is NAME to comare#Worksets = filter(lambda i: regex.search(i[0]), Worksets_all) ##Also worksWorksets=[iforiinWorksets_allifregex.search(i[0])]##Each list item [0] soud be namestdout=list()forelementinElements:##Iterate element listforworksetinWorksets:##iterate workset listifelement[0][:3]==workset[0][:3]:##First 3 characters match between workset and assembly code we hav…

Denver jobs plentiful, skilled labor lagging.

https://www.linkedin.com/jobs/blog/linkedin-workforce-report-february-2018-denver-co
https://youtu.be/4loraLRwRP8

Walabot DIY Smart Stud Finder Sees 4 Inches Into Your Walls | Walabot