Skip to content

Instantly share code, notes, and snippets.

View ethanniser's full-sized avatar

Ethan Niser ethanniser

View GitHub Profile
@vecerek
vecerek / enterprise-patterns-and-conventions-with-effect.md
Last active February 10, 2025 19:52
Enterprise Design Patterns for Effect

Motivation and Objectives

Enterprise software often has more non-functional requirements to fulfill because of the nature of the business of large companies. Think about it! Large companies often buy smaller ones. When that happens, some integration work of the two companies is imminent. Very often the case is that there is a mismatch between the acquiring and the acquired company's software stack. For example:

  • cloud provider and/or other software hosting solutions
  • tech stack
  • tech standards (secrets injected into the FS vs. read from the network at boot time)
  • etc.
@karlseguin
karlseguin / test_runner.zig
Last active October 5, 2025 09:34
Custom Zig Test Runner, better ouput, timing display, and support for special "tests:beforeAll" and "tests:afterAll" tests
// This is for the Zig 0.15.
// See https://gist.github.com/karlseguin/c6bea5b35e4e8d26af6f81c22cb5d76b/1f317ebc9cd09bc50fd5591d09c34255e15d1d85
// for a version that workson Zig 0.14.1.
// in your build.zig, you can specify a custom test runner:
// const tests = b.addTest(.{
// .root_module = $MODULE_BEING_TESTED,
// .test_runner = .{ .path = b.path("test_runner.zig"), .mode = .simple },
// });
@itsMapleLeaf
itsMapleLeaf / example.tsx
Last active August 14, 2025 13:59
React suspense with Convex
import { Suspense } from 'react'
import { api } from 'convex/_generated'
import { useQuerySuspense } from './useQuerySuspense'
function App() {
return (
<Suspense fallback="Loading...">
<TodoList />
</Suspense>
)