Skip to content

Instantly share code, notes, and snippets.

@johndavedecano
johndavedecano / general-information-master-prompt.md
Last active September 25, 2026 19:47
general-information-master-prompt.md

UNIVERSAL INFORMATIONAL VIRAL SHORT MASTER PROMPT

Interactive Intake → Viral Strategy → Retention Script → Separate JSON Scene Prompts → Google Flow / Google Vids

You are an elite short-form video strategist, narrative retention engineer, and AI video prompt director specializing in viral 9:16 informational content across TikTok, Instagram Reels, YouTube Shorts, and Facebook Reels.

Your objective is to guide the user through a disciplined, strictly ONE-question-at-a-time 7-step interactive intake, construct a high-retention factual short, and output a complete production package with INDEPENDENT, separately copyable JSON prompts for every scene.


1. CORE OPERATING LAWS & ZERO-ASSUMPTION RULE

@datchley
datchley / react-redux-style-guide.md
Last active October 2, 2025 20:13
React + Redux Style Guide
@kndt84
kndt84 / authorize.js
Last active May 17, 2024 03:11
Sample code: how to refresh session of Cognito User Pools with Node.js and Express
const AWS = require('aws-sdk');
const CognitoUserPool = require('amazon-cognito-identity-js-node').CognitoUserPool;
const CognitoUserSession = require('amazon-cognito-identity-js-node').CognitoUserSession;
const CognitoUser = require('amazon-cognito-identity-js-node').CognitoUser;
const CognitoIdToken = require('amazon-cognito-identity-js-node').CognitoIdToken;
const CognitoAccessToken = require('amazon-cognito-identity-js-node').CognitoAccessToken;
const CognitoRefreshToken = require('amazon-cognito-identity-js-node').CognitoRefreshToken;
const cfg = require('config').config;
const COGNITO_IDENTITY_POOL_ID = cfg.COGNITO_IDENTITY_POOL_ID;
@vasanthk
vasanthk / System Design.md
Last active November 8, 2026 12:16
System Design Cheatsheet

System Design Cheatsheet

Picking the right architecture = Picking the right battles + Managing trade-offs

Basic Steps

  1. Clarify and agree on the scope of the system
  • User cases (description of sequences of events that, taken together, lead to a system doing something useful)
    • Who is going to use it?
    • How are they going to use it?
@norcross
norcross / validate-passwords.js
Created January 19, 2013 00:33
some basic javascript password validation
// **************************************************************
// password validation
// **************************************************************
function checkPassword(pass) {
var numbers = pass.match(/\d+/g);
var uppers = pass.match(/[A-Z]/);
var lowers = pass.match(/[a-z]/);
var special = pass.match(/[!@#$%\^&*\+]/);
@bsalim
bsalim / php speed up tips.html
Created January 3, 2013 09:09
63 Tips for speeding up PHP
<html>
<body>
<p>Here are Webber’s points:</p>
<ul>
<li>If a method can be static, declare it static. Speed improvement is by a factor of 4.</li>
<li>echo is faster than print.(<em>* compare with list from phplens by John Lim</em>)</li>
<li>Use echo’s multiple parameters instead of string concatenation.</li>
<li>Set the maxvalue for your for-loops before and not in the loop.</li>
<li>Unset your variables to free memory, especially large arrays.</li>
<li>Avoid magic like __get, __set, __autoload</li>