Skip to content

Instantly share code, notes, and snippets.

@capn-freako
capn-freako / ImpulseResponseFromSparams.ipynb
Created January 31, 2023 12:04
Channel Impulse Response from S-params
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@eyeseast
eyeseast / python.md
Last active May 25, 2025 08:27
How to set up Python in 2022

I have an updated version of this on my blog here: https://chrisamico.com/blog/2023-01-14/python-setup/.

Python

This is my recommended Python setup, as of Fall 2022. The Python landscape can be a confusing mess of overlapping tools that sometimes don't work well together. This is an effort to standardize our approach and environments.

Tools and helpful links:

  • Python docs: https://docs.python.org/3/
  • Python Standard Library:  - Start here when you're trying to solve a specific problem
@jancumps
jancumps / pwm.vhd
Last active May 5, 2024 08:28
vhdl PWM with dead band. Based on PWM example code from XESS Corp
--**********************************************************************
-- Copyright (c) 2011-2014 by XESS Corp <http://www.xess.com>.
-- All rights reserved.
--
-- This library is free software; you can redistribute it and/or
-- modify it under the terms of the GNU Lesser General Public
-- License as published by the Free Software Foundation; either
-- version 3.0 of the License, or (at your option) any later version.
--
-- This library is distributed in the hope that it will be useful,
@jkutner
jkutner / atik-indi-phd2-raspbian-instructions.md
Last active May 22, 2025 18:49
Turn a Raspberry Pi into an Astrophotography Autoguider
@zlorb
zlorb / MSProject.py
Last active September 4, 2025 17:24
MSProject - Python
import sys, time, datetime
from copy import copy, deepcopy
from collections import OrderedDict
import string
import math
import win32com.client
import traceback
# Sample code for accessing MSProject
# 2014 (C) Zohar Lorberbaum
@xesscorp
xesscorp / ParallelResistors.py
Created September 25, 2011 15:33
Program for computing the best resistors to parallel in order to synthesize the 168 standard resistor values.
MAX_FLOAT = 10E99
NUM_RESISTORS = 3
resistorRoots = [ 1.0, 1.1, 1.2, 1.3, 1.5, 1.6, 1.8, 2.0, 2.2, 2.4, 2.7, 3.0,
3.3, 3.6, 3.9, 4.3, 4.7, 5.1, 5.6, 6.2, 6.8, 7.5, 8.2, 9.1 ]
resistorDecades = range(0, 7)
standardResistors = [r * 10 ** d for r in resistorRoots for d in resistorDecades]
def CalcParallelResistance(r0, r1=MAX_FLOAT, r2=MAX_FLOAT):