Skip to content

Instantly share code, notes, and snippets.

View ahhzaky's full-sized avatar
So fast 🔥🔥🔥

Ahmad Zaky ahhzaky

So fast 🔥🔥🔥
View GitHub Profile
@ahhzaky
ahhzaky / Test js function
Created June 3, 2021 15:25
Test js function
/**
* TODO:
* 1. Buatlah fungsi bernama minimal dengan ketentuan berikut:
* - Menerima dua buah argumen number, a dan b.
* - Mengembalikan nilai terkecil antara a atau b.
* - Bila nilai keduanya sama, maka kembalikan dengan nilai a
*
* contoh:
* minimal(1, 4) // 1
* minimal(3, 2) // 2
/**
* TODO:
* 1. Buatlah variabel currency yang merupakan Map dengan kriteria:
* - key "USD", value 14000
* - key "JPY", value 131
* - key "SGD", value 11000
* - key "MYR", value 3500
* 2. Buatlah variabel priceInIDR yang bernilai dari hasil perkalian:
* - priceInJPY dengan nilai currency JPY
*/
/**
* TODO
* 1. Buatlah variabel dengan nama restaurant yang object dengan ketentuan berikut:
* - Memiliki properti bernama "name"
* - Bertipe data string
* - Bernilai apa pun, asalkan tidak string kosong atau null.
* - Memiliki properti bernama "city"
* - Bertipe data string
* - Bernilai apa pun, asalkan tidak string kosong atau null.
* - Memiliki properti "favorite drink"
@ahhzaky
ahhzaky / svm-tutorial-2.ipynb
Created December 29, 2020 06:36
svm-tutorial-2.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@ahhzaky
ahhzaky / svm-tutorial-1.ipynb
Created December 29, 2020 06:36
svm-tutorial-1.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@ahhzaky
ahhzaky / methodminik-means.ipynb
Created December 29, 2020 06:34
methodminik-means.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.