Skip to content

Instantly share code, notes, and snippets.

@AHaliq
AHaliq / CodeCard.java
Last active October 4, 2019 07:53
Classes to model flashcards
abstract class CodeCard implements FlashCard {
protected String question;
protected String output;
public JavascriptCard(String q, String o) {
question = q;
output = o;
}
abstract render...
@AHaliq
AHaliq / ex2.c
Last active October 3, 2019 02:52
CS2106 Lab3 ex2 Haliq
/*************************************
* Lab 3 Exercise 2
* Name: Abdul Haliq
* Student No: A0125431U
* Lab Group: B-08
*************************************/
#include <pthread.h>
#include "rw_lock.h"
@AHaliq
AHaliq / sketch.js
Last active December 10, 2019 08:44
Coding Train Challenge #125, fourier series implemented in functional style with waves in terms of amplitude, frequency and range
let STAGE_WIDTH = 800;
const STAGE_HEIGHT = 400;
const L_BORDER = 25;
const COLBG = 220;
const COL1 = 100;
const COL2 = 195;
const PIVOTRADI = 10;
const LINEGAP = 5;
let UNITRADI = 50;
let DW;