Skip to content

Instantly share code, notes, and snippets.

@unthingable
unthingable / noscroll
Last active April 19, 2026 08:47
Claude Code wrapper: suppresses excessive screen clearing, clones config dir to prevent setting persistence
#!/usr/bin/env python3
r"""PTY proxy that strips the 'erase scrollback' escape sequence (\e[3J)
from a child process's output while passing everything else through."""
import os
import pty
import shutil
import signal
import sys
import fcntl
@paf31
paf31 / node-haskell.md
Last active February 24, 2026 02:10
Reimplementing a NodeJS Service in Haskell

Introduction

At DICOM Grid, we recently made the decision to use Haskell for some of our newer projects, mostly small, independent web services. This isn't the first time I've had the opportunity to use Haskell at work - I had previously used Haskell to write tools to automate some processes like generation of documentation for TypeScript code - but this is the first time we will be deploying Haskell code into production.

Over the past few months, I have been working on two Haskell services:

  • A reimplementation of an existing socket.io service, previously written for NodeJS using TypeScript.
  • A new service, which would interact with third-party components using standard data formats from the medical industry.

I will write here mostly about the first project, since it is a self-contained project which provides a good example of the power of Haskell. Moreover, the proces