Skip to content

Instantly share code, notes, and snippets.

View limhenry's full-sized avatar
🦄
Coding like a T-Rex

Henry Lim limhenry

🦄
Coding like a T-Rex
View GitHub Profile
@limhenry
limhenry / Firebase_Backup.py
Last active January 1, 2018 19:15
Firebase Backup Script with Python
#Firebase Auto Backup by Henry Lim (https://limhenry.xyz)
#WARNING: THIS MIGHT AGAINST FIREBASE'S TERMS OF SERVICE, USE IT AT YOUR OWN RISK
#Just change the line with comment
import urllib
import urllib2
from time import gmtime, strftime
import time
@limhenry
limhenry / ss16-webapp.md
Last active October 24, 2020 20:25
Submissions for Static Showdown 2016
@limhenry
limhenry / keybase.md
Created November 1, 2016 11:30
keybase.md

Keybase proof

I hereby claim:

  • I am limhenry on github.
  • I am limhenry (https://keybase.io/limhenry) on keybase.
  • I have a public key whose fingerprint is 0077 1059 71EB A026 B836 46D2 3032 BCE5 E2B7 D266

To claim this, I am signing this object:

@limhenry
limhenry / trex.gif
Last active September 20, 2019 19:47
trex.gif
@limhenry
limhenry / opensky.py
Created June 5, 2026 08:28
Python Script to search for Beluga XL in the south of Hamburg
const TOKEN_REFRESH_MARGIN = 30;
let token = null;
let expiresAt = null;
const getToken = async () => {
if (token && expiresAt && Date.now() < expiresAt) return token;
return await refreshToken();
};
@limhenry
limhenry / ytmusicapi_lyrics.js
Created July 29, 2026 17:04
Get Synced Lyrics from YouTube Music API
// Get Synced Lyrics from YouTube Music API
const videoId = "B7kKeTRV0Xs";
const API_KEY = "AIzaSyC9XL3ZjWddXya6X74dJoCTL-WEYFDNX30"; // this is hard coded
const getTimestamp = (ms) => {
const h = String(Math.floor(ms / 3600000)).padStart(2, "0");
const m = String(Math.floor((ms % 3600000) / 60000)).padStart(2, "0");
const s = String(Math.floor((ms % 60000) / 1000)).padStart(2, "0");