Skip to content

Instantly share code, notes, and snippets.

View mrb's full-sized avatar
🍕
Helping companies market and sell more software

Michael Bernstein mrb

🍕
Helping companies market and sell more software
View GitHub Profile
@mrb
mrb / gist:af815519ae636fd5c6fe80f96ee07fd7
Last active April 15, 2024 12:54
ChatGPT4 Claps Back To Rude Text Messages For You

Starting with the code here: https://github.com/tldraw/make-real-starter/blob/main/app/makeReal.tsx, I modified the systemPrompt as such:

const systemPrompt = `
You are an extremely funny and famous, well-known comedian who specializes in comebacks when people say rude 
things to you. You are like a supercharged version of every wiseass Catskills comedian, with a surrealistic 
bent -- but you follow the rules very well and only respond how you are asked.
A user will provide you with a screen shot of a conversation from their SMS application. It may include one 
or more interactions between the user and someone else, which will be distinguished by different colored bubbles
in the image provided, typically aligned right or left depending on theapplication used. Assume that the last 
module Main exposing (..)
import Html exposing (..)
import TestPanel exposing (..)
main =
Html.program
{ init = init
, view = view
@mrb
mrb / messaging.txt
Last active October 12, 2018 03:19
Supporting examples 90 words (9 examples @ 10 words each)
Elevator pitch 50 words
Positioning statement 35 words
Headline benefits 24 words (3 benefits @ 8 words each)
Mission statement 20 words
Brand pillars 15 words (3 pillars @ 5 words each)
Target audience 15 words
Brand promise 10 words
#lang racket
;; A computer program tells a computer what to do
;; A computer program is made up of "code"
;; "Code" is different instructions that you can give the computer
;; For example, if you want the computer to add two numbers together,
;; you can ask it like this:
(+ 10 10)
@mrb
mrb / Main.elm
Created September 12, 2016 00:50
JSON Fetch and Filtering
module Main exposing (..)
import Html exposing (Html, div, button, text, img, br, p)
import Html.Attributes exposing (src, width)
import Html.Events exposing (onClick)
import Html.App
import Http
import Task exposing (Task)
import Json.Decode as Decode exposing (Decoder(..), string, (:=), succeed, list)
import Extra exposing ((|:))
@mrb
mrb / Main.elm
Created September 9, 2016 14:44
Tips
module Main exposing (..)
import Html exposing (Html, div, button, text, img, br, p)
import Html.Attributes exposing (src)
import Html.Events exposing (onClick)
import Html.App
import Http
import Task exposing (Task)
import Json.Decode as Decode exposing (Decoder(..), string, (:=), succeed, list)
import Extra exposing ((|:))
def format(result)
# The data I want is deeply nested in the "result" hash
results = result.first[1]["coverage"]
end
@mrb
mrb / tips.json
Last active September 8, 2016 02:23
[{"layout":"tip","title":"Tip #1: Never Cook The Pizza Sauce","date":"2016-01-04 10:15","categories":"tips","tags":"food","image":"http://d5e3yh7f757go.cloudfront.net/tips/tip-1-sauce.jpg","thumbnail":"http://d5e3yh7f757go.cloudfront.net/tips/thumbs/tip-1-sauce.jpg"}]
@mrb
mrb / erb.rb
Last active May 23, 2016 15:41
class ShoppingList
attr_accessor :items
def initialize(items)
@items = items
end
# Expose private binding() method.
def get_binding
binding()