Skip to content

Instantly share code, notes, and snippets.

Avatar
🏢
At work

Edric Chan EdricChan03

🏢
At work
View GitHub Profile
@EdricChan03
EdricChan03 / GradeCheck.java
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.
View GradeCheck.java
/*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
EdricChan03 / README.md
Last active Feb 27, 2019
New Material Design Icons 🎉
View README.md

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.

License.

@EdricChan03
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
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
EdricChan03 / lineageos-changelog-2018-03-28.md
Last active Sep 20, 2018
[No longer maintained] LineageOS Changelogs for hlte.
View lineageos-changelog-2018-03-28.md

LineageOS 15.1 Changelog - 28/3/2018

Features

  • 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.

Bugs

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

Node.js - npm Cheat Sheet

(Full description and list of commands at - https://npmjs.org/doc/index.html)

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
EdricChan03 / template-for-angularjs-material.html
Last active Jun 11, 2017
Template for AngularJS Material 🎉
View template-for-angularjs-material.html
<html>
<head>
<title>Template for Angular Material</title>
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.6.4/angular.js"></script>
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.6.4/angular-animate.min.js"></script>
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.6.4/angular-aria.min.js"></script>
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.6.4/angular-messages.min.js"></script>
<!--NOTE: Since Google hasn't served versions past v1.1.1, I will use https://cdnjs.com-->
<script src="https://cdnjs.cloudflare.com/ajax/libs/angular-material/1.1.4/angular-material.min.js"></script>
<link href="https://cdnjs.cloudflare.com/ajax/libs/angular-material/1.1.4/angular-material.min.css" rel="stylesheet" />
@EdricChan03
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">
<head>
<!--
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">
<!--
Favicon