March 20, 2023

Things From March 20, 2023

March 20, 2023

Photos

https://bram-adams.ghost.io/content/images/2023/03/charles-herman.png
charles herman.png
https://bram-adams.ghost.io/content/images/2023/03/wear-hats-like-this-now.png
wear hats like this now.png

Music

Videos

It's Cal Newport day!!

Code

Check out the audio player on the homepage :)

{{#if @custom.audiosrc}}
        
        <audio controls class="cover-audio">
        <source src="{{@custom.audiosrc}}" type="audio/mpeg">
    </audio>
    {{else}}
        <audio controls class="cover-audio">
        <source src="https://www.bramadams.dev/content/media/2023/03/Kingdom-Hearts-II---Dearly-Beloved--With-Ocean-waves-in-the-Background-.mp3" type="audio/mpeg">
    </audio>
{{/if}}

Error handling SSE's:

source.addEventListener("error", (e: any) => {
	try {
	  console.log("[ChatGPT MD] SSE Error: ", JSON.parse(e.data));
	  source.close();
	  console.log("[ChatGPT MD] SSE Closed");
	  reject(JSON.parse(e.data));
	} catch (err) {
	  console.log("[ChatGPT MD] Unknown Error: ", e);
	  source.close();
	  console.log("[ChatGPT MD] SSE Closed");
	  reject(e);
	}
  });

bramadams.dev is a reader-supported published Zettelkasten. Both free and paid subscriptions are available. If you want to support my work, the best way is by taking out a paid subscription.