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 mongodb = require('mongodb') | |
const MongoClient = require('mongodb').MongoClient | |
const url = 'mongodb://localhost:27017/mydb' | |
MongoClient.connect(url, function(err, db){ | |
if (err) throw err; | |
console.log('Connected to mydb') | |
const dbo = db.db('mydb') | |
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 mongodb = require('mongodb') | |
const MongoClient = require('mongodb').MongoClient | |
const url = 'mongodb://localhost:27017/mydb' | |
MongoClient.connect(url, function(err, db){ | |
if (err) throw err; | |
console.log('Connected to mydb') | |
const dbo = db.db('mydb') | |
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> | |
<head><title>.</title> | |
</head> | |
<body> | |
<h3>Demo: Menampilkan dan Menyembunyikan Elemen Dengan Javascript</h3> | |
<button style="width:100px;" id="btnToggle" onclick="toggle()">Show</button> | |
<p id="teks" style="visibility:hidden"> |
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
Bridging Kamar BPJS 2021 Implementasi Bridging di RSUD ALIHSAN | |
Ketersediaan Kamar | |
#Monitoring Hasil bridging Live Production | |
https://faskes.bpjs-kesehatan.go.id/aplicares/#/app/dashboard | |
#Base Url | |
Development: https://dvlp.bpjs-kesehatan.go.id:8888/ | |
Production: https://new-api.bpjs-kesehatan.go.id/ | |
#Referensi Kamar |
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
#How To Implement Naive Bayes From Scratch in Python | |
#http://machinelearningmastery.com/naive-bayes-classifier-scratch-python/ | |
#Dataset | |
#https://archive.ics.uci.edu/ml/machine-learning-databases/pima-indians-diabetes/pima-indians-diabetes.data | |
import csv | |
import math | |
import random | |
#Handle data |
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> | |
<title>CountDown</title> | |
<!-- source: http://crowdforthink.com/blogs/how-to-create-a-countdown-timer-with-progress-bar-in-javascript --> | |
</head> | |
<body> | |
<progress value="0" max="3600" id="pbar" ></progress> | |
<p id="counting">3600</p> |
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
// source: | |
// https://twitter.com/Amit_T18/status/1499329628804112385 | |
const scrollToTop = document.querySelector('.scrollToTop'); | |
scrollToTop.addEventListener('click', () => { | |
window.scrollTo({top:0, behaviour:"smooth",}) | |
}); |
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><title>phpAccessBrowser</title> | |
<style> | |
hr {border:1px solid #ccc;} | |
table th,td {border:solid 1px #ccc;padding:5px;} | |
table tr:hover {background-color:#00ffff;} | |
.tablename {font-size:larger;font-weight:bold;margin-bottom:10px;background-color:#ccc;padding:5px;margin-top:-5px;} | |
</style> | |
</head> |
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
# [CONFIGURATION] | |
# Ensure WSL2 container is started and SSH is running | |
wsl sudo /etc/init.d/ssh start | |
# Ports to be forwarded | |
$ports = @(22) + @(6543,6544) + @(6800..6810); | |
# Change $addr to restrict connections to a particular interface IP | |
$listen_addr = '0.0.0.0'; |
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
<?php | |
public function save() | |
{ | |
session()->flash('message','Errorrrrr'); | |
$this->emit('alert_remove'); | |
return; | |
} |