Skip to content

Instantly share code, notes, and snippets.

View liang799's full-sized avatar
🪖
Brainrot in NS. Sorry for bad code, still readjusting.

Tian Pok liang799

🪖
Brainrot in NS. Sorry for bad code, still readjusting.
View GitHub Profile
@liang799
liang799 / notes.md
Created October 19, 2023 13:51
Git notes

My notes for Git

Taken from Git Pro and StackOverflow

Commands

git add

Stages a file

git commit

Creates a checksum for staged files

@liang799
liang799 / stories.md
Created April 21, 2023 02:26
Notes for agile stories

As a _____, I want to ____, so i can _____

In order to ______, As a ____, I want _____

@liang799
liang799 / retrofit.kt
Created December 21, 2022 06:49
Retrofit headers
val res = repository.doApiCall()
val specificHeader = res.headers()["Header name here"])
@liang799
liang799 / json.md
Last active October 4, 2022 16:10
My notes for Terrifcally Simple JSON
@liang799
liang799 / kotlin.md
Last active September 14, 2022 11:53
Android stuff

Important

Check for null

?.

@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 / 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 / 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 / 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 / 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"
},