Skip to content

Instantly share code, notes, and snippets.

View liang799's full-sized avatar
🪖
I may be slow to respond

Tian Pok liang799

🪖
I may be slow to respond
View GitHub Profile
@liang799
liang799 / this.md
Last active January 6, 2022 13:34
Javascript this Notes

this

this is confusing, so I condesed what I have learned from MDN and Yehuda's Blog into a cheatsheet

Simple functions

function hello(thing) {
  console.log("Hello " + thing);
}

// this:
@liang799
liang799 / SP_CPR_CA2-presentation.md
Last active January 6, 2022 13:35
My notes for the briefing on LC0356 CA2 Presentation

Communication for Project Effectiveness CA2 Briefing

Background Info

Based on the content, the tech written in CA1, we need to present the contents of the tech in CA2. Presentation assessment.

Important Info

Read carefully

  • Juniors and their parents: they are people who are interested in Career in STEM --> how it can be applied
  • Don't focus on your diploma --> focus on stem
@liang799
liang799 / Chpt1.md
Last active January 10, 2022 16:15
SP Computer Interfacing Tutorial Solutions

Section A

MCQ

d (correct)
c (correct)
a (wrong Ans:b)
d (wrong Ans:c)
c (correct)
d (correct)
? (Ans: D)
d (wrong Ans:a)

@liang799
liang799 / Vigour.json
Created January 29, 2022 04:27
For Vigour Project Work
{
"Healthtips": [
{
"healthtext": "drink water",
"healthimage": "https://i.imgur.com/pa3wtnD.jpg"
},
{
"healthtext": "eat fruits",
"healthimage": "https://i.imgur.com/WaI9qBT.jpg"
},
@liang799
liang799 / NFs.md
Last active February 9, 2022 14:13
Normalization Cheatsheet for CSAD

Keys

Primary Key

  • serve to uniquely identify a row in the table
  • build an index on Primary key to facilitate fast search and retreival

Foreign Key

  • a key that is used to link 2 tables together
  • table containing foreign key -> child table
  • table containing primary key -> referenced or parent table

Referential integrity

@liang799
liang799 / ai.md
Created July 6, 2022 13:20
Arfitical Intelligence Notes

Gradient descent

Basically finding optimal weight

Find optimal weight

How to find best weight that minimizes loss? --> Lowest point in the graph --> Gradient is zero --> Stepping

Batch VS Epoch

batchVSepoch

@liang799
liang799 / OOP.md
Last active August 14, 2022 10:16
Java tips

Tips

Doesn't work

test += 1 + 1;

Java Doesn't throw integer exceptions

Integer.MAX_VALUE + 1;
@liang799
liang799 / async.md
Last active September 27, 2022 01:24
Recaping javascript before internship

Async functions

Write Asynchronous code (promises) in a synchronous manner

Await

makes the code wait at that point until the promise is settled, at which point the fulfilled value of the promise is treated as a return value, or the rejected value is thrown.

@liang799
liang799 / kotlin.md
Last active September 14, 2022 11:53
Android stuff

Important

Check for null

?.

@liang799
liang799 / json.md
Last active October 4, 2022 16:10
My notes for Terrifcally Simple JSON