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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8" /> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | |
<title>Kirimi Saya Pesan</title> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
</head> | |
<body> | |
<h1>Kirimi Saya Pesan</h1> |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8" /> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | |
<title>Riwayat Hidup</title> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
</head> | |
<body> | |
<h1>Riwayat Hidup</h1> |
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
const sourceData = [] | |
const readData = () => new Promise(res => { | |
setTimeout(() => res(sourceData), 500) | |
}) | |
const writeData = (data) => new Promise(res => { | |
setTimeout(() => { | |
sourceData.push(data) | |
res(sourceData) |
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
/** | |
* SEGITIA PASCAL | |
* | |
* Buatlah algoritma untuk men-generate segitiga pascal sesuai jumlah yang dimasukkan oleh pengguna. | |
* Silakan baca link di bawah ini untuk mengetahui lebih lanjut tentang segitiga pascal. | |
* | |
* link: https://www.mathsisfun.com/pascals-triangle.html | |
* | |
* Constraints: | |
* 1. Fungsi yang dibuat hanya menerima satu parameter yaitu jumlah baris segitiga yang ingin digenerate. |
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
/** | |
* PERKALIAN ANGKA LAINNYA | |
* | |
* Buatlah sebuah fungsi yang akan menghasilkan satu array yang ukurannya sama dengan array yang diinput oleh user. | |
* Keluaran array merupakan hasil perkalian seluruh elemen array yang diinput kecuali dirinya sendiri. | |
* | |
* Constraints | |
* 1. Dilarang menggunakan operator bagi atau /. | |
* 2. Carilah solusi yang paling optimal dari sisi time complexity. | |
* 3. Input dan output harus selalu dalam bentuk array of number. |
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
/** | |
* PUTAR BALIK | |
* | |
* Buatlah sebuah fungsi yang dapat memutarbalikkan input yang kita masukkan. Input dapat berupa string ataupun juga array. | |
* Contohnya ketika kita memasukkan kata “Halo”, kita akan mendapatkan keluaran “olaH” | |
* atau ketika kita memasukkan kata “coding”, kita akan mendapatkan keluaran “gnidoc” | |
* dan ketika kita memasukkan array [1, 2, 3], kita akan mendapatkan keluaran dalam bentuk array juga: [3, 2, 1]. | |
* | |
* Constraints | |
* 1. Dilarang menggunakan buil-in function seperti split(), reverse(), join() dan lain sebagainya. |
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
const https = require('https') | |
const path = require('path') | |
const fs = require('fs') | |
const app = require('../app.js') | |
const option = { | |
cert: fs.readFileSync(path.join(__dirname, 'fullchain.pem')), | |
key: fs.readFileSync(path.join(__dirname, 'privkey.pem')), | |
} |
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
const express = require('express') | |
const path = require('path') | |
const app = express() | |
// set static folder | |
app.use(express.static(path.join(__dirname, 'public') |
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
Vue.component('news-item', { | |
template: ` | |
<div class="panel panel-default"> | |
<div class="panel-heading"> | |
{{article.title}} | |
</div> | |
<div class="panel-body"> | |
<img :src="article.urlToImage" class="img-responsive img-thumbnail"> | |
<p>{{article.description}}</p> | |
<input type="text" v-model="article.title" /> |
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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8"> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
<title>Hacktiv8 Job Boards</title> | |
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous"> | |
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap-theme.min.css" integrity="sha384-rHyoN1iRsVXV4nD0JutlnGaslCJuC7uwjduW9SVrLvRYooPp2bWYgmgJQIXwl/Sp" crossorigin="anonymous"> | |
</head> |
NewerOlder