Skip to content

Instantly share code, notes, and snippets.

@cwebber314
cwebber314 / index.html
Created February 24, 2018 22:13
walking_drum_hide
<h2>
cytoscape.js with hide
</h2>
<p>
Double-click to collapse neighbors. Move nodes around so edges are visible.
</p>
<div id="cy">
</div>
@cwebber314
cwebber314 / mutualz_math.ipynb
Last active November 30, 2018 01:08
Example of how to partition phase impedance matrix to calculate the zero sequence mutual impedance.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file has been truncated, but you can view the full file.
STLB ATF 8.12.0.6 COLOR=   ÿ î¥ r=4?r=4¿Õ½½0u¹¿ AÆÆ´B
^XÀ à@ÎϵB À¿ A ´BsNr=4?r=4¿Õ½½ À¿ A ´B
^XÀ à@ÎϵB `À à@ ´BsNr=4?r=4¿Õ½= À¿ A ´B `À à@ ´B0u¹¿ A:9³BsNr=4?r=4¿Õ½=0u¹¿ A:9³B `À à@ ´B
^XÀ à@20²BsNüô'?r=4¿Þ#‹>0u¹¿ A:9³B
^XÀ à@20²BáF¦¿ A €²BsNüô'?r=4¿Þ#‹>áF¦¿ A €²B
^XÀ à@20²B\ýAÀ à@ €°BsNY:?r=4¿WÝ>áF¦¿ A €²B\ýAÀ à@ €°B¶Ã‡¿ Añà±BsNY:?r=4¿WÝ>¶Ã‡¿ Añà±B\ýAÀ à@ €°BUdÀ à@Ý ¯BsNWÝ>r=4¿Y:?¶Ã‡¿ Añà±BUdÀ à@Ý ¯B @¿ Aäf±BsNWÝ>r=4¿Y:? @¿ Aäf±BUdÀ à@Ý ¯B à¿ à@ð­BsNÞ#‹>r=4¿üô'? @¿ Aäf±B à¿ à@ð­BåÅƾ A+±BsNÞ#‹>r=4¿üô'?åÅƾ A+±B à¿ à@ð­Báæg¿ à@=­BsNÕ½=r=4¿r=4?åÅƾ A+±Báæg¿ à@=­BÊÉÓ$ A ±BsNÕ½=r=4¿r=4?ÊÉÓ$ A ±Báæg¿ à@=­Bw% à@ ­BsNÕ½½r=4¿r=4?ÊÉÓ$ A ±Bw% à@ ­BåÅÆ> A+±BsNÕ½½r=4¿r=4?åÅÆ> A+±Bw% à@ ­Báæg? à@=­BsNÞ#‹¾r=4¿üô'?åÅÆ> A+±Báæg? à@=­B @? Aäf±BsNÞ#‹¾r=4¿üô'? @? Aäf±Báæg? à@=­B à? à@ð­BsNWݾr=4¿Y:? @? Aäf±B à? à@ð­B¶Ã‡?
@cwebber314
cwebber314 / psspy_hello_world_v34.py
Created July 27, 2020 16:48
Hello World for python api for PSSE v34.x
"""
With Python 3.7.5 and PSSE v34.7
"""
import os
import sys
sys_paths = [
r'C:\Program Files (x86)\PTI\PSSE34\PSSPY37'
]
"""
With Python 2.7 and PSSE v34.7
"""
import os
import sys
sys_paths = [
r'C:\Program Files (x86)\PTI\PSSE34\PSSPY27'
]
"""
With Python 2.7 and PSSE v33.x
"""
import os
import sys
print 'Hello world'
sys_paths = [
r'C:\Program Files (x86)\PTI\PSSE33\PSSBIN'
@cwebber314
cwebber314 / ieee738_temperature_rise_breaker.ipynb
Created November 14, 2020 21:51
IEEE738 Temperature rise calculations for example fault with breaker reclosing
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@cwebber314
cwebber314 / tab2shp_instructions.md
Last active February 24, 2021 18:53
Convert MapInfo (.TAB) file to ESRI shapefile

Converting a MapInfo File

Open a cmd.exe windows and setup the python env for ArcGIS:

"c:\Program Files\ArcGIS\Pro\bin\Python\Scripts\activate.bat"
activate arcgispro-py3

Then modify this command to convert from a MapInfo file to shapefile:

@cwebber314
cwebber314 / message_copy_bot.ts
Last active May 5, 2021 05:01
discord pylon bot to copy messages which match a pattern
// Bot to copy messages which match a pattern from one channel to another
// edit the vars below
var SOURCE_CHANNEL = '830874514241749013'; // #rconlog
var DEST_CHANNEL = '804394923947851796'; // #The-Gulag
var PATTERN1 = 'do_punish';
var PATTERN2 = 'do_kick';
var PATTERN3 = 'do_perma_ban';
var PATTERN4 = 'do_temp_ban';
var PATTERN5 = 'unban';