API untuk menyimpan catatan publik secara online. Digunakan untuk latihan kelas Dicoding Academy.
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 App from './app.js'; | |
document.addEventListener('DOMContentLoaded', async () => { | |
const content = document.querySelector('#content'); | |
const app = new App({ content }); | |
await app.renderPage(); | |
window.addEventListener('hashchange', async () => { | |
await app.renderPage(); | |
}); |
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
{ | |
"id": "1a38f335-4595-4e8c-8df3-e436203efd33", | |
"name": "Forum API V1 Test", | |
"timestamp": "2023-10-30T02:05:27.238Z", | |
"collection_id": "12297972-4b3c62c3-90bf-49ae-8f8c-e7a777a8a35f", | |
"folder_id": 0, | |
"environment_id": "12297972-77d6b295-4bef-44dc-be2d-49cf2d97e8c1", | |
"totalPass": 40, | |
"totalFail": 8, | |
"results": [ |
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 UrlParser from '../routes/url-parser'; | |
import routes from '../routes'; | |
class App { | |
constructor({ content, skipLink }) { | |
this._content = content; | |
this._skipLink = skipLink; | |
this._initialAppShell(); | |
} |
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 java.io.BufferedWriter; | |
import java.io.FileWriter; | |
import java.io.IOException; | |
import java.text.DecimalFormat; | |
import java.text.DecimalFormatSymbols; | |
import java.text.NumberFormat; | |
import java.util.ArrayList; | |
import java.util.Scanner; | |
public class TokoBuku { |
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.riotfallen.fastandroidnetworkexample.presenter | |
import android.util.Log | |
import com.androidnetworking.AndroidNetworking | |
import com.androidnetworking.common.Priority | |
import com.androidnetworking.error.ANError | |
import com.androidnetworking.interfaces.ParsedRequestListener | |
import com.riotfallen.fastandroidnetworkexample.BuildConfig | |
import com.riotfallen.fastandroidnetworkexample.model.LeagueResponse | |
import com.riotfallen.fastandroidnetworkexample.view.LeagueView |