Skip to content

Instantly share code, notes, and snippets.

View nsdevaraj's full-sized avatar
🎯
Focusing

N.S.Devaraj nsdevaraj

🎯
Focusing
View GitHub Profile
@nsdevaraj
nsdevaraj / package.json
Created April 5, 2025 03:45
mcp with socket
{
"type": "module",
"dependencies": {
"@coinpaprika/api-nodejs-client": "^2.0.0",
"@modelcontextprotocol/sdk": "^1.7.0",
"ws": "^8.18.1",
"zod": "^3.24.2"
}
}
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>LinkedIn Resume Builder</title>
<link
href="https://fonts.googleapis.com/css2?family=Open+Sans:wght@300;400;600;700&family=Poppins:wght@400;500;600&display=swap"
rel="stylesheet"
/>
"""
Business Simulation Decision Types
=================================
This module defines the various decision types available in the business simulation
and their specific parameters and effects.
"""
from typing import Dict, Any, List, Optional
from enum import Enum
@nsdevaraj
nsdevaraj / Roadmap.md
Last active November 19, 2024 02:21
SuperFilter Features list

Inforiver SuperFilter

  • Popup Mode
  • Conditional formatting
  • Number Formatting (for tooltip)
  • Measure based on category, only Numeric Filter
  • Saved Filters
  • Alphanumeric filter*
  • Filter Context support
  • Single select for month / Day
{
"privileges": [
{
"name": "ExportContent",
"essential": true
},
{
"name": "LocalStorage",
"essential": true
},
// Example with nested conditionals (harder to read)
function processUserRegistration(user) {
if (user.hasValidEmail) {
if (user.isMinimumAge) {
if (user.hasAcceptedTerms) {
if (user.hasProvidedValidPassword) {
// Perform registration
return {
success: true,
userId: generateUserId(),
input
1 - 2
1 - 3
2 - 3
2 - 4
3 - 1
3 - 2
4 - 1
4 - 2
@nsdevaraj
nsdevaraj / embedd.py
Last active January 25, 2025 21:28
local model embedding
import sqlite3
import torch
from transformers import AutoTokenizer, AutoModel
from tqdm import tqdm
import gc
#python3 -m venv path/to/venv
#source path/to/venv/bin/activate
# Connect to the SQLite database
conn = sqlite3.connect('data.sqlite')
<p>
<a href="https://inforiver.com/analytics-plus/">Inforiver Analytics+</a> is the fastest way to visualize your data
and share insightful
stories in Microsoft Power BI as a Power BI Certified Visual. Analytics+ also
enables large enterprises to migrate from Tableau, Spotfire, Qlik, Domo,
Cognos, SAP Lumira, or their static PowerPoint dashboards from Think-cell or
Mekko Graphics and consolidate them within Microsoft Power BI.
</p>
<p>The intuitive, no-code user experience (UX) helps even casual users build
dashboards and storyboards in minutes, with 100+ charts, cards, and tables

AI vs. Sewing Machines

Socio-Economic Impact Analysis

Content

  • Labor and Production
  • Cost and Investment
  • Impact and Potential

Section 1 - Labor and Production