BryceK
Games
Tools
Snippets
Bookmarks
About
Contact
Snippets
Here are some snippets of miscellaneous code.
Powershell File List
powershell
Example of a powershell script that iterates over all jpg/png's and writes an array assignment to a text file
function WriteFileList { begin {"array = ["} process {"'$input'," -replace "\\","/"} end {"'']"} } Get-ChildItem -Path . -Name -Recurse -Include *.jpg, *.png | WriteFileList > filelist.txt
IEEE 754
js
Run in the console, just a reminder for decimal usage.
1.1 + 1.3