Skip to content

Instantly share code, notes, and snippets.

View dikiwidia's full-sized avatar
:octocat:
#OpenToWork

Moch Diki Widianto dikiwidia

:octocat:
#OpenToWork
View GitHub Profile
@dikiwidia
dikiwidia / soal.txt
Last active November 14, 2025 08:31
Latihan Project
Buatkan project Penerimaan Mahasiswa Baru dengan Framework Laravel v12 (PHP) lalu simpan pada repository github pribadi sebagai public repository.
Project harus memiliki kriteria:
1. Terdapat halaman index yang berisikan konten website interaktif tentang informasi PMB seperti total program studi, biaya pendaftaran dll. (dummy)
2. Website dapat melakukan proses login dan logout sebagai Administrator
3. Administrator dapat melakukan proses CRUD (Create, Read, Update, Delete) data mahasiswa baru, data yang diinput cukup (NIM, Nama Lengkap, Tempat Lahir, Tanggal Lahir, Biaya Semester).
Poin Penilaian:
1. Website sesuai dengan kriteria.
2. Tampilan menarik dan interaktif
@dikiwidia
dikiwidia / array.php
Created November 6, 2025 02:35
Example Array Task
<?php
$biodata = [
"nama" => "Raka",
"jenis_kelamin" => "L",
"no_hp" => "8515541515",
"alamat" => "Lebak, Banten",
"usia" => 20,
];
@dikiwidia
dikiwidia / example.php
Created October 30, 2025 03:04
Latihan Kelas Pemrograman Dasar
<?php
$mahasiswa = [
["nama" => "Andi", "nim" => 10002, "nilai" => 79],
["nama" => "Arfan", "nim" => 10003, "nilai" => 81],
["nama" => "Umam", "nim" => 10004, "nilai" => 60],
];
foreach ($mahasiswa as $mhs) {
@dikiwidia
dikiwidia / gist:3e05a2a3ff875a594fd81f9e86d95590
Created September 24, 2025 23:16
Materi Dasar Pemrograman Universitas La Tansa Mashiro
Pertemuan #1: https://www.canva.com/design/DAGz48x8zDE/2BbeDan-vNEdLc9jmG6Hjg/view?utm_content=DAGz48x8zDE&utm_campaign=designshare&utm_medium=link2&utm_source=uniquelinks&utlId=hc1e41f809a
@dikiwidia
dikiwidia / cryptarithm.php
Created July 21, 2024 15:15
Cryptarithm with PHP (basic)
<?php
$first_crypt = "AB";
$second_crypt = "AB";
$result_crypt = "BCC";
function calc($first_crypt, $second_crypt, $result_crypt, $operator = 'add') {
$crypt_input = str_split($first_crypt . $second_crypt . $result_crypt);
$merge_input = array_unique($crypt_input);
sort($merge_input);
/*--------------------------------------------------------------------
Moch Diki Widianto - PT BUMI LANCANG KUNING PUSAKA
Soal
Cari kemungkinan banyaknya pola yang dapat ditemukan
dari pattern "ABCD"
Contoh:
"ABCDASABCDSA"
index 0 "ABCD"
@dikiwidia
dikiwidia / sequence_tree.php
Created June 20, 2022 03:39
Looping Problem Sequence Tree
<?php
$datas = [
['id'=> 1, 'parent_id' => 0, 'type' => 'HEADER', 'sequence_no' => 1],
['id'=> 2, 'parent_id' => 1, 'type' => 'OTHER', 'sequence_no' => 2],
['id'=> 3, 'parent_id' => 1, 'type' => 'OTHER', 'sequence_no' => 3],
['id'=> 4, 'parent_id' => 0, 'type' => 'HEADER', 'sequence_no' => 4],
['id'=> 5, 'parent_id' => 4, 'type' => 'OTHER', 'sequence_no' => 5],
['id'=> 6, 'parent_id' => 4, 'type' => 'OTHER', 'sequence_no' => 6],
['id'=> 7, 'parent_id' => 0, 'type' => 'HEADER', 'sequence_no' => 7],
@dikiwidia
dikiwidia / bootstrap_change_page.html
Last active December 8, 2021 08:10
Bootstrap change page with button group
<!doctype html>
<html lang="en">
<head>
<!-- Required meta tags -->
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- Bootstrap CSS -->
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-EVSTQN3/azprG1Anm3QDgpJLIm9Nao0Yz1ztcQTwFspd3yD65VohhpuuCOmLASjC" crossorigin="anonymous">
<link rel="stylesheet" href="https://pro.fontawesome.com/releases/v5.10.0/css/all.css" integrity="sha384-AYmEC3Yw5cVb3ZcuHtOA93w35dYTsvhLPVnYs9eStHfGJvOvKxVfELGroGkvsg+p" crossorigin="anonymous"/>
@dikiwidia
dikiwidia / github_desktop_ubuntu.sh
Created May 16, 2021 04:30 — forked from berkorbay/github_desktop_ubuntu.md
To install Github Desktop for Ubuntu
#sudo wget https://github.com/shiftkey/desktop/releases/download/release-2.1.0-linux1/GitHubDesktop-linux-2.1.0-linux1.deb
#sudo gdebi GitHubDesktop-linux-2.1.0-linux1.deb
# UPDATE (2021-03-05): Thanks to PaoloRanzi81's comment, the updated code is as follows https://gist.github.com/PaoloRanzi81
sudo wget https://github.com/shiftkey/desktop/releases/download/release-2.6.3-linux1/GitHubDesktop-linux-2.6.3-linux1.deb
### Uncomment below line if you have not installed gdebi-core before
# sudo apt-get install gdebi-core
sudo gdebi GitHubDesktop-linux-2.6.3-linux1.deb
<?php
// init
$flow = [
'pertama' => 'Bismillah dan Perencanaan',
'kedua' => 'Lamaran',
'ketiga' => 'Akad dan Resepsi'
];
$status = "Lajang";
$days = 365;
$plan = true;