Skip to content

Instantly share code, notes, and snippets.

View vaskaloidis's full-sized avatar

Vas Kaloidis vaskaloidis

View GitHub Profile
@vaskaloidis
vaskaloidis / gist:6265757
Created August 19, 2013 04:24
C++ 3D City Building Fly-Through
#include GLUT/glut.h
#include iostream
#include stdlib.h
#include math.h
#include cmath
using namespace std;
class wcPt2D // class to represent a 2D point
@vaskaloidis
vaskaloidis / gist:6265765
Created August 19, 2013 04:27
C++ Spinning Cube
#include GLUT/glut.h
#include iostream
#include stdlib.h
#include math.h
#include cmath
using namespace std;
class wcPt3D // class to represent a 2D point
@vaskaloidis
vaskaloidis / gist:6265770
Created August 19, 2013 04:28
Java Directory App
package project5;
import java.util.*;
import java.io.*;
public class Main {
public static void main(String[] args) throws IOException {
Scanner in = new Scanner(System.in);
System.out.println("Enter the name of the file containing the directory you would like to load:");
String fileName = in.nextLine();
@vaskaloidis
vaskaloidis / gist:6265777
Created August 19, 2013 04:29
Java File Parser
package project5;
import java.io.*;
public class fileParser {
public fileParser(String inputFile){
fileName = inputFile;
}
public String[][] getArray() throws IOException{
FileReader fr = new FileReader(fileName);
@vaskaloidis
vaskaloidis / gist:6265780
Created August 19, 2013 04:29
Java Merge Sorter
package project5;
public class MergeSorter
{
public MergeSorter(int[] anArray)
{
a = anArray;
}
@vaskaloidis
vaskaloidis / gist:6265786
Created August 19, 2013 04:30
Java Bin Search
package project5;
public class binSearch {
public binSearch(String[] input, String toSearch){
inp = input;
search = toSearch;
}
public static int search() {
int begin = 0;
@vaskaloidis
vaskaloidis / addit.s
Created August 19, 2013 04:35
Mips Positive Addit Function
.data
inputA: .word 4 #Where we temporarily put inputA
inputB: .word 4#Where we temporarily put inputB
askA : .asciiz "Please enter letter A: " #String to ask for letter A
askB : .asciiz "Please enter letter B: " #String to ask for letter B
@vaskaloidis
vaskaloidis / fparray.s
Last active October 7, 2022 17:51
Mips Single Precision Floating Point Unit (FPU) Array
.data
break: .asciiz "\n"
ask: .asciiz "Please enter a random 4 digit number for a seed: "
input: .float 4
list : .word 100
package edu.hartford.cs375.geocode.web;
import javax.ejb.EJB;
import javax.jws.WebService;
import edu.hartford.cs375.geocode.ejb.GeoCoordinates;
import edu.hartford.cs375.geocode.ejb.Geocoder;
@WebService(
name="GeoCodeService",
package edu.hartford.cs375.geocode.web;
import javax.jws.WebParam;
import javax.jws.WebResult;
import javax.jws.WebService;
import edu.hartford.cs375.geocode.ejb.GeoCoordinates;
//import edu.hartford.cs375.geocode.ejb.Geocoder;
@WebService
public interface GeoCodeWebService {