Skip to content

Instantly share code, notes, and snippets.

@vofp
vofp / Lab6.tex
Created February 27, 2013 01:49
lab 6 write-up
% template created by: Russell Haering. arr. Joseph Crop
\documentclass[8pt,letterpaper]{article}
\usepackage{anysize}
\marginsize{2cm}{2cm}{1cm}{1cm}
\usepackage{listings}
\usepackage{color}
\usepackage{algorithm2e}
\usepackage{graphicx}
\usepackage{epstopdf}
\usepackage{courier}
@vofp
vofp / Assignment3ii.m
Created February 27, 2013 01:21
Assignment3ii
n = 2;
j = [0:n]
x = cos((j + .5) .* (pi / (n+1)))
f = 'exp(x)';
y = eval(f)
xplot = -1 : .001 : 1;
coeffs = polyfit(x,y,n);
polyplot = polyval(coeffs,xplot);
subplot(2,1,1);
@vofp
vofp / LCDDriver.asm
Last active December 13, 2015 22:08
Lab5 code
;***********************************************************
;*
;* LCDDriver.asm - V2.0
;*
;* Contains the neccessary functions to display text to a
;* 2 x 16 character LCD Display. Additional functions
;* include a conversion routine from an unsigned 8-bit
;* binary number to and ASCII text string.
;*
;* Version 2.0 - Added support for accessing the LCD
@vofp
vofp / t.c
Created January 19, 2013 18:25
/* CS261- Assignment 1 - Q.1*/
/* Name:
* Date:
* Solution description:
*/
#include <stdio.h>
#include<stdlib.h>
#include<math.h>
#include<time.h>
#include <iostream>
void multi(int a[10][10], int b[10][10], int c[10][10]){
int i,j,k;
for(i = 0; i < 10; ++i){
for(j = 0; j < 10; ++j){
int sum = 0;
for(k = 0; k< 10; ++k){
sum += a[k][j]*b[i][k];
}
/* Decision variables */
var a >= 0;
var b >= 0;
var c >= 0;
var t;
/* Objective function */
minimize z: t;
#include <unistd.h>
#include <iostream>
#include <fstream>
#include <sys/wait.h>
#include <stdio.h>
#include <fcntl.h>
#include <string.h>
#include <stdlib.h>
bool pipes_open(int words[],int count);
@vofp
vofp / main.c
Created October 21, 2012 02:23
/*
@file main.c
@brief Lab 2 Starter Code
@version .01
@mainpage Lab 2 Starter Code
@section intro Code Overview
@section hw Hardware Pin Out
Port A:
@vofp
vofp / renaming.sh
Created August 15, 2012 00:39
Bash file
ls Files > filenames.txt
for line in `grep .txt filenames.txt`;do
name=${line:0:-4}
mv Files/${name}.txt Files/${name}.dat
done
@vofp
vofp / Assignment7.cpp
Created June 7, 2012 20:46 — forked from joshua-bernick/Books
Assignment 7 Library Books
#include <cstdlib>
#include <iostream>
#include <iomanip>
#include <string>
#include <fstream>
#include <cmath>
#include <vector>
using namespace std;