Skip to content

Instantly share code, notes, and snippets.

View oubiwann's full-sized avatar
💭
🌌

Duncan McGreggor oubiwann

💭
🌌
View GitHub Profile
@oubiwann
oubiwann / open-genera-installation-on-linux.md
Last active March 26, 2024 20:48
Open Genera Installation on Linux

Open Genera Installation on Linux

About

These notes are based upon the steps provided here:

The notes in this Gist were created due to multiple attempts at installing Open Genera on different platforms that required more steps not inlcuded in the source notes above.

@oubiwann
oubiwann / README.md
Last active December 12, 2023 03:51
MACLISP and MACSYMA on PDP-10 / ITS (emulation)

MACLISP and MACSYMA on PDP-10 / ITS (emulation)

Goals

On a Debian machine, using simh emulating a PDP-10 running ITS:

  1. Write some Lisp files on ITS, compile them, and run them.
  2. Run MACSYMA and view rendered plots on an emulated Tektronix 4010

Background

@oubiwann
oubiwann / appify.sh
Last active April 29, 2023 10:32 — forked from advorak/appify.sh
appify — create the simplest possible Mac app from a shell script (adds an application icon)
#!/usr/bin/env bash
VERSION=4.0.1
SCRIPT=`basename "$0"`
APPNAME="My App"
APPICONS="/System/Library/CoreServices/CoreTypes.bundle/Contents/Resources/GenericApplicationIcon.icns"
OSX_VERSION=`sw_vers -productVersion`
PWD=`pwd`
function usage {
@oubiwann
oubiwann / bass-heart-ascii.txt
Last active December 23, 2022 01:53
Bass Clef & Heart ASCII Art
# I made/assembled this to use in a response to Danny Mo in one of the
# final homework assignments for Bass 101 Performance, with Berklee
# Online -- preserved here for posterity (and for bassists to use!)
********** ***********
*************** ..,,,,,.. ****************
************** .,;;;;;;;;;;;;;;,. **************
************* ,;;;' ** ** `;;;;, ***** ,, ***
@oubiwann
oubiwann / list_queues.txt
Created October 5, 2012 23:18
A Kombu send/receive example
Listing queues ...
hipri 5
lopri 0
midpri 0
...done.
@oubiwann
oubiwann / 01-deferred-list.py
Created October 13, 2012 21:01
Async Batching with Twisted: A Walkthrough
from twisted.internet import defer, reactor
from twisted.web.client import getPage
def listCallback(results):
print results
def finish(ign):
reactor.stop()
def test():
@oubiwann
oubiwann / pubsub_with_callbacks.clj
Last active May 11, 2021 02:09
Clojure core.async Pub/Sub Example (with callbacks)
(ns pubsub-with-callbacks
"Adapted from Timothy Baldridge's 2013 core.async examples:
* https://raw.githubusercontent.com/halgari/clojure-conj-2013-core.async-examples/master/src/clojure_conj_talk/core.clj"
(:require [clojure.core.async :as async]))
(def pub-channel (async/chan 1))
(def publisher (async/pub pub-channel :tag))
(def print-channel (async/chan 1))
(defn run-print-channel
@oubiwann
oubiwann / 01-install.txt
Created October 18, 2012 03:24
Getting Started with cl-async
$ git clone https://github.com/orthecreedence/cl-async.git
$ cd cl-async
$ tar cvzf libevent2.tgz ./libevent2
$ start-sbcl
* (require 'asdf-install)
("ASDF-INSTALL")
* (asdf-install:install "libevent2.tgz")
Install where?
1) System-wide install:
@oubiwann
oubiwann / 01-simple.hs
Last active April 4, 2021 05:15
Playing with Haskell prefix notation
Prelude> ((+) 1 2)
3
Prelude> ((+) 1 2 3 4 5 6)
<interactive>:3:2:
No instance for (Num (a0 -> a1 -> a2 -> a3 -> t0))
arising from a use of `+'
Possible fix:
add an instance declaration for (Num (a0 -> a1 -> a2 -> a3 -> t0))
In the expression: ((+) 1 2 3 4 5 6)
$ git clone https://github.com/oubiwann/linear-regression-tutorial.git
$ cd linear-regression-tutorial
$ make