Skip to content

Instantly share code, notes, and snippets.

View whoishusni's full-sized avatar
🛸
Working From Space

Mohammad Husni Mubaraq whoishusni

🛸
Working From Space
View GitHub Profile
@whoishusni
whoishusni / main.c
Last active October 19, 2020 01:02
Contoh Aplikasi Konsol Pembelian Tiket Kereta dengan bahasa C
#include <stdio.h>
#include <stdlib.h>
int main()
{
char kode_jurusan;
int jumlah_beli, kode_member, harga,diskon,bayar,rumus_diskon;
printf("==========================\n");
printf("| PROGRAM TIKET KERETA |\n");
printf("==========================\n");
@whoishusni
whoishusni / gist:0b23cf5d0e93897c0c0f4b2abd1708c8
Created September 30, 2020 02:57 — forked from pitch-gist/gist:2999707
HTML: Simple Maintenance Page
<!doctype html>
<title>Site Maintenance</title>
<style>
body { text-align: center; padding: 150px; }
h1 { font-size: 50px; }
body { font: 20px Helvetica, sans-serif; color: #333; }
article { display: block; text-align: left; width: 650px; margin: 0 auto; }
a { color: #dc8100; text-decoration: none; }
a:hover { color: #333; text-decoration: none; }
</style>
@whoishusni
whoishusni / App.kt
Last active June 7, 2020 11:30
Little Code Snippet How To Use Coroutine In Kotlin
//Kotlin Coroutine Code Snippet Made By Husni
//Import Dependency
import kotlinx.coroutines.*
fun income(income : Int) : Int {
return income
}
fun payTax(tax : Int) : Int {
@whoishusni
whoishusni / mikro.lua
Created May 8, 2018 16:00
my mikrotik script login
:local jam [/system clock get time]
:local uptime [/ip hotspot user get [find name=$user] uptime]
:local limit [/ip hotspot user get [find name=$user] limit-uptime]
:local teks "User $user Dengan IP Address $address Telah LOGIN pada Jam $jam, dan waktu yang terpakai adalah $uptime dari $limit ";
/tool fetch url="https://api.telegram.org/bot590339726:AAFnWxOfIlysJ9aFBa8Uy7WNBw69yNkLUmw/sendMessage?chat_id=356212397&text=$teks" keep-result=no