Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function randomChar() { | |
const chars = "ABCDEFGHIJKLMNOPQRSTUVWXYZ "; | |
return chars.charAt(Math.floor(Math.random() * chars.length)); | |
} | |
function randomString(length) { | |
return Array.from({ length }, randomChar).join(''); | |
} | |
function calculateFitness(target, candidate) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Package Version | |
------------------------ ------------ | |
aiofiles 23.2.1 | |
annotated-types 0.7.0 | |
antlr4-python3-runtime 4.9.3 | |
anyio 4.6.0 | |
audiocraft 1.3.0 | |
audioread 3.0.1 | |
av 11.0.0 | |
blis 0.7.11 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//1st : ambil data array list mahasiswa, untuk dilihat list DataID | |
var list = [] | |
//2nd : buat function iterasi, untuk meng-update setiap DataID | |
function mark(){ | |
for( let i=0;i<list.length;i++){ | |
console.log(list[i].DataId); | |
fetch("https://dosen.amikom.ac.id/api/ujian/mark_checked", { | |
"headers": { | |
"accept": "application/json, text/plain, */*", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
namespace CodeChellange1 | |
{ | |
class Animal | |
{ | |
public void walk() | |
{ | |
Console.WriteLine("i am walking"); | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// JUMP TO LINE CODE 214 TO SEE THE MAIN APPS | |
//=============== CASE 1 =============== | |
data class Nasabah(var name:String, var alamatTinggal:String, | |
var alamatKtp:String, var tglLahir:String, var tempatLahir:String, | |
var umur:String, var jmlAnak:String, var statusNikah:String="menikah", | |
var statusRumah:String, var nmrKtp:String, var namaIbuKandung:String, | |
var namaAliasIbuKandung:String, var namaPasangan:String="", var statusPasangan:String="menikah") | |
//===================================== |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* how to use | |
=== without builder pattern === | |
Personal nasabah = new Personal("joko","sleman","","06/04/80", | |
"Tempel","40","4","menikah", | |
"kontrak","3314140604800045","maryani", | |
"yanik","sri","menikah","laki-laki","08763543","swasta") | |
==== with builder pattern === | |
Personal nasabah = new Personal.Builder().addressByCurrent(addrCurrent) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class ProfileActivity: GaragePresenter.Contract.OnLoadCarSucceed { | |
lateinit var garagePresenter : GaragePresenter; | |
fun onCreate(){ | |
garagePresenter = GaragePresenter() | |
garagePresenter.setOnLoadCarSucceedListener(this) | |
garagePresenter.loadTheCars() // we just only need this function on this page | |
} | |
override fun onLoadSucceed() { |
NewerOlder