Skip to content

Instantly share code, notes, and snippets.

View fadhilaf's full-sized avatar
🇲🇨
Fighting

M Fadhil Al-Fatih fadhilaf

🇲🇨
Fighting
View GitHub Profile
@fadhilaf
fadhilaf / combined.html
Created May 18, 2024 18:45
Sistem pakar anastesi luka sayatan
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Sistem Pakar Anastesi</title>
<link href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css" rel="stylesheet">
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/js/bootstrap.bundle.min.js" integrity="sha384-YvpcrYf0tY3lHB60NNkmXc5s9fDVZLESaAA55NDzOxhy9GkcIdslK1eN7N6jIeHz" crossorigin="anonymous"></script>
<style>
body {
@fadhilaf
fadhilaf / full-server.ino
Last active May 28, 2024 19:15
Simple soil moisture sensor HTML interface + esp32 server
#include <WiFi.h>
#include <AsyncTCP.h>
#include <ESPAsyncWebServer.h>
#define SSID "ssid"
#define PASSWORD "password"
#define moisture_pin 35
AsyncWebServer server(80);
@fadhilaf
fadhilaf / bracket-pattern-generator-faster.py
Last active August 1, 2022 00:54
My approach to question "Regular Bracket Sequences" codeforces
def incrementNextRightSlotAlgorithm(n):
if n == 1:
yield [1]
elif n == 0:
yield []
else:
for x in range(n,0,-1):
for y in incrementNextRightSlotAlgorithm(n-x):
yield([x]+y)
@fadhilaf
fadhilaf / youtube-shorts-remove-recommendation-on-restart.js
Created June 27, 2022 21:22
Youtube short automatically gives 10 video every time when clicking one youtube short video. This script just remove the 9 video we didnt ask and the navigation down button. On file can only deal with AJAX, and the other only when restarting
// ==UserScript==
// @name Remove Yt Shorts Recommendation on restart
// @namespace http://tampermonkey.net/
// @version 0.1
// @description The other script not fast enough to observe the fast query on restart so do this instead
// @author FadhilAF
// @match https://www.youtube.com/shorts/*
// @icon https://upload.wikimedia.org/wikipedia/commons/thumb/f/fc/Youtube_shorts_icon.svg/193px-Youtube_shorts_icon.svg.png
// @grant none
// @run-at document-idle