Skip to content

Instantly share code, notes, and snippets.

View adiparamartha's full-sized avatar
🏠
Working from home

Made Adi Paramartha Putra adiparamartha

🏠
Working from home
View GitHub Profile
@adiparamartha
adiparamartha / firebase_arduino_upload.ino
Created April 12, 2020 12:38
Example of uploading data into Firebase Database using Arduino and FirebaseArduino library
#include <ESP8266WiFi.h>
#include <FirebaseArduino.h>
// Set these to run example.
#define FIREBASE_HOST ".."
#define FIREBASE_AUTH "..."
#define WIFI_SSID ".."
#define WIFI_PASSWORD "."
@adiparamartha
adiparamartha / sjf_adi.py
Created November 8, 2022 06:46
SJF Scheduling Algorithm - Adi Paramartha - Python
#ShortestJobFirst Scheduling Algorithms
#Pseudocode: Execute task with shortest burst time / processing time first
import random
import time
i=1
a = random.randrange(1, 10)
b = random.randrange(1, 10)