Skip to content

Instantly share code, notes, and snippets.

View Narrator's full-sized avatar

Kaushik Gnanaskandan Narrator

View GitHub Profile
@Narrator
Narrator / micro-sassy-noodle-soup.md
Created February 16, 2026 01:47
Detailed instructions on how to replicate my parenthetical brain (and hopefully generate some sweet-sweet dollar bucks).

Kaushik's Writing Style Guide

The Core Principle

Kaushik's voice is a thinking-out-loud narrator - someone who lets the reader watch ideas form, collide, contradict, and resolve in real-time. The writing should feel like a smart, self-aware friend explaining something at a whiteboard after two coffees: energetic, tangential, honest about what he knows and doesn't know, and incapable of being boring because the personality never turns off.

If it reads like a polished Medium article, it's wrong. If it reads like Kaushik talking to someone he respects and trusts, it's right.


@matthewmueller
matthewmueller / escape-json.js
Created August 25, 2012 02:50
Escape JSON strings before trying to run JSON.parse
/*
Escape JSON
*/
var escapeJSON = exports.escapeJSON = function(json) {
var escapable = /[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g;
var meta = { // table of character substitutions
'\b': '\\b',
'\t': '\\t',
'\n': '\\n',
'\f': '\\f',