Skip to content

Instantly share code, notes, and snippets.

View macklinu's full-sized avatar

Mackie Underdown macklinu

View GitHub Profile
ʕノ•ᴥ•ʔノ ︵ ┻━┻
┬─┬ ノʕ•ᴥ•ノʔ
const isNbaBasketball = matches({
type: 'basketball',
ballColor: 'orange',
ballMaker: /spalding/i,
'league.type': 'NBA'
})
↓ ↓ ↓ ↓ ↓ ↓
const isNbaBasketball = arg => {
@macklinu
macklinu / runner.ts
Created July 30, 2025 13:40
Trying to get ClusterCron logging every minute
import * as ClusterCron from '@effect/cluster/ClusterCron'
import * as ClusterWorkflowEngine from '@effect/cluster/ClusterWorkflowEngine'
import * as RunnerAddress from '@effect/cluster/RunnerAddress'
import * as NodeClusterRunnerSocket from '@effect/platform-node/NodeClusterRunnerSocket'
import * as NodeRuntime from '@effect/platform-node/NodeRuntime'
import { TracerLayer } from '@my-app/open-telemetry/Tracer'
import { SqlClientLayer } from '@my-app/sql/SqlClient'
import * as Config from 'effect/Config'
import * as Cron from 'effect/Cron'
import * as Effect from 'effect/Effect'