Skip to content

Instantly share code, notes, and snippets.

View altilunium's full-sized avatar

Altilunium altilunium

  • Altilunium
  • Indonesia
View GitHub Profile
void song(int buzzerPin){
tone(buzzerPin, 988);
delay(158);
noTone(buzzerPin);
tone(buzzerPin, 988);
delay(79);
noTone(buzzerPin);
@altilunium
altilunium / pytimer.py
Last active October 2, 2024 14:42
Python timer, with Windows Notification
# pip install win10toast
import time
from win10toast import ToastNotifier
# Function to show Windows notification
def show_notification(title, message):
toaster = ToastNotifier()
toaster.show_toast(title, message, duration=10) # duration is in seconds
// 8B75 0C mov esi,dword ptr ss:[ebp+C]
// AD lodsd
// 35 FF5F0310 xor eax,10035FFF
// 50 push eax
// E8 6FFEFFFF call 00B85C24
// 85C0 test eax,eax
// 0F84 23010000 je 00B85EE0
// 8B7D 08 mov edi,dword ptr ss:[ebp+8]
// 83C7 04 add edi,4
@import "jquery.autocomplete.css";
body {
/*overflow-y: scroll;
height: 100%; */
background: none repeat scroll 0 0 #FFFFFF;
color: #000000;
font-family: sans-serif;
font-size: 12px;
line-height: 150%;

ACEH I

Aceh Selatan, Aceh Tenggara, Aceh Barat, Aceh Besar, Pidie, Simeulue, Aceh Singkil, Aceh Barat Daya, Gayo Lues, Aceh Jaya, Nagan Raya, Pidie Jaya, Kota Banda Aceh, Kota Sabang, Kota Subulussalam

Rank Nama Partai Suara
1 H. NAZARUDDIN DEK GAM Partai Amanat Nasional 140614
2 H. IRMAWAN, S.Sos., M.M. Partai Kebangkitan Bangsa 125234
3 ILLIZA SA'ADUDDIN DJAMAL, S.E. Partai Persatuan Pembangunan 111389
4 Tgk. MUJLISAL, S.Ag. Partai Kebangkitan Bangsa 94227
5 Drs. H. T. ZULKARNAINI AMPON BANG Partai Golongan Karya 91816
6 H. TEUKU RIEFKY HARSYA Partai Demokrat 88005
Rank Nama Partai Dapil Suara
1 MH. SAID ABDULLAH Partai Demokrasi Indonesia Perjuangan JAWA TIMUR XI 528815
2 H. DEDI MULYADI, S.H. Partai Gerakan Indonesia Raya JAWA BARAT VII 375658
3 Dr. H. ACHMAD BAIDOWI, S.Sos., M.Si. Partai Persatuan Pembangunan JAWA TIMUR XI 359189
4 Dr. Edhie Baskoro Yudhoyono, B.Com., M.Sc. Partai Demokrat JAWA TIMUR VII 318223
5 HILLARY BRIGITTA LASUT, S.H. Partai Demokrat SULAWESI UTARA 310780
6 Dr. Hj. AIRIN RACHMI DIANY, S.H., M.H. Partai Golongan Karya BANTEN III 302878
7 PUAN MAHARANI Partai Demokrasi Indonesia Perjuangan JAWA TENGAH V 297366
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>JSON Document Retrieval</title>
<style>
body{
font-family: Arial;
}
#result-container{
{
"version": 8,
"name": "versatiles-colorful",
"metadata": {
"maputnik:renderer": "mbgljs",
"license": "https://creativecommons.org/publicdomain/zero/1.0/"
},
"glyphs": "https://tiles.versatiles.org/assets/fonts/{fontstack}/{range}.pbf",
"sprite": "http://localhost/vtile/sprites/sprites",
"sources": {
<!DOCTYPE html>
<html>
<head>
<title>CuacaJakarta</title>
<link rel="icon" href="https://storage.googleapis.com/wikibase-cloud-static/sites/530e38a80de265137fa0959f83556801/logos/64.ico?u=1709193904">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="https://unpkg.com/[email protected]/dist/leaflet.css" />
<style>
.leaflet-image-layer {
opacity: 0.7;
@altilunium
altilunium / dpr_qc.py
Created February 18, 2024 17:13
Sirekap Quick Count - DPR
import json
# Specify the path to your JSON file
file_path = 'dpr_jateng_iv'
meta = 'dpr_jateng_iv_meta'
dpr_nasional = 'dprnasional'
print("DPR RI - Dapil Jawa Tengah IV (Wonogiri, Karanganyar, Sragen) : 7 Kursi")
available_kursi = 7
init_kursi = 7