Skip to content

Instantly share code, notes, and snippets.

View iniakunhuda's full-sized avatar
👨‍💻
Ancora Imparo!

Miftahul Huda iniakunhuda

👨‍💻
Ancora Imparo!
View GitHub Profile
public function yard_post_return(){
log_message('error',file_get_contents('php://input'));
if(!$this->_auth) {
$this->setjson(false);
return;
}
$insp = json_decode(file_get_contents('php://input'), true);
$dt = $this->ino_inspection->GetId($insp['_id']);
public function fetch(){
$idYard = $this->_q['idyard'];
if(!$this->_auth) {
$this->setjson(false);
return;
}
$res = [];
Output:
Iterasi ke-1 Jumlah Iterasi-14
1 = [2, 10, 5, 8, 1, 20, 2, 2, 4, 12, 13, 15, 22, 11, 45]
2 = [2, 5, 10, 8, 1, 20, 2, 2, 4, 12, 13, 15, 22, 11, 45]
3 = [2, 5, 8, 10, 1, 20, 2, 2, 4, 12, 13, 15, 22, 11, 45]
4 = [2, 5, 8, 1, 10, 20, 2, 2, 4, 12, 13, 15, 22, 11, 45]
5 = [2, 5, 8, 1, 10, 20, 2, 2, 4, 12, 13, 15, 22, 11, 45]
6 = [2, 5, 8, 1, 10, 2, 20, 2, 4, 12, 13, 15, 22, 11, 45]
7 = [2, 5, 8, 1, 10, 2, 2, 20, 4, 12, 13, 15, 22, 11, 45]
8 = [2, 5, 8, 1, 10, 2, 2, 4, 20, 12, 13, 15, 22, 11, 45]
def customBubbleSort(data):
geser = True
total = len(data)-1
while geser and total > 0:
geser = False
print("Iterasi ke-{0}\t Jumlah Iterasi= {1}".format(len(data)-total, total))
i = 0
while i < total:
if data[i] > data[i+1]:
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@iniakunhuda
iniakunhuda / Data.csv
Last active August 29, 2020 06:36
Dataset Artikel Data Processing
Country Age Salary Purchased
France 44 72000 No
Spain 27 48000 Yes
Germany 30 54000 No
Spain 38 61000 No
Germany 40 Yes
France 35 58000 Yes
Spain 52000 No
France 48 79000 Yes
Germany 50 83000 No
@iniakunhuda
iniakunhuda / 1.py
Last active September 29, 2020 17:16
Tugas Latihan Pemrograman Desktop A
# Nomor 1
bil1, bil2, bil3, bil4, bil5 = 100,80,70,75,100
rata = (bil1 + bil2 + bil3 + bil4 + bil5) / 5
print("Bilangan = ", bil1, bil2, bil3, bil4, bil5)
print("Jumlah Data = ", 5)
print("Rata-Rata = ", rata)
@iniakunhuda
iniakunhuda / aplikasi-jadwal-sholat.py
Created October 27, 2020 14:46
Aplikasi Jadwal Sholat dengan pyQT
"""
@copyright
Moch. Miftahul Huda Firmansyah
Universitas Trunojoyo Madura
190411100134
"""
import sys
from PyQt5.QtCore import Qt, QDate
from PyQt5.QtWidgets import *
@iniakunhuda
iniakunhuda / layouting.html
Created April 6, 2021 16:36
CSS Layouting
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Latihan CSS</title>
<link rel="stylesheet" href="style.css">
<style>
.kotak-lurus{
@iniakunhuda
iniakunhuda / app.js
Created June 14, 2021 06:06 — forked from echr/app.js
Simple Laravel + Vue + Laravel Mix + Firebase Notification (PWA, Offline)
// FILE PATH: /resources/js/app.js
require('./bootstrap');
// Import Service Worker Registry
require('./extensions/sw-registry');
import Vue from 'vue';
...