Skip to content

Instantly share code, notes, and snippets.

View faisalnjs's full-sized avatar
🟢
Online - Busy (!hacking)

Faisal N faisalnjs

🟢
Online - Busy (!hacking)
View GitHub Profile
@faisalnjs
faisalnjs / obsessions.js
Last active February 14, 2026 02:31
Fetch your Last.fm obsessions as JSON, as there is no way to do this in the official API. Use as a CommonJS module, ES module, or as a JavaScript function.
"use strict";
const { JSDOM } = require('jsdom');
async function obsessions(username = null, existingObsessions = []) {
if (!username) {
console.error('[faisalnjs/obsessions] Last.fm username is required.');
return [];
};
try {
@faisalnjs
faisalnjs / expected-emission-lines.js
Last active December 9, 2025 06:54
Expected emission lines from H atom for given series.
// Inputs
var presets = {
lyman: {
initial: 2,
final: 1
},
balmer: {
initial: 3,
final: 2
},
@faisalnjs
faisalnjs / dates.json
Last active January 12, 2025 22:13
FaisalN.js Portfolio Projects
{
"the-divided": "",
"delistgg": "1/12/2025",
"lens-authentication": "12/24/2024",
"paw-it-forward-pet-pantry": "12/14/2024",
"dango-portal": "12/7/2024",
"mydangoid": "9/1/2024",
"faisal-n": "8/27/2024",
"aurorahub": "8/26/2024",
"dango-web-solutions": "8/3/2024",
@faisalnjs
faisalnjs / hello
Last active May 27, 2022 19:45
Text from another site
2mil