Skip to content

Instantly share code, notes, and snippets.

View stuartc's full-sized avatar

Stuart Corbishley stuartc

View GitHub Profile
@stuartc
stuartc / core.cljs
Created November 9, 2018 07:09
Clojurescript child_process with core.async
(ns testing.core
(:require-macros [cljs.core.async.macros :refer [go alt!]])
(:require [cljs.core.async :refer [<! take! chan close! put! go-loop >!] :as async])
(:require ["child_process" :refer [spawn]]))
(defn done-message? [message]
(and
(vector? message)
(= (message 0) :done)))
@stuartc
stuartc / md2pb
Created June 26, 2025 12:06
Convert markdown to rich text format for Slack/Discord/etc
#!/usr/bin/env bash
# md2pb - Convert markdown to rich text format for Slack/Discord/etc
#
# DESCRIPTION:
# Converts markdown to both plain text and HTML formats, then places both on the
# macOS clipboard. This allows pasting rich formatted text into apps like Slack,
# Discord, or any app that accepts HTML clipboard data.
#
# USAGE: