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:
| // 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"); |
| 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(); | |
| }; |
I hereby claim:
To claim this, I am signing this object:
Games:
Code Stuffs:
| #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 |