Skip to content

Instantly share code, notes, and snippets.

View refeed's full-sized avatar
🉐
maximizing human potential

Rafid Aslam refeed

🉐
maximizing human potential
View GitHub Profile
@refeed
refeed / jarak_3d.py
Last active November 8, 2020 02:55
Jarak 3D gamaforce
from math import cos, sqrt, radians
INPUT_COORDINATE_MSG = 'Masukkan latitude longitude dan tinggi dipisahkan dengan spasi:\n'
def get_distance_any_dimensions(coordinate_1, coordinate_2):
"""
Menghitung jarak absolut dari dua koordinat dimensi apapun menggunakan
Euclidean distance.
@refeed
refeed / segitiga_pascal.py
Created November 7, 2020 04:25
Segitiga Pascal
def get_from_list_or_zero(list_to_get, index):
if index < 0:
return 0
try:
value = list_to_get[index]
except IndexError:
value = 0
return value

Keybase proof

I hereby claim:

  • I am refeed on github.
  • I am refeed (https://keybase.io/refeed) on keybase.
  • I have a public key ASB1Vb0BFPl_ih9Y959Hl9_YQ1LmrDjTMlIc77baODieMgo

To claim this, I am signing this object: