This file contains hidden or 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
| """Mock example: parallelizing slow API calls with ThreadPoolExecutor. | |
| The real bottleneck is a slow API library (network I/O), so threads work well: | |
| Python releases the GIL while a thread waits on the network, letting all the | |
| branch fetches happen concurrently. | |
| Each mock call sleeps a random amount (up to MAX_SLEEP) to stand in for a slow | |
| API call. Live logging + an ASCII timeline at the end let you *see* the threads | |
| overlap. | |
| """ |
This file contains hidden or 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
| """Panel demo | |
| Install panel | |
| pip install panel | |
| Run the app: | |
| panel serve app.py --dev | |
| """ |
This file contains hidden or 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
| Hello World |
This file contains hidden or 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
| <script type="importmap"> | |
| { | |
| "imports": | |
| { | |
| "vue": "https://cdnjs.cloudflare.com/ajax/libs/vue/3.4.38/vue.esm-browser.min.js", | |
| "vuetify": "https://unpkg.com/vuetify@3.1.10/dist/vuetify.esm.js" | |
| } | |
| } | |
| </script> | |
| <title>Network Diagram Demo</title> |
This file contains hidden or 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
| Test-Connection 8.8.8.8 -Delay 30 -Count ([int32]::MaxValue) | format-table @{n='TimeStamp';e={Get-Date}},Ping, Source, Address, Latency, Status | Out-File ping.txt |
This file contains hidden or 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
| <div id="app"> | |
| <v-app> | |
| <v-main> | |
| <v-container fluid> | |
| <v-row> | |
| <v-col cols=12> | |
| <v-card class="mb-4"> | |
| <v-card-title> | |
| Tower Config | |
| </v-card-title> |
Sometimes a PSSE won't open after install. This is almost always caused by an unexpected Python configuration.
If you're struggling with MOD, see the MOD Debug Notes
Behavior:
MOD File Builder often has trouble connecting to the PSSE API if the environment on your machine isn't exactly like PSSE/MOD expects.
This document show some common issues with MOD File Builder install and how to fix them.
If you can't get PSSE to open without MOD, you need to debug that first. Here are some PSSE Debug Notes
This file contains hidden or 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
| // Generate a Sankey diagram from a savnw case solve. | |
| // Values are entered by hand, so probably not accurate. | |
| // Loads are not shown so it looks like Kirchoff is violated | |
| // https://sankeymatic.com/build/ | |
| // | |
| // Enter Flows between Nodes, like this: | |
| // Source [AMOUNT] Target | |
| MINE G [260] MINE | |
| HYDRO G [600] HYDRO |
NewerOlder