for (var i = 1; i <= N; i *= 2) {
for (var j = 1; j <= N; j *= 2) {
for (var k = 1; k <= i; k++) {
constantTime();
}
}
}
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 <iostream> | |
#include <string> | |
std::string eval(std::string input) | |
{ | |
return std::string("\"") + input + std::string("\""); | |
} | |
const std::string PROMPT = "> "; |
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@koffing:~/dev/condenast/autopilot-vf$ netstat -r -n | |
Routing tables | |
Internet: | |
Destination Gateway Flags Refs Use Netif Expire | |
default 192.168.1.1 UGSc 1 0 en0 | |
127 127.0.0.1 UCS 0 0 lo0 | |
127.0.0.1 127.0.0.1 UH 29 1542009 lo0 | |
169.254 link#4 UCS 0 0 en0 | |
192.168.1 link#4 UCS 0 0 en0 |
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 |
OlderNewer