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
"use strict"; | |
/** | |
* @author Defri Indra Mahardika | |
* @since 2024 | |
* Converter CSV to Table HTML | |
*/ | |
class Csv2Table { | |
_elementId = null; | |
_source = null; |
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
<!-- program html, pada dasarnya harus diawali dengan <html> --> | |
<!-- dan diakhir dengan </html> --> | |
<!-- untuk merepresentasikan bahwa program yang sedang dibuat adalah program html --> | |
<html> | |
<!-- head berfungsi untuk mengatur informasi terkait halaman --> | |
<!-- biasanya digunakan ketika optimasi SEO --> | |
<!-- referensi: https://thohirdev.com/tutorial/belajar-tag-head-pada-html/#:~:text=tag%20head%20adalah%20informasi%20yang,head%3E%20sebagai%20penutup%20tag%20head. --> | |
<head> | |
<!-- memberikan judul pada tab --> |
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
<?php | |
namespace App\Helpers; | |
use Illuminate\Database\Eloquent\Collection; | |
class DecisionTreeClassifier | |
{ | |
protected Collection $dataFrame; | |
protected array $predict; |
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
{ | |
"info": { | |
"_postman_id": "df44f797-e00e-45ce-a01d-8bde6431ec9e", | |
"name": "2023-POS-Haidar", | |
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json", | |
"_exporter_id": "8432050" | |
}, | |
"item": [ | |
{ | |
"name": "Auth", |
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
Jumlah data = 15 | |
TP + FP + FN = 15 | |
Akurasi Iterasi ke-1 = 73.33333333333333 | |
recall = 11 / (11 + 2) = 0.8461538461538461 | |
precition = 11 / (11 + 2) = 0.8461538461538461 | |
F-measure = 2 * (precision * recall) / (precision + recall) = 0.8461538461538461 | |
-------------------- | |
Jumlah data = 15 | |
TP + FP + FN = 15 | |
Akurasi Iterasi ke-2 = 26.666666666666668 |
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
import numpy as np | |
from sklearn.feature_extraction.text import CountVectorizer | |
from sklearn.naive_bayes import MultinomialNB | |
import mysql.connector | |
# Konfigurasi koneksi ke database MySQL | |
config = { | |
'user': 'root', | |
'password': '', | |
'host': 'localhost', |
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
#!/usr/bin/env php | |
<?php | |
/** | |
* WHAT IT IS: | |
* Tool untuk memindahkan file yang berubah pada suatu commit, untuk mempermudah upload file. | |
* HOW TO USE : | |
* ./mover [commit_start] [commit_end] | |
*/ |
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
SELECT t.nama_tim as Nama_Tim, u.fullname as Nama, d.nama_dosen as Dosen, t.total_anggota as total, u.email as Email, p.politeknik as politeknik | |
FROM tim as t | |
INNER JOIN users as u ON t.users_id = u.id | |
INNER JOIN politeknik as p ON p.id = t.politeknik_id | |
INNER JOIN dosen_pembimbing as d ON d.id = t.dosen_id | |
WHERE t.kategori_id = 1 AND status_approved = 2 AND t.users_id =u.id |
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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8" /> | |
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no" /> | |
<meta name="description" content="" /> | |
<meta name="author" content="" /> | |
<title>BARBATOS</title> | |
<!-- Favicon--> |
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
-- Adminer 4.6.2 MySQL dump | |
SET NAMES utf8; | |
SET time_zone = '+00:00'; | |
SET foreign_key_checks = 0; | |
SET sql_mode = 'NO_AUTO_VALUE_ON_ZERO'; | |
DROP TABLE IF EXISTS `master_district`; | |
CREATE TABLE `master_district` ( | |
`id` int(11) NOT NULL AUTO_INCREMENT, |
NewerOlder