Skip to content

Instantly share code, notes, and snippets.

View vousmeevoyez's full-sized avatar

Kelvin vousmeevoyez

View GitHub Profile
@vousmeevoyez
vousmeevoyez / gist:814fc8bcde1d9768ca0cffa0f248e567
Created September 2, 2025 03:04
dataset_sintetis_tanaman_cabai_10000.csv
This file has been truncated, but you can view the full file.
id,timestamp,suhu_udara_c,kelembaban_udara_persen,kelembaban_tanah_persen,status_waktu,status_kesehatan,label
3993,2025-06-25 18:42:12.662592649,28.786335526669763,65.20787555497786,57.27168037085072,Sore,Cukup Baik,0
1706,2025-06-02 00:36:01.348123789,20.07591838154177,82.31461876355806,37.93076525298078,Malam,Stres Kekeringan,0
3165,2025-06-20 06:24:49.981569767,21.78373638182943,82.61652395956828,8.75528957767377,Pagi,Stres Kekeringan,0
5090,2025-07-07 12:59:39.094266415,30.251088342804632,61.196106402122304,80.90418047769123,Siang,Cukup Baik,0
1377,2025-05-29 20:05:28.529925823,26.14443437743648,73.69032289878369,55.51901427800586,Malam,Cukup Baik,0
141,2025-05-16 06:32:05.057098150,21.55315614415441,81.34310621408297,8.514748189383662,Pagi,Stres Kekeringan,0
882,2025-05-27 15:04:25.393963814,31.409632837807656,57.005706076116546,69.25729316136996,Sore,Cukup Baik,0
1295,2025-05-29 14:50:10.245501041,30.82019944306999,58.54320505436558,68.5274467278569,Siang,Cukup Baik,0
id timestamp suhu_udara_c kelembaban_udara_persen kelembaban_tanah_persen status_waktu status_kesehatan label
1 2025-05-17 17:01:41.615528107 28.7 64.25 74.19 Sore Cukup Baik 0
2 2025-05-17 17:16:41.771805286 29.51 62.49 73.57 Sore Cukup Baik 0
3 2025-05-17 17:31:41.928082466 29.07 62.27 72.74 Sore Cukup Baik 0
4 2025-05-17 17:46:42.084359407 29.64 60.97 71.91 Sore Cukup Baik 0
5 2025-05-17 18:01:42.240636587 27.38 66.56 70.56 Sore Optimal 0
6 2025-05-17 18:16:42.396913767 27.72 70.35 69.21 Sore Optimal 0
7 2025-05-17 18:31:42.553190947 28.25 68.5 68.16 Sore Optimal 0
8 2025-05-17 18:46:42.709468126 27.83 65.63 67.22 Sore Optimal 0
9 2025-05-17 19:01:42.865745068 27.05 68.35 66.44 Malam Optimal 0
@vousmeevoyez
vousmeevoyez / jnt_tarif_check.py
Created February 19, 2025 04:54
JNT TARIF CHECK
import requests
import json
import hashlib
import base64
customer = "HR"
key = "HR001188"
url = "http://jk.jet.co.id:22230/jandt_track/inquiry.action"
data = {
# Prompt for Django Unit Tests Using Pytest
I want you to act as a Senior full-stack Django developer. Once I provide the Django models, views, or utility functions, your task is to develop a comprehensive suite of unit tests for a provided Django codebase. Follow these guidelines for an effective testing process:
## **Understand the Codebase**
- Analyze the Django code thoroughly, step by step.
- Identify any ambiguity or missing information, such as model fields, methods, constants, conditions, external dependencies, API integrations, etc.
- Provide steps, questions, and seek clarification for better code understanding. Only proceed to the next step once you have fully analyzed the codebase.
## **Testing Framework**
@vousmeevoyez
vousmeevoyez / SignUpPage.jsx
Created August 22, 2024 12:53
minimalist sign up page using bootstrap + react
import axios from 'axios';
import React, { useState } from 'react';
import { useForm } from 'react-hook-form';
const SignUp = () => {
const { register, handleSubmit, formState: { errors } } = useForm();
const [apiError, setApiError] = useState(''); // State to hold API error message
const [loading, setLoading] = useState(false); // State to manage loading state
const onSubmit = async (data) => {
function findPairsWithSum(arr, target) {
// to store paris
const pairs = [];
// to store seen number with their index
const seenNum = {};
for (let i = 0; i < arr.length; i++) {
// calculate the complement / pair by deducting the current number with target
const complement = target - arr[i];
# This file configures the analyzer, which statically analyzes Dart code to
# check for errors, warnings, and lints.
#
# The issues identified by the analyzer are surfaced in the UI of Dart-enabled
# IDEs (https://dart.dev/tools#ides-and-editors). The analyzer can also be
# invoked from the command line by running `flutter analyze`.
# The following line activates a set of recommended lints for Flutter apps,
# packages, and plugins designed to encourage good coding practices.
include: package:flutter_lints/flutter.yaml
curl -X GET \
-H "Cookie: appSession=eyJhbGciOiJkaXIiLCJlbmMiOiJBMjU2R0NNIiwiaWF0IjoxNjg5Nzc2Mzc3LCJ1YXQiOjE2ODk4Mjg0MDMsImV4cCI6MTY4OTkxNDgwM30..hdFiluAQILc6VHnr.I0WFv7xC_A80jk7lN6oWbQ7GrSybBHaNu-A7MRoDa6LSj8t5jv26OQMhoyFpA2ky2fJrFgx_bTwdqrg-0Uldmtd9og32FJ54XIC1_4TompBqR8bPjiaHmGIXNFtNt9C8GIV7o37PqyeusCIGUwmvBU5U6rPYqMKpaJdzzgExRQZHHH9fQrMyeuwnIYbKyw0zOEAhc3hEnCh8eEzPk7Bj98DBAV490WNAVDqUdtxdoLM2A6e7CxuJ8sfvo0wKPa16urRrr2Ah5pUzXlsJmhwaqKF01POAAcexfT2mi9-esyPZKemZnnf25AL3KJ0M6CmD73nBaqFYdigh67FA-twuVjFNQVgdOoNTKAAZHFAaCgyvIEGhZECHGc_ATGFz4j0itFjN_lQGh8_j2XdFc3EV4axg2GPY59U4ogn9Rw6toKedG0QuML7VI0GpE16j-yafxJL-IBfyQvEvMhcnFsz0YLO9PgIGmR5S-JojSIGSyjGmR2FlYZuhize_dJJJWRtdJl0KkAKiW2LBrH2IoL01pPFnc64WUObYiLExYy1mKpmiK3PmhfwrmA8qAcdklLt8t67A3A4ZpfyyL7s9YOv_Nqi74V82ORW0lI3fvkJKWdmvCXyaLaYi6GzTLhq_luL50oYNCsOKN-B7doquJ3bu9bZkGgNOUrxt0J_WrMCb-lkcH-z4BOrVDS5B8P9Q9MB8xH2y6bHNfaVRLjwGBWibIl2rqp8I8PSl_GvbYzqeWbUqkK-D6VZ240r4Zz2F0NdYqNSEOXKFCVPZSKsdBqVrxQeWGJrFiZfN2aqSzpU0dtTL2AG_QN08SqlREl184IFhP5ysL_HH-cfZlXTbk0LFTo48Kzr
@vousmeevoyez
vousmeevoyez / upload.json
Created August 17, 2022 01:01
Wed Aug 17 2022 01:01:46 GMT+0000 (Coordinated Universal Time)
[{"externalId":"5116727025","name":"YIHUA 1502DD POWER SUPPLY (2 AMPER) LED ORIGINAL","description":"YIHUA 1502DD LED Power Supply DN\n\n1. power supply Ini adalah untuk pekerjaan pemeliharaan ponsel / komputer\ndan dirancang khusus, semua fungsi, peralatan catu daya.\n2.Dual LED display untuk menunjukkan arus dan tegangan.peralatan perbaikan ponsel berperforma tinggi yang terjangkau dan mudah dioperasikan.\n3.a.Comes dengan fungsi output DC 0-15V (output tegangan dapat disesuaikan baik oleh roda gigi atau pengontrol slide).\n4.Setiap dua pengaturan daya: disesuaikan sepanjang rentang 0.6A-2A.\n5. Perlindungan sirkuit pendek dan fungsi pemulihan otomatis\n6. Saat ini: 0-2A dengan tingkat output langsung 1.5V, 3.6V, 4.8V, 6.0V atau 7.2V.\n\nParameter\nNilai tegangan AC220V ± 10% 50Hz\nKekuatan mesin lengkap 15W\nLingkungan pengoperasian 0 ~ 40 ℃ kelembaban relatif < 80 %\nSuhu penyimpanan -20 ~ 80 ℃ kelembaban relatif < 80 %\nDimensi bodi mesin 17 * 21 * 16.5cm\n\nParameter kinerja\nTegangan output Disesuaikan
@vousmeevoyez
vousmeevoyez / sample.json
Last active July 14, 2022 07:37
Sample JSON
{"text": "Hello"}