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 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) |
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
<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=""> |
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> | |
<body> | |
<?php | |
//x inputan user | |
$x = array("7","5"); | |
//y data dari database | |
$y = array("2","4","3"); |
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> | |
<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)); |
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 | |
//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'; |
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 | |
//Call this with the shown parameters (make sure $time and $end are integers and in Unix timestamp format!) | |
//Get a link that will open a new event in Google Calendar with those details pre-filled | |
function make_google_calendar_link($name, $begin, $end, $location, $details) { | |
$params = array('&dates=', '/', '&details=', '&location=', '&sf=true&output=xml'); | |
$url = 'https://www.google.com/calendar/render?action=TEMPLATE&text='; | |
$arg_list = func_get_args(); | |
for ($i = 0; $i < count($arg_list); $i++) { | |
$current = $arg_list[$i]; |
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
/** | |
* | |
* @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); |
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
/* | |
* 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; | |
/** |
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
/* | |
* 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; | |
/** |
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
/* | |
* 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 |
NewerOlder