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
FILES = $(wildcard *.sp) | |
OUTPUT = $(FILES:.sp=.lis) | |
all: $(OUTPUT) | |
%.lis: %.sp | |
hspice $< > $@ | |
clean: | |
rm -f $(OUTPUT) |
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
#include "DSP_Config.h" | |
#include "filter.h" | |
#define LEFT 0 | |
#define RIGHT 1 | |
// used for array length (bound defined) | |
#define N 4 | |
#define M 4 |
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
#!/usr/bin/env sh | |
for arg; do | |
# ptint out folder structure to remove | |
printf "\n Folder to remove: $arg\n\n" | |
tree "$arg" | |
printf "\n[y/n] Remove folder? " | |
read CONTINUE |
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
CREATE OR REPLACE FUNCTION heartrate() | |
RETURNS TABLE(nodeid integer, hrbpm numeric) AS | |
$BODY$ | |
DECLARE r record; | |
BEGIN | |
FOR r IN SELECT DISTINCT wampum.nodeid FROM wampum ORDER BY nodeid | |
LOOP | |
RETURN QUERY SELECT wampum.nodeid, wampum.hrbpm FROM wampum | |
WHERE wampum.nodeid=r.nodeid ORDER BY id DESC LIMIT 1; | |
END LOOP; |
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
function [] = genPlots( t ) | |
% pass in your table to plot area | |
% t = opennlm; | |
close all; | |
labsize = 50; | |
ticksize = 30; | |
tname = inputname(1); | |
xtrange = [0:100:500]; |
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
% required package for plotting | |
\usepackage{pgfplots} | |
% required package for plotting | |
\begin{center} | |
\begin{tikzpicture} | |
\begin{axis}[ | |
title={Question 2}, | |
xlabel={Nodes}, | |
ylabel={Voltage (V)}, |
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
#/usr/bin/env perl -w | |
# by jeremy warner, f14 | |
use strict; | |
# determine number of channels to test | |
die "enter \# channels, then sectors\n" unless @ARGV == 2; | |
my ($chan, $sect) = @ARGV; | |
# program constants |
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
#!/bin/bash | |
# status - a git tool by jeremy warner | |
# cycle through subfolders, run git status, cleanup | |
# check if verbose | |
for arg; do if [[ $arg == "-v" ]]; then verbose="true"; fi; done |
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
#!/usr/bin/env ruby | |
# add colors | |
class String | |
def colorize(bg) | |
"\e[0;0;#{bg}m#{self}\e[0;0m" | |
end | |
end |
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
group = 0..8 | |
threads = [] | |
group.each do |member| | |
threads << Thread.new do | |
# DO MULTITHREADING HERE | |
# puts member | |
end |
OlderNewer