Skip to content

Instantly share code, notes, and snippets.

@JamesJinPark
JamesJinPark / SchoolsOut.pl
Last active November 13, 2023 20:40
CIS 554 - HW1, part1
% James Park - CIS 554
% HW #1, part 1, "Schools Out"
% Each teacher is either male or female, teaches one subject, and is planning to visit
% a state and do an activity.
state(california).
state(florida).
state(maine).
state(oregon).
state(virginia).
@JamesJinPark
JamesJinPark / hangman.cpp
Created March 6, 2015 21:52
CIT 595 - HW5
/* James Park
* CIT 595 HW #5
*/
#include <iostream>
#include <stdlib.h>
#include <string>
#include <string.h>
#include <fstream>
#include <time.h>
@JamesJinPark
JamesJinPark / arduino.c
Created February 18, 2015 20:27
CIT 595 - HW3
/*
* @author : James Park, Ryan Smith, Rajveer Parikh
*/
#include <sys/types.h>
#include <errno.h>
#include <fcntl.h>
#include <stdio.h>
#include <stdlib.h>
#include <signal.h>
#include <string.h>
@JamesJinPark
JamesJinPark / tweets_main.c
Created January 28, 2015 02:46
CIT 595 - HW1
/* James Park
* CIT 595 HW #1
*/
#include <stdio.h>
#include <stdlib.h>
#include "hashtable.h"
#include <assert.h>
int main(int argc, char* argv[]) {
@JamesJinPark
JamesJinPark / tweets.c
Last active August 29, 2015 14:14
CIT 595 - HW1
void top_ten(hashtable* h){
node* top_hashtags[10] = { NULL };
for (int i = 0; i < CAPACITY; i++){
node* curr_node = h->list[i];
while (curr_node != NULL){
for (int j = 0; j < 10; j++){
node* top_node = top_hashtags[j];
@JamesJinPark
JamesJinPark / Collatz.java
Created January 22, 2015 05:03
CIT 594 - HW1
package collatz;
import java.util.List;
import java.util.ArrayList;
import java.util.Collections;
public class Collatz {
static int[] simpleComputeSequenceLengths(long n) {
if (n < 0) {
@JamesJinPark
JamesJinPark / common.c
Created January 16, 2015 19:30
CIT 595 - lab1
#include <stdio.h>
#include <assert.h>
/*
James Park
CIT 595 - Lab #1, Part 2
*/
int common(char* s1, char* s2, int *c){
//s1 and s2 points to strings, c points to an integer
@JamesJinPark
JamesJinPark / Negadecimal2.java
Created November 3, 2014 21:55
Assignment 9(2)
package negadecimalCalculator;
public class NegadecimalNumber {
NegadecimalNumber number;
int negaNumber;
int deciNumber;
String s;
public NegadecimalNumber(String s){
@JamesJinPark
JamesJinPark / Negadecimal.java
Created November 3, 2014 21:55
Assignment 9(1)
package negadecimalCalculator;
import java.util.Scanner;
public class NegadecimalCalculator {
public static void main(String[] args) {
// TODO Auto-generated method stub
new NegadecimalCalculator().REPL();
}
public String evaluate(String s){
}
@JamesJinPark
JamesJinPark / Assignment 5(2)
Last active August 29, 2015 14:07
library_test.py
import unittest
from library import *
lib = Library()
lib.open()
class CalendarTest(unittest.TestCase):
def test_calendar(self):
cal = Calendar()