Skip to content

Instantly share code, notes, and snippets.

View ifndefJOSH's full-sized avatar

Josh Jeppson ifndefJOSH

View GitHub Profile
@ifndefJOSH
ifndefJOSH / factorize.py
Last active September 1, 2023 03:48
Factor tree using graphviz
#!/usr/bin/env python3
'''
Simple script which creates a factor tree in pdf format for any given
number using the graphviz library. Did on a whim because I've never used
graphviz before. Maybe should have done MTBDDs rather than factor trees?
Oh, well, maybe next time.
No warranty is provided. MIT license.
By ifndefJOSH on GitHub
@ifndefJOSH
ifndefJOSH / threading_demo.py
Created April 7, 2023 19:58
Simple Multithreading example in Python
#!/usr/bin/env python3
'''
Simple multithreading demo. Written 4/7/23 by Josh Jeppson (ifndefJOSH).
No warranty is given or implied. This was written to show a coworker how to get started with multithreading in Python.
'''
import threading
from os import cpu_count
# This will allow someTask() to take varied amounts of time
@ifndefJOSH
ifndefJOSH / main.py
Created February 15, 2023 17:15
PyQt5 Demo with some solutions to a couple easy job interview questions (palendrome and letter count)
#!/usr/bin/env python3
import sys
from PyQt5 import QtWidgets
from PyQt5.QtWidgets import QMessageBox
def isPalendrome(aString):
for i in range(len(aString) // 2):
if aString[i] != aString[len(aString) - 1 - i]:
return False
@ifndefJOSH
ifndefJOSH / installTools.sh
Last active February 15, 2022 19:58
Installs the stuff we use in FluentVerification
#!/bin/bash
###########################################
#
# Install Script for FluentVerification tools
# Tools installed:
# 1. PRISM
# 2. Stamina 2.0 with PRISM
# 3. STORM
# 4. IVy
@ifndefJOSH
ifndefJOSH / fft.cpp
Created December 10, 2021 04:01
Simple FFT in C++
/**
* Implementation for FFT and IFFT functions
*
* By Josh Jeppson
*
* Note: This took me a grand total of 26 lines in Python
* */
#include "fft.h"