Skip to content

Instantly share code, notes, and snippets.

View bijancot's full-sized avatar
💭
on journey to defeat kaido and become new pirate king

Panji Iman Baskoro bijancot

💭
on journey to defeat kaido and become new pirate king
View GitHub Profile
import pandas as pd
import numpy as np
from sklearn.cluster import KMeans
import folium
from math import ceil
# Load your dataset
file_data = "finna-rute-exist.csv"
data = pd.read_csv(file_data) # Adjust this path to your dataset location
jumlah_toko = len(data)
@bijancot
bijancot / gist:c67df494a165f91707639723deb749af
Last active August 31, 2021 13:21
fix column formasi chelsea vs liverpool 1 sama
<div class="row mx-n2">
<div class="col-6 col-md-3 px-2 mb-3">
<div class="custom-control custom-radio custom-control-inline checkbox-outline checkbox-icon text-center w-100 h-100">
<input type="radio" id="radioLomba1" name="BIDANG_LOMBA" value="1" class="custom-control-input checkbox-outline-input checkbox-icon-input" required="" checked="checked">
<label class="checkbox-outline-label checkbox-icon-label w-100 rounded py-3 px-1 mb-0" for="radioLomba1"> <img class="img-fluid w-50 mb-3" src="Daftar%20Kompetisi%20-%20LO%20Kreatif_files/discussion-scene.svg" alt="SVG"> <span class="d-block">Aplikasi Web/Mobile</span> </label>
</div>
</div>
<div class="col-6 col-md-3 px-2 mb-3">
<div class="custom-control custom-radio custom-control-inline checkbox-outline checkbox-icon text-center w-100 h-100">
<input type="radio" id="radioLomba2" name="BIDANG_LOMBA" value="3" class="custom-control-input checkbox-outline-input checkbox-icon-input" required="">
@bijancot
bijancot / simple_looping.php
Created June 6, 2021 07:59
loop with some condition
<!DOCTYPE html>
<html>
<body>
<?php
//x inputan user
$x = array("7","5");
//y data dari database
$y = array("2","4","3");
<!DOCTYPE html>
<html>
<body>
<?php
$json = array('meta'=> array('code'=>"200",'description'=>"success"),
'response'=> array('data'=> array(array("nama"=>"panji")),'first_page_url'=> "string",'from'=>"1",'last_page'=>"3",'last_page_url'=>"string",'next_page_url'=>"string",'path'=>"string",'per_page'=>"20",'prev_page_url'=>NULL,'to'=> "20", 'total'=>"45",
));
print_r(json_encode($json));
@bijancot
bijancot / enc_dec.php
Last active September 22, 2020 10:45
encryption and decryption using openssl, with AES_256_CBC algorithm and hexadecimal data
<?php
//shoutout to turret-io (https://gist.github.com/turret-io/957e82d44fd6f4493533)
// just change the data type to hexadecimal
// DEFINE our cipher
define('AES_256_CBC', 'aes-256-cbc');
// Generate a 256-bit encryption key
// This should be stored somewhere instead of recreating it each time
$encryption_key = 'your_encryption_key';
@bijancot
bijancot / gcal_link.php
Created June 2, 2020 10:29 — forked from chrisknepper/gcal_link.php
PHP Google Calendar Link Generator
@bijancot
bijancot / TA
Last active July 3, 2018 13:56
/**
*
* @author bijan and co.
*/
import java.util.Scanner;
public class Projek3 {
static String nama, npwp, lagi = "";
static int pilihan;
static Scanner input = new Scanner(System.in);
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package pkg00_project;
import java.util.Scanner;
/**
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package pkg00_project;
import java.util.Scanner;
/**
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package pkg00_project;
import java.util.Scanner;
/**
*
* @author bijan