I hereby claim:
- I am jcottrell on github.
- I am jcottrell (https://keybase.io/jcottrell) on keybase.
- I have a public key whose fingerprint is 1327 7E16 21BB 71AE C8FF 70AA 91BB A621 2504 0A85
To claim this, I am signing this object:
| /* | |
| * I needed something to count the number of open browser tabs needing code review | |
| * | |
| * Use the Browser Console in Firefox to run this. | |
| * firefox ctrl+shift+j to open Browser (not web!) console | |
| * If you don't see the Browser Control command line, that's because they hide | |
| * it on you. Go to about:config and change `devtools.chrome.enabled` to | |
| * `true` (with the toggle button). | |
| * https://firefox-source-docs.mozilla.org/devtools-user/browser_console/index.html | |
| * |
| #lang racket | |
| (require rackunit) | |
| #| | |
| Comments are wrapped in #|with comments in between|# and commented out code starts with #; | |
| The parts wrapped in square brackets [are my thoughts/comments on the results and general interaction. | |
| ChatGPT prompt: | |
| Me: I want you to create a racket program that will search a list of lists for an atom and either |
| version: '3.4' | |
| services: | |
| cc1: | |
| image: itzg/minecraft-bedrock-server | |
| environment: | |
| ALLOW_CHEATS: "true" | |
| DEFAULT_PLAYER_PERMISSION_LEVEL: operator | |
| DIFFICULTY: easy | |
| EULA: "TRUE" |
| [ | |
| { | |
| "id": 123, | |
| "category": "animal welfare", | |
| "title": "Cat Adoption Day", | |
| "description": "Find your new feline friend at this event.", | |
| "location": "Meow Town", | |
| "date": "January 28, 2022", | |
| "time": "12:00", | |
| "organizer": "Kat Laydee" |
| module Encode (encode) where | |
| import Data.Char (isAlpha, isDigit, isUpper, toLower) | |
| switchChar :: Int -> Char -> String | |
| -- needs to wrap around if shift is greater than alphabet ?? | |
| switchChar shift x = | |
| show | |
| $ head | |
| $ map snd |
| // Lambda Calculus - Fundamentals of Lambda Calculus & Functional Programming | |
| // Part 1 | |
| // https://www.youtube.com/watch?v=3VQ382QG-y4 | |
| const inspect = Symbol.for('nodejs.util.inspect.custom') | |
| // Idiot or Identity or Haskell's id | |
| const I = a => a | |
| // Mockingbird (Haskell cannot implement) |
| javascript:(function(w,d){if(w.location.href==='https://docs.google.com/forms/d/e/1FAIpQLSf-SbtOs4DL6zj_Y4A7gKPsQDk045y8N7ZI8Hi9yD1ZkmRtfw/viewform'){d.querySelectorAll('label')[0].click();d.querySelectorAll('form')[0].submit()}setTimeout(()=>{w.location='https://docs.google.com/forms/d/e/1FAIpQLSf-SbtOs4DL6zj_Y4A7gKPsQDk045y8N7ZI8Hi9yD1ZkmRtfw/viewform'},500)}(window, document)) |
| /* ok, ok, I needed a way to get unique values from objects | |
| getUniqueIdFun should be a function that returns the value of what | |
| you want to be unique | |
| getUniquePartFun should be a function that returns the part of the | |
| object you are interested in; it can be undefined, null, empty if | |
| you want the whole object back | |
| objAr should be an array of objects to cull from | |
| */ | |
| const getUniqueObjectsFromArray = (getUniqueIdFun, getUniquePartFun, objAr) => { | |
| const getU = (typeof getUniquePartFun === 'function') ? |
I hereby claim:
To claim this, I am signing this object: