Skip to content

Instantly share code, notes, and snippets.

@nicholaschuayunzhi
nicholaschuayunzhi / eslintrc.js
Last active January 21, 2018 05:13
markbind-cli eslintrc.js
module.exports = {
"env": {
"node": true, //enables parsing of predefined node.js global variables and node.js scoping
"es6": true //enables es6 syntax and new es6 global variables
},
"extends": "airbnb-base", //team decision to use airbnb as base style guide https://github.com/airbnb/javascript on top of
//nus oss standard https://github.com/oss-generic/process/blob/master/docs/CodingStandards.adoc
"rules": {
"array-bracket-newline": ["error", { "multiline": true }], //to be consistent with object-curly-newline rule and nus oss standard
"func-names": "off", //we have many anonymous functions, leaving it on will result in many linter warnings
@nicholaschuayunzhi
nicholaschuayunzhi / _config.yml
Created December 16, 2017 19:31
Config File used to build jekyll site
# Site settings
title: Hanuman
description: Hanuman is a minimal yet powerful Jekyll theme for your blogs and websites.
cover: assets/images/radhakrishna.jpg
logo: assets/images/logo.png
favicon: assets/images/favicon.png
baseurl: "/" # the subpath of your site, e.g. /blog/ or / for root
url: "https://nicholaschuayunzhi.github.io" # the base hostname & protocol for your site
paginate: 5 # The number of posts to show per page on your homepage
@nicholaschuayunzhi
nicholaschuayunzhi / main.cpp
Last active December 10, 2017 08:08
CS3241 Game
// CS3241Lab3.cpp : Defines the entry point for the console application.
//#include <cmath>
#include "math.h"
#include <iostream>
#include <fstream>
#include <chrono>
#include <random>
#ifdef _WIN32
#include <Windows.h>