This file contains 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
""" | |
Simple code to automatically extract dependencies from C/C++ files and | |
generate Make target rules | |
""" | |
def get_deps(filename): | |
dep_set = set() | |
with open(filename, 'r') as f: | |
for line in f: | |
tokens = line.strip().split() |
This file contains 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
""" | |
Simple script to convert printed output from traditional | |
SPICE simulators into a single csv file / dataframe. | |
Usage | |
----- | |
python spice2csv.py output.prn | |
Use: |
This file contains 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
import csv | |
header = r""" | |
\documentclass[mathserif]{beamer} | |
\usetheme{default} | |
\begin{document} | |
""" | |
footer = r""" | |
\end{document} |