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
/** | |
* Array Queue class | |
* Takes data into an array. The first item to enter is the first to | |
* be returned. This is the opposite of a Queue. | |
* | |
* @Alex Frazer | |
*/ | |
import java.util.Random; | |
public class ArrayQueue<T> |
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
package Grid; | |
import javax.swing.JFrame; | |
public class GUI | |
{ | |
public static void main(String [] args) { | |
GridFriend grid = new GridFriend(); | |
grid.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); | |
grid.setSize(700, 1000); | |
grid.setVisible(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
/* | |
* Client FTP program | |
* | |
* NOTE: Starting homework #2, add more comments here describing the overall function | |
* performed by server ftp program | |
* This includes, the list of ftp commands processed by server ftp. | |
* | |
*/ | |
#include <sys/types.h> |
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
/* | |
* reads files | |
* @Alex "Crowz" Frazer | |
*/ | |
#include <stdio.h> | |
#include <string.h> | |
#define OK 0 | |
#define FILE_NOT_FOUND -1 |
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
/* | |
* Client FTP program | |
* | |
* Clientftp program | |
* sends and receieves messages with serverftp. | |
* Commands are: user, passwd, put, recv, ls, pwd, help, stat, mkdir, dele, rmdir | |
* @Crowz | |
*/ | |
#include <sys/types.h> |
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
/* | |
* Client FTP program | |
* | |
* Clientftp program | |
* sends and receieves messages with serverftp. | |
* Commands are: user, passwd, put, recv, ls, pwd, help, stat, mkdir, dele, rmdir | |
* @Crowz | |
*/ | |
#include <sys/types.h> |
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
Script started on Sun Nov 11 14:12:31 2012 | |
[?1034h([38;5;38malex[0m@[1;35mAdministrators-Mac-mini[0m) [1;31m14:12[0m | |
[38;5;120m~/ftp/client [38;5;221m[master*] [38;5;34m$[0m ./ck lientftp | |
Started execution of client ftp | |
Calling clntConnect to connect to the server | |
warning: this program uses gets(), which is unsafe. | |
my ftp> put squie dward.txt | |
my ftp> quit |
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
/** | |
* An imagereader that doesn't look at all like the professors + an edge detector. >.> | |
* (in my defense, it's mostly reading the API). | |
* I will use the Sobel's Operator, because I think it's the prettiest and I'm an annoying, pretentious, artist. | |
* Sobel's operator works by using a 3x3 matrix kinda operation to find the abruptness of change in rgb values. | |
* Therefore, my strategy will be to use a for loop to iterate through all the pixels and use this operator on all of them. | |
* Hopefully it works out. | |
*/ | |
import java.awt.Color; |
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 "image.h" | |
#include "matrix.h" | |
#include <vector> | |
#include <iostream> | |
class image { | |
int main() { | |
matrix *smallMatrix=new matrix; | |
} | |
}; |
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
public class AVLtree<T extends Comparable<? super T>> | |
{ | |
private class TreeNode { | |
T data; | |
TreeNode left, right; | |
TreeNode(T data, TreeNode left, TreeNode right) { | |
this.data = data; | |
this.left = left; | |
this.right = right; | |
} |
OlderNewer