This file contains 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 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 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 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 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 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() { |
This file contains 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.View { | |
lateinit var garagePresenter : GaragePresenter; | |
fun onCreate(){ | |
garagePresenter = GaragePresenter(this) | |
garagePresenter.loadTheCars() // we just only need this function on this page | |
} | |
override fun onDeleteSucceed() { | |
// tidak dipakai,dirty code, sia-sia! |
This file contains 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
===== soal 1: 20 menit ============= | |
Buatlah sebuah program yang mencetak angka dari 1 sampai dengan 100, | |
yang mana, bila angka merupakan kelipatan tiga akan mencetak kata “Fizz” (tanpa tanda petik dua), | |
lalu bila angka merupakan kelipatan lima akan mencetak “Buzz”, | |
dan jika angka merupakan kelipatan tiga dan lima kedua-duanya, maka akan mencetak “FizzBuzz”. | |
contoh output: | |
1 | |
2 | |
Fizz |
This file contains 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
<Window x:Class="bookstore.MainWindow" | |
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" | |
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" | |
xmlns:d="http://schemas.microsoft.com/expression/blend/2008" | |
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" | |
xmlns:local="clr-namespace:bookstore" | |
mc:Ignorable="d" | |
Title="MainWindow" Height="450" Width="800"> | |
<Window.Resources> | |
<DataTemplate x:Key="DataTemplateItemBook"> |
This file contains 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
fun main(args:Array<String>){ | |
var view1 = ViewPage1() | |
view1.main() | |
var view2 = ViewPage2() | |
view2.main() | |
var view3 = ViewPage3() | |
view3.main() | |
} |
NewerOlder