Skip to content

Instantly share code, notes, and snippets.

View EdricChan03's full-sized avatar

Edric Chan EdricChan03

View GitHub Profile
@EdricChan03
EdricChan03 / GradeCheck.java
Created February 3, 2020 15:24
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
EdricChan03 / README.md
Last active February 27, 2019 05:46
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.

License.

@EdricChan03
EdricChan03 / lineageos-changelog-2018-03-28.md
Last active September 20, 2018 11:17
[No longer maintained] LineageOS Changelogs for hlte.

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 / material-colors.scss
Created June 11, 2018 10:43
Angular Material colors.
// 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 15:19
Log of Angular Material Schematics after running `ng update @angular/material`
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 / npm-cheat-sheet.md
Last active July 29, 2017 16:06 — forked from AvnerCohen/npm-cheat-sheet.md
Node.js - npm Cheat Sheet

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 June 11, 2017 14:29
Template for AngularJS Material 🎉
<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 January 13, 2017 11:54
Angular - Getting Started
// angular.module('BlankApp', ['dependency1', 'app.directive'])
/**
*
* Note that you can import controllers too!
* Example:
* angular.module('dependencies', []).
* controller(
* ...
* )
* angular.module('TestApp', ['dependencies', 'ngMessages', ...]).
<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