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
{ | |
"Boolean_literal": "<p>Jika menggunakan Boolean untuk ekspresi, Anda tidak perlu lagi menuliskan nilainya. Cukup seperti di bawah ini:</p><pre><code spellcheck=\"false\">if (sleep){</code><br><code spellcheck=\"false\">...</code><br><code spellcheck=\"false\">}</code></pre>", | |
"Suspending_function": "Kode yang ditambahkan pada TODO ini masih belum lengkap. Seharusnya fungsi ini dijadikan <em>suspending function.</em> ", | |
"TODO": "Beberapa <strong>TODO</strong> pada latihan ini masih belum dikerjakan. Pastikan kembali seluruh <strong>TODO</strong> sudah dikerjakan dengan baik sebelum dikirimkan.", | |
"Nilai_vehicle": "Beberapa nilai pada TODO 2 ini harus memanfaatkan nilai dari variable vehicle. Silakan periksa kembali perintahnya pada project latihan.", | |
"Return_di_dalam_when": "<p>Fungsi return sebaiknya tidak berada di dalam scope when expression, kode ini bisa dituliskan seperti berikut:</p><pre><code spellcheck=\"false\">fun <T> getResult(args: T): Int {</code><br><code spellcheck=\" |
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
{ | |
"Val_Property":"Property yang tidak pernah dimodifikasi, sebaiknya dideklarasikan menggunakan val.", | |
"Inline_variable":"Tidak perlu membuat variable baru, kamu bisa langsung memasukkan value ke dalam object seperti ini:", | |
"Function_Name_Rule":"Sebaiknya penamaan fungsi ini menggunakan kata kerja yang sesuai dengan tujuan fungsi ini dibuat.", | |
"Build_tools":"Gunakanlah build tools versi terbaru, 30.0.3." | |
} |
We can make this file beautiful and searchable if this error is corrected: Illegal quoting in line 2.
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
{ | |
"::boolean": "<p>Jika menggunakan Boolean untuk ekspresi, kamu tidak perlu lagi menuliskan nilainya. Cukup seperti di bawah ini:</p><br><pre style=\"\"><code spellcheck=\"false\">if (status){</code><br><code spellcheck=\"false\">...</code><br><code spellcheck=\"false\">}</code></pre>", | |
"::!!": "Hindari penggunaan double bang operator <strong>(!!)</strong> saat pengecekan null, karena akan memaksa suatu variable menjadi non-null. Dan jika ternyata variable tersebut bernilai null, maka bisa menyebabkan <strong>NPE</strong><a data-target-href=\"https://www.dicoding.com/academies/55/tutorials/1538?from=1573\" href=\"https://www.dicoding.com/academies/55/tutorials/1538?from=1573\" rel=\"noreferrer nofollow noopener\" target=\"_blank\">.</a> Periksa kembali semua kode kamu dan jangan biarkan satupun operator tersebut tersisa. ", | |
"inspect": "<p>Agar memastikan project yang kamu buat terhindar dari segala bentuk warning ataupun error, Anda bisa melakukan inspeksi kode dengan mudah melalui |
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
fun main() { | |
println("Hello, world!!!") | |
} | |
open class Product { | |
fun setExpireDate(){ | |
} | |
} |
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 com.dicoding.picodiploma.sejiwaproject.features.league.detail | |
import android.graphics.Color | |
import android.os.Bundle | |
import androidx.appcompat.app.AppCompatActivity | |
import com.bumptech.glide.Glide | |
import com.bumptech.glide.request.RequestOptions | |
import com.dicoding.picodiploma.sejiwaproject.R | |
import com.dicoding.picodiploma.sejiwaproject.commons.api.ApiRepository | |
import com.dicoding.picodiploma.sejiwaproject.features.match.next.NextMatchFragment |
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
val inputLength = edtLength.text.toString().trim { it <= ' ' } | |
val inputWidth = edtWidth.text.toString().trim { it <= ' ' } | |
val inputHeight = edtHeight.text.toString().trim { it <= ' ' } | |
if (inputLength.isEmpty()) { | |
edtLength.error = "Field ini tidak boleh kosong" | |
return | |
} |
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
<?xml version="1.0" encoding="utf-8"?> | |
<resources> | |
<color name="colorPrimary">#008577</color> | |
<color name="colorPrimaryDark">#00574B</color> | |
<color name="colorAccent">#D81B60</color> | |
</resources> |
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
Future<List<Meals>> loadMealsFromNetwork(String category) async { | |
var result = await httpRequest("$ENDPOINT_FILTER$category"); | |
return generateMealList(result); | |
} | |
Future<Meals> loadMealsDetailFromNetwork(String id) async { | |
var result = await httpRequest("$ENDPOINT_LOCKUP$id"); | |
return generateMeal(result); | |
} |
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
import 'package:flutter_driver/flutter_driver.dart'; | |
import 'package:test/test.dart'; | |
import 'app_test_key.dart'; | |
main() { | |
group("Application test", () { | |
FlutterDriver driver; | |
setUpAll(() async { |
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
<vector xmlns:android="http://schemas.android.com/apk/res/android" | |
xmlns:aapt="http://schemas.android.com/aapt" | |
android:width="108dp" | |
android:height="108dp" | |
android:viewportWidth="108" | |
android:viewportHeight="108"> | |
<path | |
android:fillType="evenOdd" | |
android:pathData="M32,64C32,64 38.39,52.99 44.13,50.95C51.37,48.37 70.14,49.57 70.14,49.57L108.26,87.69L108,109.01L75.97,107.97L32,64Z" | |
android:strokeWidth="1" |