Skip to content

Instantly share code, notes, and snippets.

@tobiaslins
tobiaslins / worker.js
Last active May 15, 2024 01:20
Notion Custom Domain using Cloudflare Workers + Splitbee Analytics
const MY_DOMAIN = "help.splitbee.io"
const START_PAGE = "https://www.notion.so/splitbee/Help-Center-bbf26e2b70574901b9c98e5d11e449de"
addEventListener('fetch', event => {
event.respondWith(fetchAndApply(event.request))
})
const corsHeaders = {
"Access-Control-Allow-Origin": "*",
"Access-Control-Allow-Methods": "GET, HEAD, POST,PUT, OPTIONS",
@sreetamdas
sreetamdas / a-rendezvous-with-cassidoo.md
Last active July 20, 2024 07:15
Rendezvous with Cassidoo: solutions to interview questions of the week from the [rendezvous with cassidoo newsletter](https://buttondown.email/cassidoo)

Rendezvous with Cassidoo Solutions

Solutions to the interview question of the week from the rendezvous with cassidoo newsletter

Solutions in the following languages:

  • TypeScript
  • Elixir

Inspired and forked from jda0

@threepointone
threepointone / durable-objects-001-fundamentals.md
Last active June 16, 2024 18:49
Notes on Durable Objects. Part 1 - Migrations.

Note: Since writing this, I've been pointed to some exciting new research/tooling called Project Cambria https://www.inkandswitch.com/cambria.html I'll likely have to rewrite this article taking that into account. Leaving this up for posterity's sake.


(This series isn't meant to be a primer/tutorial, though we might do something regarding it in the future. For official documentation and starters, see https://developers.cloudflare.com/workers/learning/using-durable-objects.

Further - these are my personal views; I expect to be wrong about a lot of them. Indeed, I'm not paying much attention to presenting these well at the moment, simply writing down thoughts. As such, expect these writeups to change often, particularly as the platform takes shape. I'm also mostly a front end guy, so don't get mad if I get it very wrong. Give me feedback! Always happy to learn and make changes.)

Durable Objects are a fascinating new storage primitive from cloudflare for their workers platform. There's a lot of 'cool'