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
%mirror.m | |
%calculates mirror geometry action for MTUAF | |
function main() | |
%inputs, Units in inches | |
b=cart2both([-0.5,-0.5]); %bottom of screen | |
[th,r]=pol2cart(deg2rad(90),0.5*12); %top of screen | |
a=[th,r]+b{1}; | |
topangle=deg2rad(40);%top inside angle | |
bottomangle=deg2rad(100);%bottom inside angle | |
m_dist=12;%distance down c where mirror starts |
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 xn = subset(x,n) | |
%subsets array x to xn with every nth row | |
%Written by Josh Holbrook and Marcus Curley | |
%for Thermal Systems Lab | |
xn = x(:,1); | |
for i = 1:n:size(x,2) |
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 | |
from libtsl import subset,htparams,sphere | |
from numpy import array, exp | |
from matplotlib.pyplot import * | |
from keas.unit.unit import UnitConverter | |
#Reads in data points | |
datareader=csv.reader(open('friday_aluminum_sphere.csv')) | |
time=[] | |
temp=[] |
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 xn = subset(x,n) | |
%subset(x,n) | |
%sub sets array x to xn with every nth row | |
%example: | |
%> x=[1:10]; | |
%> subset(x,2) | |
% ans = [2 4 6 8] | |
xn = x(:,1); | |
for i = 1:n:size(x,2) | |
xn = [xn x(:,i)]; |
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 out=subset(in,n) | |
%subset(row_vector,spacing) | |
%subsets a row vector | |
%by Josh Holbrook and Dustin Ray | |
out=in(floor(linspace(1,size(in,2),n))); | |
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
model | number | rpm | factor | |
---|---|---|---|---|
RV | 1 | 0.5 | 200 | |
RV | 1 | 1 | 100 | |
RV | 1 | 2 | 50 | |
RV | 1 | 2.5 | 40 | |
RV | 1 | 4 | 25 | |
RV | 1 | 5 | 20 | |
RV | 1 | 10 | 10 | |
RV | 1 | 20 | 5 | |
RV | 1 | 50 | 2 |
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
josh@gengar:~$ if echo 'segmentation fault {mlroot} {butt} {fruit}' | grep -c 'segmentation fault' ; then echo "true"; fi | |
1 | |
true |
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
OBTW | |
USED MATHIFIED VRSN OF INTERPRETER FROM http://www.icanhaslolcode.org/ | |
NAOW INCLUDES POWR AN LOLG (pow() and log() from math.h) | |
U CAN FIND @ http://github.com/jesusabdullah/lolcode | |
ALSO http://lolcode.com/specs/1.2 AN http://lolcode.com/proposals/1.3/bukkit | |
O AN SOME OBJECT STUFF?? IZ CONFUSING | |
CRUISE CONTROL ETC | |
WRITTN BY JOSHUA HOLBROOK | |
ADOPTED FROM `Computer Code to Calculate h "RODS-415"' FROM ZARLING | |
LICENSED UNDER THE WTFPL |
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
HAI 1.2 | |
BTW USING LOLCODE FOR A MUCH EASIER LAB | |
BTW THIS IS A PANEL OBJECT | |
O HAI IM PANEL | |
I HAS A THIKNISS | |
I HAS A THOT | |
I HAS A TCOLD | |
I HAS A HFM | |
I HAS A K |
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 random | |
''' | |
generates a pdf with a bunch of randomized bingo cards using entries from bingo.txt | |
Having issues getting formatting to work exactly how I want, though, | |
and, of course, it'd be a lot more useful if it could run on windows without | |
depending on latex and tikz and everything else... >_< | |
making it a webapp would be nice, but that sounds like a lot of work. :P | |
''' |
OlderNewer