Skip to content

Instantly share code, notes, and snippets.

View defrindr's full-sized avatar
👋
Hi there

Defri Indra Mahardika defrindr

👋
Hi there
View GitHub Profile
{
"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",
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
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',
@defrindr
defrindr / mover
Last active July 8, 2025 00:43
file mover from git commit history
#!/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]
*/
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
@defrindr
defrindr / app.blade.php
Created January 3, 2023 05:04
ubah file /resources/views/layouts/app.blade.php
<!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-->
-- 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,
{
"success": true,
"message": "OK",
"data": {
"header": [
{
"id": 0,
"title": "Gainesville",
"image": "https://loremflickr.com/640/480?random=0",
"actions": {
-- CREATE SEQUENCE hdept_seq START WITH 1;
-- /
-- CREATE TABLE HISTORY_DEPARTMENTS (
-- HISTORY_ID number DEFAULT hdept_seq.nextval NOT NULL,
-- DEPARTMENT_ID number,
-- DEPARTMENT_NAME varchar2(100) not null,
-- constraint pk_hdepartments primary key (HISTORY_ID)
-- );
-- CREATE SEQUENCE dept_seq START WITH 1;
@defrindr
defrindr / extractor.php
Last active August 12, 2023 03:01
Generate Class Diagram Automatically (CODE IGNITER 3)
<?php
class extractor extends CI_Controller
{
private $workflow = false;
private $exception_ucwords = ["oa_helper"];
private $sanitized = ["'", '"', ",", " ", ";", "(", ")"];
public function getRealpath($type, $name)
{