Skip to content

Instantly share code, notes, and snippets.

View dulimarta's full-sized avatar

Hans Dulimarta dulimarta

  • School of Computing and Information Systems, Grand Valley State University
  • Grand Rapids, Michigan
View GitHub Profile
@dulimarta
dulimarta / TenTwentyFourTester.java
Created September 12, 2018 21:52
Unit test for 1024 game
package game1024.test;
import game1024.*;
import org.junit.*;
import java.util.*;
import static org.junit.Assert.*;
public class TenTwentyFourTester {
@dulimarta
dulimarta / NumberSlider.java
Created September 12, 2018 05:27
The interface of 1024 game.
package game1024;
import game1024.Cell;
import java.util.ArrayList;
/**
* Created by Hans Dulimarta
*/
public interface NumberSlider {
@dulimarta
dulimarta / TextUI.java
Created September 12, 2018 04:01
Text User Interface for 1024 game
package game1024.ui;
import game1024.*;
import java.util.ArrayList;
import java.util.Scanner;
/**
* Created by Hans Dulimarta
*/
@dulimarta
dulimarta / index.html
Created January 10, 2018 19:48
CS367 Minimal index.html
<!DOCTYPE html>
<html lang="en">
<body>
Hello World!
</body>
</html>
@dulimarta
dulimarta / TwoDimensionalArraysTest.java
Created October 4, 2017 05:40
CIS163 Lab: 2D Arrays Tester
package cs163.arrays2d;
import cs163.arrays2d.TwoDimensionalArrays;
import org.junit.Test;
import static org.junit.Assert.*;
/**
* Created by Hans Dulimarta (Fall 2017).
*/
@dulimarta
dulimarta / TwoDimensionalArrays.java
Last active October 4, 2017 05:39
CIS163 Lab: 2D Arrays
package cs163.arrays2d;
/**
* Created by Hans Dulimarta (Fall 2017).
*/
public class TwoDimensionalArrays {
/**
* Given a 2D array of integers, sumOfOdd() returns the sum of all the odd
* numbers in the array
@dulimarta
dulimarta / hw3-randomtext.html
Last active February 8, 2019 20:33
CS371 HW3 Random Text
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/html">
<head lang="en">
<meta charset="UTF-8"/>
<title>Random Text</title>
<link rel="stylesheet" href="https://www.cis.gvsu.edu/~dulimarh/CS371/hw3-style.css"/>
<!-- lorem-ipsum.js: https://gist.github.com/rviscomi/1479649 -->
<script src="https://www.cis.gvsu.edu/~dulimarh/CS371/lorem-ipsum.js"></script>
<script src="https://www.cis.gvsu.edu/~dulimarh/CS371/hw3-verifier.js"></script>
<script src="hw3-functions.js"></script>
@dulimarta
dulimarta / hw3-gentable.html
Last active February 8, 2019 20:56
CS371 HW3 Generate Table
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<link rel="stylesheet" href="https://www.cis.gvsu.edu/~dulimarh/CS371/hw3-style.css"/>
<script src="https://www.cis.gvsu.edu/~dulimarh/CS371/lorem-ipsum.js"></script>
<script src="https://www.cis.gvsu.edu/~dulimarh/CS371/hw3-verifier.js"></script>
<script src="hw3-functions.js"></script>
<title>Generated Table</title>
</head>
@dulimarta
dulimarta / WebClient.java
Created August 28, 2017 02:23
CS371 - Simple Web Client
package edu.gvsu.cis;
public class WebClient {
public static void main(String[] args) {
String hostName = "localhost";
int portNumber = 8000;
// Step 1: Create a socket that connects to the above host and port number
@dulimarta
dulimarta / gist:86cca9995186e4fb12de97d01297ef9b
Last active June 9, 2017 15:21
Gradle productFlavors for Java+Kotline Coexistence
apply plugin: 'com.android.application'
apply plugin: 'kotlin-android'
android {
compileSdkVersion 24
buildToolsVersion "25.0.2"
// other settings not shown
flavorDimensions "lang"