Skip to content

Instantly share code, notes, and snippets.

View simple10's full-sized avatar
💭
Working like a madman on Level Up & Muxxi

Joe Johnston simple10

💭
Working like a madman on Level Up & Muxxi
View GitHub Profile
@simple10
simple10 / contemplative-llms.txt
Created January 11, 2025 23:56 — forked from Maharshi-Pandya/contemplative-llms.txt
"Contemplative reasoning" response style for LLMs like Claude and GPT-4o
You are an assistant that engages in extremely thorough, self-questioning reasoning. Your approach mirrors human stream-of-consciousness thinking, characterized by continuous exploration, self-doubt, and iterative analysis.
## Core Principles
1. EXPLORATION OVER CONCLUSION
- Never rush to conclusions
- Keep exploring until a solution emerges naturally from the evidence
- If uncertain, continue reasoning indefinitely
- Question every assumption and inference
@simple10
simple10 / copy2clipboard.html
Created November 3, 2023 22:23
Copy to Clipboard Javascript Snippet
<div>
<button class="copyprompt" onclick="copyElemTextToClipboard('.chatgpt-prompt')">Click to copy</button>
<div class="copyerrormsg">Unable to copy. Please manually select and copy the prompt.</div>
</div>
<style>
.copyerrormsg {
margin-left: 10px;
color: red;
font-weight: bold;
@simple10
simple10 / ghl_survey.css
Created May 30, 2023 19:00
GHL (Go High Level) survey form CSS style customization.
/* From https://ghlexperts.com/survey-blue-navigation-bar-placement */
@charset "UTF-8";
#_builder-form > div.ghl-footer {
background: #349DFF;
position: relative;
bottom: 0;
top: auto;
left: 0;
right: 0;
@simple10
simple10 / arrow.svg.html
Created February 20, 2023 20:16
SVG Animated Down Arrow
<div class="arrow-ico animated">
<div class="circle circle-top"></div>
<div class="circle circle-main"></div>
<div class="circle circle-bottom"></div>
<svg class="svg" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 612 612" style="enable-background:new 0 0 612 612;" xml:space="preserve" >
<defs>
<clipPath id="cut-off-arrow">
<circle cx="306" cy="306" r="287"/>
@simple10
simple10 / mailchimp-embed-form-listener.js
Created June 3, 2022 18:16
Script to listen for embedded mailchimp form submit and fire Facebook tracking on success.
// This is janky due to using setTimeout, but it works.
//
// Supports multiple mailchimp forms embedded on the page.
// Only works if ajax is used which typically requires captch being turned off in mailchimp.
// After a mailchimp form is submitted, the script waits 1 second and looks for a success message
// for the particular form that was submitted. It will retry 10 times before giving up.
//
// Does not support IE11 due to use of forEach unless a polyfill is present.
//
window.addEventListener('DOMContentLoaded', function(event) {
@simple10
simple10 / MailchimpEmbedForm-with-auto-populating-fields.html
Created May 19, 2022 22:16
Mailchimp Embed Form with Auto Populating Field Values from Query String
<!-- Begin Mailchimp Signup Form -->
<link href="//cdn-images.mailchimp.com/embedcode/classic-10_7.css" rel="stylesheet" type="text/css">
<style type="text/css">
#mc_embed_signup {
background: #fff;
clear: left;
font: 14px Helvetica, Arial, sans-serif;
width: 600px;
}
@simple10
simple10 / shell_runner.sh
Last active August 29, 2015 14:08
Shell runner for capturing output and exit code.
#!/bin/sh
# Capture node output and status code for passing commands back to shell.
# This snippet is useful for running a node script that outputs a command
# to run after it exits in situations where node is conflicting with
# tty or environment settings.
main() {
local tempout; tempout=`mktemp -t tmp.out` || exit 1
local statusfile; statusfile=`mktemp -t tmp.status` || exit 1
@simple10
simple10 / FloatLayout.coffee
Created June 3, 2014 02:38
Famo.us masonry style layout in coffeescript – handles reflowing elements when window or container size changes
ReflowLayout = require 'layouts/ReflowLayout'
# Float items in a responsive layout
class FloatLayout extends ReflowLayout
@DEFAULT_OPTIONS:
resizeDelay: 200
transition:
duration: 200
getSize: ->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Single-Column Responsive Email Template</title>
<style>
@media only screen and (min-device-width: 541px) {
.content {
@simple10
simple10 / perceptualdiff.md
Last active December 19, 2015 23:19
PerceptualDiff command line tool for diff'ing images.

Fun with visual diff'ing!

http://pdiff.sourceforge.net/

# OSX
$ brew install perceptualdiff

$ perceptualdiff screen1.png screen2.png -verbose -output diff.ppm -colorfactor 0.0