Skip to content

Instantly share code, notes, and snippets.

At work

Edric Chan EdricChan03

At work
View GitHub Profile
EdricChan03 /
Created Feb 3, 2020
Preserved Java code I wrote possibly 3-4 years ago. This used to be part of a GitHub repository (EdricChan03/Java) which has since been deleted.
/*This file shows the capabilities of if-then commands*/
import java.util.Scanner; //Imports java.util.Scanner
public class GradeCheck {
private static Scanner mathNumber;
private static Scanner engNumber;
private static Scanner sciNumber;
public static void main(String[] args) {
int OverallScore, OverallGrade; //Sets OverallScore and OverallGrade
EdricChan03 /
Last active Feb 27, 2019
New Material Design Icons 🎉

New Material Design Icons 🎉

It appears that there's new CSS fonts on the Google Fonts API for the new Material Icon variants.

A Pen by Edric Chan on CodePen.


EdricChan03 / material-colors.scss
Created Jun 11, 2018
Angular Material colors.
View material-colors.scss
// This file is used for generating styles for Angular Material
/// An array of values
/// @author Edric Chan
$mat-colors: (
"red": $mat-red,
"pink": $mat-pink,
"purple": $mat-purple,
"deep-purple": $mat-deep-purple,
"indigo": $mat-indigo,
EdricChan03 / full.log
Created May 16, 2018
Log of Angular Material Schematics after running `ng update @angular/material`
View full.log
edricchan@Edrics-Macbook-Pro:~/Desktop/Projects/rss-reader/rss-reader-web$ ng update @angular/material
Updating package.json with dependency @angular/cdk @ "6.0.1" (was "6.0.0-beta.4-c28549d")...
Updating package.json with dependency @angular/material @ "6.0.1" (was "6.0.0-beta.4-c28549d")...
UPDATE package.json (2247 bytes)
removed 9 packages and updated 2 packages in 21.183s
[!] 80 vulnerabilities found [25292 packages audited]
Severity: 36 Low | 23 Moderate | 21 High
Run `npm audit` for more detail
CREATE angular_material_schematics-YOsO24/collection.json (1251 bytes)
EdricChan03 /
Last active Sep 20, 2018
[No longer maintained] LineageOS Changelogs for hlte.

LineageOS 15.1 Changelog - 28/3/2018


  • Update launch screen icon of AOSP Calendar
  • LineageOS API Level bump to 9 (Llama)
  • SELinux is now enforcing! :) This should remove the red text (which shouldn't be annoying) that displays when booting.
  • New toggles added for touchscreen! You can now customize the sensitivity of the touchscreen, as well as touch hovering! :D See this commit for more info.


  • "Corrupted SD card" notifications/Unable to access SD card (Could be caused by this commit)
  • NFC
EdricChan03 /
Last active Jul 29, 2017 — forked from AvnerCohen/
Node.js - npm Cheat Sheet

Node.js - npm Cheat Sheet

(Full description and list of commands at -

List of less common (however useful) NPM commands

Prepand ./bin to your $PATH

Make sure to export your local $PATH and prepand relative ./node_modules/.bin/:

EdricChan03 / template-for-angularjs-material.html
Last active Jun 11, 2017
Template for AngularJS Material 🎉
View template-for-angularjs-material.html
<title>Template for Angular Material</title>
<script src=""></script>
<script src=""></script>
<script src=""></script>
<script src=""></script>
<!--NOTE: Since Google hasn't served versions past v1.1.1, I will use>
<script src=""></script>
<link href="" rel="stylesheet" />
EdricChan03 / app.js
Last active Jan 13, 2017
Angular - Getting Started
View app.js
// angular.module('BlankApp', ['dependency1', 'app.directive'])
* Note that you can import controllers too!
* Example:
* angular.module('dependencies', []).
* controller(
* ...
* )
* angular.module('TestApp', ['dependencies', 'ngMessages', ...]).
View index.html
<html lang="en" dir="ltr">
Add stuff you want to import
Below is the syntax for CSS files.
E.x. <link rel="stylesheet" href="main.css">
<link rel="stylesheet" href="sample-css.css">