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
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']); |
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
public function fetch(){ | |
$idYard = $this->_q['idyard']; | |
if(!$this->_auth) { | |
$this->setjson(false); | |
return; | |
} | |
$res = []; |
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
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] |
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
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.
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
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 |
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
# 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) |
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
""" | |
@copyright | |
Moch. Miftahul Huda Firmansyah | |
Universitas Trunojoyo Madura | |
190411100134 | |
""" | |
import sys | |
from PyQt5.QtCore import Qt, QDate | |
from PyQt5.QtWidgets import * |
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 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{ |
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
// FILE PATH: /resources/js/app.js | |
require('./bootstrap'); | |
// Import Service Worker Registry | |
require('./extensions/sw-registry'); | |
import Vue from 'vue'; | |
... |
OlderNewer