Skip to content

Instantly share code, notes, and snippets.

View faisalnjs's full-sized avatar
:fishsticks:
ollama run faisal --think=false

Faisal N faisalnjs

:fishsticks:
ollama run faisal --think=false
View GitHub Profile
@faisalnjs
faisalnjs / hello
Last active May 27, 2022 19:45
Text from another site
2mil
@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 / 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 / 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 {
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
AIzaSyDaBSBoRi0lcMGxvma6oN-rUhb2bKKsAhA
AIzaSyA4Dq0nb9oByAx5-oKiS67R--dA-92AuWc
@faisalnjs
faisalnjs / 1.4.js
Created September 1, 2026 19:19
Unique speed dating rounds of 4/16
// I believe this only effectively works for finding the last round. It likely can be easily extended to solve the entire problem, but I have not succeeded in this.
const allPeople = ['A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P'];
const rounds = [
[
['A', 'B', 'C', 'D'],
['E', 'F', 'G', 'H'],
['I', 'J', 'K', 'L'],
['M', 'N', 'O', 'P']
],