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 
@mrb
mrb / chapter01.md
Last active March 27, 2024 23:50
Notes on "Concepts, Techniques, and Models of Computer Programming"

The Beginning of a Long Journey

This is the first in a series of posts I will be making about Van Roy and Haridi's Concepts, Techniques, and Models of Computer Programming. Several smart people have recommended the book for various reasons, and it fits in with my recent attempts to destroy and rebuild my knowledge of Computer Science and programming, from scratch.

The book is immensely long and complex, so posting may take a long time. I plan to post a summary of each chapter, along with some thoughts, and then I'll post as much of my note taking while reading as possible. I hope you'll follow along and enjoy my take.

Chapter 1 - Introduction to Programming Concepts

Summary

@mrb
mrb / pizza_dough.markdown
Last active January 5, 2022 16:05
Best pizza dough
  • 1 2lb bag good AP flour
  • 1 active dry yeast packet
  • 25 grams salt
  • 600 grams water (just over 2 cups)

Mix the salt, yeast, water and about 3/4 of the flour with the paddle attachment (on your stand mixer, or you can try it by hand which I've never done) for about a minute until it is all mixed, it should be pretty loose.

Let it sit, covered, for about 20 minutes.

Knead it on low for 5-7 minutes, until it starts to even out in texture, then start adding the rest of the flour until the dough starts to pull away from the bowl. It should still be pretty wet though. Knead for another 5-7 minutes on med-low, let it rest again for 20 minutes, then remove it to a floured bench, work it with your hands, shape it, and cut it into 4-5 even sized balls.

@mrb
mrb / CUSEC.md
Created January 15, 2016 16:03

I’d like to introduce you to a few of my closest friends

Michael R. Bernstein

CUSEC, Montreal, QC, 15 Jan 2016

Hello, and thank you for having me - I'm honored to deliver a keynote speech to this group of wonderful people for a few specific reasons.

Firstly, I used to be a teacher, and I miss being around students. Your energy and intelligence never cease to amaze me. Thanks for all of the great conversations I've had with organizers, attendees and fellow speakers so far this weekend - I'm looking forward to a lot more.

Secondly, I'm used to speaking on very specific topics to a room full of industry professionals or seasoned Academics, some of whom have heard it all before, know everything, and yet still continue to attend conferences! It boggles the mind. In this case, I get to address a group of students about a topic entirely of my own choosing! Though you probably still think you know everything if college-aged me is any indication.

@mrb
mrb / abstint.md
Last active October 4, 2020 18:45
"Programs that eat programs" Works cited/bibliography
@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
@mrb
mrb / constraint.lisp
Created January 8, 2014 03:53
"Logic Programming in Lisp" from Luger and Stubblefield
;;; This is one of the example programs from the textbook:
;;;
;;; Artificial Intelligence:
;;; Structures and strategies for complex problem solving
;;;
;;; by George F. Luger and William A. Stubblefield
;;;
;;; These programs are copyrighted by Benjamin/Cummings Publishers.
;;;
;;; We offer them for use, free of charge, for educational purposes only.
@mrb
mrb / registered.rb
Created July 19, 2011 03:30
Get all registered processes in Rubinius Actor class
class Actor
def self.registered
@@registered_lock.receive
registered_copy = @@registered
@@registered_lock << nil
registered_copy
end
end
module Main exposing (..)
import Html exposing (..)
import TestPanel exposing (..)
main =
Html.program
{ init = init
, view = view