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 / 00-hello-world.html
Created April 5, 2019 16:52
CS371 React Samples with Dropin Scripts
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta http-equiv="X-UA-Compatible" content="ie=edge" />
<title>Hello React</title>
<script src="https://unpkg.com/react@16/umd/react.development.js"></script>
<script src="https://unpkg.com/react-dom@16/umd/react-dom.development.js"></script>
<script src="https://unpkg.com/babel-standalone@6.26.0/babel.js"></script>
@dulimarta
dulimarta / intr_scanf.c
Created February 14, 2019 23:04
CS452 Interrupted calls
#include <stdio.h>
#include <signal.h>
void handler(int x) {
printf ("Got the signal\n");
}
int main() {
char val[50];
struct sigaction act;
@dulimarta
dulimarta / webtest.js
Created January 23, 2019 01:16
CS371 Jasmine Unit Tests for HW2
var MyCSSRules;
describe('Web Page Homework', () => {
const MY_HTML_FILE = 'completed.html';
var mTable;
var page, pageStr;
var cssURL;
const findSelectorWithPropAndValue = (prop, value) => {
// console.debug(`Looking for selector with property ${prop}`)
@dulimarta
dulimarta / searchmovie.php
Created October 12, 2018 23:10
CS371 Search Movie
<?php
session_start();
?>
<head>
<link rel="stylesheet" href="imovenlater.css">
</head>
<body>
<h1 class="logo">i-Move-n-Later</h1>
<?php
require_once '/home/dulimarh/dbconfig.php';
@dulimarta
dulimarta / hw3-functions.js
Created September 14, 2018 04:13
CS371 HW3 function stubs
/**
* Created by Hans Dulimarta
* TODO: Add your name below this line
*/
/**
* Given the ID of a node {rootId}, find all its descendant elements having
* its attribute id set and then change their class to {klazName}.
* The function returns the number of such elements found.
*
@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).
*/