Skip to content

Instantly share code, notes, and snippets.

View EricEthan2020's full-sized avatar
πŸ’—
Fuck You Fake Love

Eric EricEthan2020

πŸ’—
Fuck You Fake Love
View GitHub Profile
@EricEthan2020
EricEthan2020 / typescript.md
Created October 15, 2024 15:42 — forked from eimg/typescript.md
TypeScript - α€œα€­α€―α€α€­α€―α€›α€Ύα€„α€Ία€Έ

TypeScript - α€œα€­α€―α€α€­α€―α€›α€Ύα€„α€Ία€Έ

JavaScript α€Ÿα€¬ Dynamic Type Language တစ်ခုပါ။ Data Type တွေကို Language α€€ α€œα€­α€―α€žα€œα€­α€― α€‘α€œα€­α€―α€‘α€œα€»α€Ύα€±α€¬α€€α€Ί α€•α€Όα€±α€¬α€„α€Ία€Έα€œα€²α€‘α€œα€―α€•α€Ία€œα€―α€•α€Ία€•α€±α€Έα€α€²α€·α€‘α€α€½α€€α€Ί α€›α€±α€Έα€žα€¬α€Έα€žα€°α€€ Type α€€α€­α€…α€Ήα€… α€žα€­α€•α€Ία€α€±α€«α€„α€Ία€Έα€…α€¬α€Έα€”α€±α€…α€›α€¬α€™α€œα€­α€―α€˜α€² ရေးစရာရှိတဲ့ကုဒ်တွေကို ခပ်မြန်မြန် α€›α€±α€Έα€žα€½α€¬α€Έα€œα€­α€―α€·α€›α€•α€«α€α€šα€Ία‹

let value;        // undefined
value = "Alice";  // string
value = 42;       // number
value = true;     // boolean
@EricEthan2020
EricEthan2020 / getAcc.py
Created November 28, 2023 08:15 — forked from pmocz/getAcc.py
Create your own N-body simulation (with Python): acceleration
def getAcc( pos, mass, G, softening ):
"""
Calculate the acceleration on each particle due to Newton's Law
pos is an N x 3 matrix of positions
mass is an N x 1 vector of masses
G is Newton's Gravitational constant
softening is the softening length
a is N x 3 matrix of accelerations
"""