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
@iniakunhuda
iniakunhuda / generate-sertif.py
Last active December 16, 2023 13:32
Generate Certificate From CSV to PDF
from PIL import Image, ImageFont, ImageDraw
import pandas as pd
def main():
print("Initializing Script!")
names = pd.read_csv('peserta-devfest2023.csv')
for i,row in names.iterrows():
name = str(row['Name'])
name = name.title()
word_length = len(name.split(" "))
@iniakunhuda
iniakunhuda / create_note_screen.dart
Last active July 27, 2023 02:49
UI Flutter Note App
import 'package:flutter/material.dart';
import 'package:note_app/gen/colors.gen.dart';
class CreateNoteScreen extends StatefulWidget {
const CreateNoteScreen({super.key});
@override
State<CreateNoteScreen> createState() => _CreateNoteScreenState();
}
@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';
...
@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 / 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 / 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 / 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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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]:
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]