Skip to content

Instantly share code, notes, and snippets.

View nsdevaraj's full-sized avatar
🎯
Focusing

N.S.Devaraj nsdevaraj

🎯
Focusing
View GitHub Profile
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>IBCS Reporting on Power BI Semantic Models β€” No Custom Visuals, No SVG, No Code | Lumel</title>
<meta name="description" content="Build IBCS-compliant reports, variance charts, waterfall charts, and P&L statements directly on your Power BI semantic models. No custom visuals to install, no SVG measures, no DAX hacks.">
<meta name="keywords" content="IBCS reporting, IBCS Power BI, IBCS templates, variance analysis Power BI, waterfall chart Power BI, actual vs budget report, IBCS standards, financial reporting Power BI, small multiples, income statement Power BI, plan vs actual vs forecast, IBCS certified, SUCCESS rules">
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
@nsdevaraj
nsdevaraj / github.html
Created April 13, 2026 06:15
github productivity
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>GitHub Contributions Tracker</title>
<style>
:root {
--color-primary: #238636;
--color-secondary: #0d1117;
@nsdevaraj
nsdevaraj / Index.html
Last active March 14, 2026 13:13
Chess puzzles
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Offline Chess Puzzles</title>
<!-- Tailwind CDN (play/browser v4 or classic v3, pick one) -->
<script src="https://cdn.jsdelivr.net/npm/@tailwindcss/browser@4"></script>
<!-- or classic:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Morse Code Tutor + Trainer</title>
<script src="https://unpkg.com/react@18/umd/react.production.min.js"></script>
<script src="https://unpkg.com/react-dom@18/umd/react-dom.production.min.js"></script>
<script src="https://unpkg.com/@babel/standalone/babel.min.js"></script>
<style>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Morse Code Translator</title>
<script src="https://unpkg.com/react@18/umd/react.production.min.js"></script>
<script src="https://unpkg.com/react-dom@18/umd/react-dom.production.min.js"></script>
<script src="https://unpkg.com/@babel/standalone/babel.min.js"></script>
<style>
import { useState, useEffect, useRef, useCallback } from β€œreact”;
const MORSE = {
A:”.-”,B:”-…”,C:”-.-.”,D:”-..”,E:”.”,F:”..-.”,G:”–.”,H:”….”,
I:”..”,J:”.—”,K:”-.-”,L:”.-..”,M:”–”,N:”-.”,O:”—”,P:”.–.”,
Q:”–.-”,R:”.-.”,S:”…”,T:”-”,U:”..-”,V:”…-”,W:”.–”,X:”-..-”,
Y:”-.–”,Z:”–..”
};
const N_ = {
@nsdevaraj
nsdevaraj / heap.py
Last active March 4, 2026 08:16
analyse chrome memory heap
"""
Fast V8 heap snapshot analyser
Focuses on: type distribution, detached nodes, large objects, closure/object names
Skips expensive full-graph retained-size computation.
"""
import json, collections, sys
SNAPSHOT_PATH = '/sessions/practical-relaxed-franklin/mnt/uploads/Heap-20260226T131952.heapsnapshot'
@nsdevaraj
nsdevaraj / tmux.conf
Created February 25, 2026 01:12
nano ~/.tmux.conf && tmux source-file ~/.tmux.conf
##### Basics #####
# Use tmux-256color and enable RGB
set -g default-terminal "tmux-256color"
set-option -sa terminal-features ",xterm*:RGB"
# History & timings
set -g history-limit 20000
set -sg escape-time 0
set -g repeat-time 300
// microgpt.js β€” tiny dependency-free GPT in JavaScript
// ~ port of karpathy/microgpt.py https://gist.github.com/karpathy/8627fe009c40f57531cb18360106ce95
const fs = require("fs");
const https = require("https");
// -------------------- Helpers --------------------
function download(url, dest) {
return new Promise((resolve, reject) => {
@nsdevaraj
nsdevaraj / final cut.sh
Last active January 21, 2026 09:36
extend trial
mv -v ~/Library/Containers/com.apple.FinalCutTrial/Data/Library/Application\ Support/.ffuserdata ~/.Trash
mv -v ~/Library/Application\ Support/.lpxuserdata ~/.Trash