In this post we'll connect to the ChatGPT APIs using NodeJS, and spend some time learning more about how it learns, how to instruct it, and what token pricing looks like.
Advent of Code 2022 is here!
The awesome Advent of Code is back for 2022! You can follow along on my github repo or follow on Twitter or Mastodon. Check out my finished Advent of Code solutions here. You can plug in your own puzzle inputs and find your own answers too! This year, I'll be doing my puzzles in React... Continue Reading →
April Fools with these terrible NPM packages
NPM, hosted at npmjs.com, is a repository for storing open-source libraries, frameworks, and packages that anyone can publish to, and anyone can download from. This has great packages in it like ReactJS, Okta, DataDog, Material, Luxon, and many, many more. However, there's also garbage in here. There are some really terrible NPM packages out there... Continue Reading →
Challenge #4 – Taking what’s long and making it short
I'm going to be honest upfront, Challenge 4 of our coding challenge feels, well, less than challenge 3. I thoroughly enjoyed the 3rd challenge, so this was a little bit of a letdown. We went from making a search tool against Star Wars movie scripts to a URL shortener. Right? Not as much fun, but... Continue Reading →
Keeping React component’s state top of mind
I'm impatient I've done this too many times: // api call to get the contact Luke Skywalker // process a little data return ( <Card> <Card.Title>{person.name}</Card.Title> </Card> ) just to get a lovely Can't read property 'name' of undefined error. Yuck. I fire up the dev console... Network tab, is the API returning data? ✅.... Continue Reading →
Style up your console.logs
This is nothing new, but something I only recently started doing. Ya know those console.logs you're using in your JavaScript code? Did you know you can style them in the dev toolbar? YA! In both your browser console and nodejs! Styling the browser console It's really that simple! Throw a %c in your console.log message,... Continue Reading →
Animating in a circular fashion with CSS and ReactJS
If you haven't seen, at the start of COVID I created this neat little virtual happy hour app. I got to the point where I wanted to start spicing up the interface some (still a long way to go). I wanted to move away from a list view of conversations to something that illustrates people... Continue Reading →
Advent of Code is over, here’s what I thought
And just like that, Advent of Code is over! If you're just catching this thread now, back at Day 1 I explained a little why I took on this challenge: I love these little challenges because it keeps me sharp, makes me think about things differently than I may be doing daily at work. Also,... Continue Reading →
Advent of Code, Day 25
The last and final day of Advent of Code is here! What a great ride! I'll share my thoughts of this experience in a subsequent post soon. Day 25: Combo Breaker Part I Working with a security key card, and some sniffing on what's going on between the key card and to door, I have... Continue Reading →
Advent of Code, Day 24 – Black Lives Matter
Day 24 of Advent of Code is here! Black Lives Matter Today's puzzle uses two color options, black and white. And as we step through the rules we are changing tiles from black to white, and visa-versa. At some point I need to find how many black neighbors a tile has and change it based... Continue Reading →