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
let tabId | |
chrome.runtime.onMessage.addListener(function(msg, sender, sendResponse) { | |
if (chrome.runtime.lastError){ | |
console.log(chrome.runtime.lastError.message); | |
return | |
} | |
tabId = sender.tab.id | |
sendResponse("Message Received!") | |
}); |
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
{"source":"beny","target":"beny","percentage":"86.0%","comparison":[{"token":"20","sourceFilename":"MovieAdapter.kt(1-71)","targetFilename":"MovieAdapter.kt(1-71)","sourceCode":"package com.beny.movieapp.data.source\n\nimport androidx.lifecycle.LifecycleOwner\nimport androidx.lifecycle.LiveData\nimport androidx.paging.PagedList\nimport com.beny.movieapp.data.source.local.entity.MovieEntity\nimport com.beny.movieapp.data.source.local.entity.TvshowEntity\nimport com.beny.movieapp.vo.Resource\n\ninterface MovieDataSource {\n\n fun getAllMovies(owner: LifecycleOwner): LiveData<Resource<PagedList<MovieEntity>>>\n\n fun getMovie(movieId: String,owner: LifecycleOwner): LiveData<Resource<MovieEntity>>\n\n fun getAllTv(owner: LifecycleOwner): LiveData<Resource<PagedList<TvshowEntity>>>\n\n fun getTv(tvId: String,owner: LifecycleOwner): LiveData<Resource<TvshowEntity>>\n\n fun getFavoriteMovie(): LiveData<PagedList<MovieEntity>>\n\n fun getFavoriteTvshow(): LiveData<PagedList<TvshowEntity>>\n\n fun |
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 com.platfom.sync | |
import com.intellij.openapi.Disposable | |
import com.intellij.openapi.editor.EditorFactory | |
import com.intellij.openapi.editor.event.EditorMouseEvent | |
import com.intellij.openapi.editor.event.EditorMouseListener | |
import com.intellij.openapi.fileEditor.FileEditorManager | |
import com.intellij.openapi.fileEditor.FileEditorManagerEvent | |
import com.intellij.openapi.fileEditor.FileEditorManagerListener | |
import com.intellij.openapi.vfs.VirtualFile |
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
const popupAutoComplete = document.createElement("div") | |
const connectedToObserve = document.createElement("strong") | |
var popupLeftMargin = 0 | |
var popupWidth = 0 | |
var popupIsShow = false | |
var recentScrollPosition = 0 | |
let popupItemsData = new Map() | |
let placeholder = "" |
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
@RunWith(MockitoJUnitRunner::class) | |
class TvShowViewModelTest { | |
private lateinit var viewModel: TvShowViewModel | |
@get:Rule | |
var instantTaskExecutorRule = InstantTaskExecutorRule() | |
@Mock | |
private lateinit var catalogueRepository: CatalogueRepository |
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
{ | |
"Boolean_literal": "<p>Jika menggunakan Boolean untuk ekspresi, Anda tidak perlu lagi menuliskan nilainya. Cukup seperti di bawah ini:</p><pre><code>if (sleep){<br> ...<br>}</code></pre>", | |
"Overlap_view": "Perbaiki overlap view yang terjadi pada halaman <strong>xxx</strong> seperti berikut.", | |
"Binding_leaks": "Hindari mendeklarasi kelas Binding dengan <span style=\"padding: 2px 4px; color: rgb(199, 37, 78); background-color: rgb(249, 242, 244); border-radius: 4px;\">lateinit</span> karena hanya akan menyebabkan <em>memory leaks</em>. Untuk detail pembahasannya bisa dibaca <a href=\"https://proandroiddev.com/avoiding-memory-leaks-when-using-data-binding-and-view-binding-3b91d571c150\" target=\"_blank\" rel=\"noopener noreferrer\">di sini</a>.", | |
"Suspending_function": "Kode yang ditambahkan pada TODO ini masih belum lengkap. Seharusnya fungsi ini dijadikan <em>suspending function.</em> ", | |
"Multiple_observer": "Fungsi <span style=\"padding: 2px 4px; color: rgb(199, 37, 78); background-color: rgb(24 |
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
{ | |
"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>", | |
"Overlap_view": "Perbaiki overlap view yang terjadi pada halaman <strong>xxx</strong> seperti berikut.", | |
"Suspending_function": "Kode yang ditambahkan pada TODO ini masih belum lengkap. Seharusnya fungsi ini dijadikan <em>suspending function.</em> ", | |
"Pesan_keterangan": "Pastikan kembali pesan yang akan ditampilkan dapat dimengerti dengan baik oleh pengguna.", | |
"Material_design_references": "Mulailah untuk menerapkan konsep Material Design ketika mengembangkan proyek Aplikasi. Kamu bisa mengunjungi <a data-target-href=\"https://www.material.io/\" href=\"https://www.material.io/\" rel=\"noreferrer nofollow noopener\" target=\"_blank\">www.material.io</a> sebagai referensi.", | |
"Unused_variable_di_datacl |
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
{ | |
"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 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 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 |