This file contains 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 os | |
import time | |
import subprocess | |
INKSCAPE = "C:/Program Files/Inkscape/bin/inkscape.exe" | |
while True: | |
for f in os.listdir(): | |
root, ext = os.path.splitext(f) | |
if ext != ".svg": |
This file contains 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
write-host " Windows 11 Home" | |
write-host " PowerShell $($PSVersionTable.PSVersion)" | |
write-host | |
Import-Module -Name Terminal-Icons | |
oh-my-posh init pwsh --config ~/.mytheme.omp.json | Invoke-Expression |
This file contains 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
{ | |
"$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json", | |
"version": 2, | |
"console_title": false, | |
"final_space": true, | |
"blocks": [ | |
{ | |
"type": "prompt", | |
"alignment": "left", | |
"segments": [ |
This file contains 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
isfrom2to9(n) = n != '0' && n != '1' | |
function clean(phone_number) | |
filtered = filter(isnumeric, phone_number) | |
n = length(filtered) | |
if n == 11 | |
filtered[1] != '1' && return nothing | |
filtered = filtered[2:end] | |
n = 10 | |
end |
This file contains 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
# -- coding: utf-8 -- | |
import os | |
import openseespy.opensees as ops | |
# ------------------------------ | |
# Start of model generation | |
# ----------------------------- | |
# remove existing model |