Skip to content

Instantly share code, notes, and snippets.

View reedho's full-sized avatar

Muhammad Ridho reedho

View GitHub Profile
@leonoel
leonoel / prepl.clj
Last active February 21, 2024 16:47
Example of clojure prepl usage with missionary
(ns prepl
(:require [clojure.core.server :as s]
[missionary.core :as m])
(:import (java.io PipedReader PipedWriter)
(java.util.concurrent Executors)))
(defn remote "
Returns a function taking a `java.io.PipedWriter` and returning a flow connecting to a remote prepl on given `host` and
`port`, sending the content of the pipe to the remote peer and emitting received evaluation results. The pipe is closed
on flow cancellation.
@dustingetz
dustingetz / electric-references.md
Last active July 27, 2023 13:39
Reference list — Electric Clojure

References — Electric Clojure

Electric Clojure implements a form of arrowized continuous time dataflow programming with extensions for network-transparent function composition.

@giannisp
giannisp / gist:ebaca117ac9e44231421f04e7796d5ca
Last active July 14, 2024 18:27
Upgrade PostgreSQL 9.6.5 to 10.0 using Homebrew (macOS)
After automatically updating Postgres to 10.0 via Homebrew, the pg_ctl start command didn't work.
The error was "The data directory was initialized by PostgreSQL version 9.6, which is not compatible with this version 10.0."
Database files have to be updated before starting the server, here are the steps that had to be followed:
# need to have both 9.6.x and latest 10.0 installed, and keep 10.0 as default
brew unlink postgresql
brew install postgresql@9.6
brew unlink postgresql@9.6
brew link postgresql
@cstrahan
cstrahan / packges.txt
Last active March 17, 2024 06:11
NixOS xorg binaries
# This is from NixOS.
# Each line is mapping from xorg.${pkgName} to the binaries that it contains.
bdftopcf: bdftopcf
fontutil: bdftruncate ucs2any
gccmakedep: gccmakedep
iceauth: iceauth
imake: cleanlinks mkhtmlindex imake mergelib xmkmf ccmakedep mkdirhier revpath makeg
libXpm: sxpm cxpm
lndir: lndir
luit: luit