Skip to content

Instantly share code, notes, and snippets.

View jo0707's full-sized avatar
:shipit:
guthib

Joshua Sinaga jo0707

:shipit:
guthib
View GitHub Profile
@jo0707
jo0707 / esp32-firebase-telegram-example.c
Last active July 9, 2025 10:37
This gist is a sample ESP32 code to test Arduino IDE and PlatformIO IDE compilation performance while using Firebase and Telegram library. Read the blog here: https://blog.itsjo.works/improve-iot-development-from-arduino-ide-to-platformio-ide
#include <Arduino.h>
#include <WiFi.h>
#include <Firebase_ESP_Client.h>
#include <UniversalTelegramBot.h>
#include <ArduinoJson.h>
// --- Replace with your credentials ---
#define WIFI_SSID "YOUR_WIFI_SSID"
#define WIFI_PASSWORD "YOUR_WIFI_PASSWORD"
@jo0707
jo0707 / esp32-firebase-telegram-example.c
Created July 9, 2025 09:33
This gist used to test Arduino IDE and PlatformIO IDE performance on my blog.
#include <Arduino.h>
#include <WiFi.h>
#include <Firebase_ESP_Client.h>
#include <UniversalTelegramBot.h>
#include <ArduinoJson.h>
// --- Replace with your credentials ---
#define WIFI_SSID "YOUR_WIFI_SSID"
#define WIFI_PASSWORD "YOUR_WIFI_PASSWORD"
@jo0707
jo0707 / esp32-firebase-telegram-example.c
Created July 9, 2025 09:33
This gist used to test Arduino IDE and PlatformIO IDE performance on my blog.
#include <Arduino.h>
#include <WiFi.h>
#include <Firebase_ESP_Client.h>
#include <UniversalTelegramBot.h>
#include <ArduinoJson.h>
// --- Replace with your credentials ---
#define WIFI_SSID "YOUR_WIFI_SSID"
#define WIFI_PASSWORD "YOUR_WIFI_PASSWORD"
#include <iostream>
using namespace std;
struct Node {
int data;
Node* left;
Node* right;
};
// Membuat node baru
@jo0707
jo0707 / hash-modulus-RA.cpp
Created November 7, 2024 17:25
Berikut adalah contoh metode Hashing Modulus dan Collision Handling berupa Pengalamatan Rantai.
#include <iostream>
#include <cstdlib>
using namespace std;
#define Nil NULL
#define MaxEl 10
typedef int infotype;
@jo0707
jo0707 / PatternEditableBuilder.java
Created June 28, 2021 20:24 — forked from nesquena/PatternEditableBuilder.java
PatternEditableBuilder - Easy way to create colored clickable spans within a TextView!
import android.text.SpannableStringBuilder;
import android.text.Spanned;
import android.text.TextPaint;
import android.text.method.LinkMovementMethod;
import android.text.style.ClickableSpan;
import android.view.View;
import android.widget.TextView;
import java.util.ArrayList;
import java.util.regex.Matcher;