Skip to content

Instantly share code, notes, and snippets.

View daniwebdev's full-sized avatar

Dani daniwebdev

View GitHub Profile
[{"model":"JL2005B/C/D camera","abilities":{"ic":false,"lv":false,"tc":false,"cnf":false},"comments":"Experimental"},{"model":"Agfa ePhoto 1280","abilities":{"ic":true,"lv":true,"tc":false,"cnf":true},"comments":null},{"model":"Agfa ePhoto 1680","abilities":{"ic":true,"lv":true,"tc":false,"cnf":true},"comments":null},{"model":"Agfa ePhoto 307","abilities":{"ic":true,"lv":true,"tc":false,"cnf":true},"comments":null},{"model":"Agfa ePhoto 780","abilities":{"ic":true,"lv":true,"tc":false,"cnf":true},"comments":null},{"model":"Agfa ePhoto 780C","abilities":{"ic":true,"lv":true,"tc":false,"cnf":true},"comments":null},{"model":"Aiptek PenCam VGA+","abilities":{"ic":true,"lv":false,"tc":false,"cnf":false},"comments":"Testing (Beta)"},{"model":"Amazing Spiderman","abilities":{"ic":false,"lv":false,"tc":false,"cnf":false},"comments":"Experimental"},{"model":"American Idol Keychain Camera","abilities":{"ic":true,"lv":false,"tc":false,"cnf":false},"comments":"Testing (Beta)"},{"model":"Apple iPad (PTP mode)","abilities"
const apiKey = `b3db8367-9bbc-530c-0fe1-9147ce2e`;
// Pemetaan jenis laporan keuangan
const reportTypeMapping = {
"Q1": "I",
"Q2": "II",
"Q3": "III",
"ANNUAL": "Tahunan"
};
This file has been truncated, but you can view the full file.
{"ChartData":[{"Date":1727946000000,"XLabel":"9:0","Close":7569.166},{"Date":1727946000000,"XLabel":"9:0","Close":7572.895},{"Date":1727946000000,"XLabel":"9:0","Close":7572.882},{"Date":1727946000000,"XLabel":"9:0","Close":7572.898},{"Date":1727946000000,"XLabel":"9:0","Close":7572.885},{"Date":1727946000000,"XLabel":"9:0","Close":7572.882},{"Date":1727946000000,"XLabel":"9:0","Close":7572.883},{"Date":1727946000000,"XLabel":"9:0","Close":7572.852},{"Date":1727946000000,"XLabel":"9:0","Close":7572.864},{"Date":1727946000000,"XLabel":"9:0","Close":7572.836},{"Date":1727946000000,"XLabel":"9:0","Close":7572.841},{"Date":1727946000000,"XLabel":"9:0","Close":7572.863},{"Date":1727946000000,"XLabel":"9:0","Close":7572.856},{"Date":1727946000000,"XLabel":"9:0","Close":7572.879},{"Date":1727946000000,"XLabel":"9:0","Close":7572.712},{"Date":1727946000000,"XLabel":"9:0","Close":7572.731},{"Date":1727946000000,"XLabel":"9:0","Close":7572.726},{"Date":1727946000000,"XLabel":"9:0","Close":7572.688},{"Date":172794600000
https://*bisnis.com/,https://*detik.com,https://*kontan.co.id/
document.textValue = '';
document.onmouseup = function() {
// console.log(window.getSelection().toString());
document.textValue += window.getSelection().toString()+"\n\n";

Tentu, berikut adalah contoh kode untuk membuat aplikasi API dengan Node.js, Express.js, Sequelize (untuk menghubungkan basis data), dan JWT (JSON Web Tokens) untuk otentikasi:

  1. Instalasi dependensi: Buat folder proyek, lalu buka terminal dan jalankan perintah berikut untuk menginstal dependensi yang diperlukan:
npm init -y
npm install express sequelize sequelize-cli mysql2 jsonwebtoken bcrypt
@daniwebdev
daniwebdev / 2019-https-localhost.md
Created July 22, 2021 02:43 — forked from cecilemuller/2019-https-localhost.md
How to create an HTTPS certificate for localhost domains

How to create an HTTPS certificate for localhost domains

This focuses on generating the certificates for loading local virtual hosts hosted on your computer, for development only.

Do not use self-signed certificates in production ! For online certificates, use Let's Encrypt instead (tutorial).