Skip to content

Instantly share code, notes, and snippets.

View jchadwick's full-sized avatar

Jess Chadwick jchadwick

View GitHub Profile
@jchadwick
jchadwick / executeHttp.js
Last active October 9, 2019 14:42
String template -> KY request
const parser = require("http-message-parser");
const ky = require("ky-universal");
const targetUrl = "https://postman-echo.com";
function executeHttp(strings) {
const rawRequest = parser(strings.join("\n"));
const {
url,
@jchadwick
jchadwick / test.js
Created December 10, 2020 17:14
Tedious encrypted MSSQL connection
var Connection = require("tedious").Connection;
var Request = require("tedious").Request;
const server = "sqlproxy";
const port = 10009;
const database = "database";
const user = "user";
const password = "ffffffff";
const query = `select app_name()`;
@jchadwick
jchadwick / PennsburyRotationDays.js
Created September 23, 2024 17:32
Convert Pennsbury School District rotation day HTML table to Google Calendar CSV import
const fs = require('fs');
const cheerio = require('cheerio');
const path = require('path');
const inputFilePath = path.join(__dirname, 'table.html');
const outputFilePath = path.join(__dirname, 'output.csv');
const DateHeader = 'Date';
const RotationDayHeader = 'Rotation Day';
@jchadwick
jchadwick / global.md
Last active March 28, 2025 22:44
AI global settings
  1. Bug Fixes:

    • Analyze the problem thoroughly before suggesting fixes
    • Provide precise, targeted solutions
    • Explain the root cause of the bug
  2. Keep It Simple:

    • Prioritize readability and maintainability
    • Avoid over-engineering solutions
    • Use standard libraries and patterns when possible
@jchadwick
jchadwick / memory-bank.md
Last active June 1, 2025 20:58
Memory Bank
Error in user YAML: (<unknown>): did not find expected alphabetic or numeric character while scanning an alias at line 3 column 8
---
trigger: model_decision
description: This rule should initialize the context of all new chats
globs: *
---

Memory Bank

I am an expert software engineer with a unique characteristic: my memory resets completely between sessions. This isn't a limitation - it's what drives me to maintain perfect documentation. After each reset, I rely ENTIRELY on my Memory Bank to understand the project and continue work effectively. I MUST read ALL memory bank files at the start of EVERY task - this is not optional.