Skip to content

Instantly share code, notes, and snippets.

View michaeltryby's full-sized avatar
💭
I may be slow to respond.

Michael Tryby michaeltryby

💭
I may be slow to respond.
View GitHub Profile
@michaeltryby
michaeltryby / !_swmm-input.lark
Last active January 29, 2024 20:53
EBNF grammar for SWMM input files
//
// swmm-input.lark
//
// Created: Dec 6, 2023
// Updated: Dec 21, 2023
//
// Author: Michael E. Tryby
// US EPA - ORD/CESER
//
// Note: Use Earley parser
@michaeltryby
michaeltryby / build.yml
Created June 23, 2021 20:30
GitHub Actions CI build for Win32 and Win64 swmm-solver
#
# build.yml - GitHub Actions CI build for Win32 and Win64 swmm-solver
#
# Created: June 23, 2021
# Updated:
#
# Author: Michael E. Tryby
# US EPA - ORD/CESER
#
@michaeltryby
michaeltryby / private_fork.md
Created April 20, 2021 20:49 — forked from 0xjac/private_fork.md
Create a private fork of a public repository

The repository for the assignment is public and Github does not allow the creation of private forks for public repositories.

The correct way of creating a private frok by duplicating the repo is documented here.

For this assignment the commands are:

  1. Create a bare clone of the repository. (This is temporary and will be removed so just do it wherever.)

git clone --bare git@github.com:usi-systems/easytrace.git

@michaeltryby
michaeltryby / profile.py
Created October 20, 2020 17:12 — forked from ekhoda/profile.py
A profile decorator
import cProfile
import pstats
from functools import wraps
def profile(output_file=None, sort_by='cumulative', lines_to_print=None, strip_dirs=False):
"""A time profiler decorator.
Inspired by and modified the profile decorator of Giampaolo Rodola:
http://code.activestate.com/recipes/577817-profile-decorator/
@michaeltryby
michaeltryby / root-CMakeLists.txt
Last active June 30, 2021 21:46
Builds SWMM CLE
#
# CMakeLists.txt - CMake configuration file for old swmm-solver releases
#
# Created: June 4, 2020
# Updated: June 30, 2021
#
# Author: Michael E. Tryby
# US EPA ORD/CESER
#
# Build Information:
@michaeltryby
michaeltryby / ShapeViewer.py
Created September 27, 2018 12:06
PyQGIS ShapeViewer Demo
from qgis.core import *
from qgis.gui import *
from qgis.utils import iface
from PyQt5.QtCore import *
from PyQt5.QtWidgets import QApplication, QMainWindow, QFileDialog, QVBoxLayout
from PyQt5.QtGui import *
import sys
import os