Skip to content

Instantly share code, notes, and snippets.

Avatar
💭
attempting to learn how to better learn

Fogus fogus

💭
attempting to learn how to better learn
View GitHub Profile
@fogus
fogus / lbForth.c
Created Aug 13, 2020 — forked from lbruder/lbForth.c
A minimal Forth compiler in ANSI C
View lbForth.c
/*******************************************************************************
*
* A minimal Forth compiler in C
* By Leif Bruder <leifbruder@gmail.com> http://defineanswer42.wordpress.com
* Release 2014-04-04
*
* Based on Richard W.M. Jones' excellent Jonesforth sources/tutorial
*
* PUBLIC DOMAIN
*
View jmc.lisp
; The Lisp defined in McCarthy's 1960 paper, translated into CL.
; Assumes only quote, atom, eq, cons, car, cdr, cond.
; Bug reports to lispcode@paulgraham.com.
(defun null. (x)
(eq x '()))
(defun and. (x y)
(cond (x (cond (y 't) ('t '())))
('t '())))
View all.edn
[#{"Force of Will" "Urza, Lord High Artificer" "Lotus Field"
"Fragmentize" "Fact or Fiction" "Disenchant" "Skullclamp"
"Fierce Guardianship" "Baleful Stryx" "Scrubland" "Demonic Tutor"
"Bloodstained Mire" "Merchant Scroll" "Swords to Plowshares"
"Brainstorm" "Cephalid Coliseum" "Chromatic Lantern" "Mox Opal"
"Vandalblast" "Spellseeker" "Underground Sea" "Flooded Strand"
"Snapcaster Mage" "Necropotence" "Toxic Deluge" "Wishclaw Talisman"
"Canyon Slough" "Polluted Delta" "Chrome Mox" "Crucible of Worlds"
"Teferi, Hero of Dominaria" "Humility" "Mana Crypt" "Mana Drain"
"Snow-Covered Swamp" "Hallowed Fountain" "Vedlaken Shackles"
@fogus
fogus / README.md
Created Jun 24, 2020 — forked from rvagg/README.md
Kindleberry "Paperwhite" Pi
View README.md

Work in progress, I'll write this up properly when I'm done.

Almost all credit goes to @maxogden for putting me on to this and pointing me in the right direction for each of these items.

Prerequisites:

  • Raspberry Pi
  • Kindle Paperwhite freed from its locked down state (jailbroken) http://www.mobileread.com/forums/showthread.php?t=198446
    • You have to downgrade your Kindle to 5.3.1 to install the current jailbreak; that's just a matter of getting the old version image, putting it on your Kindle via USB and telling it to install "upgrade". Then you put in the Jailbreak files, load the ebook and break.
    • Your kindle will be quick to detect an upgrade is available so it'll want to upgrade soon afterwards but the jailbreak will last but you have to reinstall the developer certificates so it's a bit of a pain but doable. Find all the instructions on the mobileread.com forums and wiki.
View fs
https://www.prusaprinters.org/prints/25857-prusa-face-shield
https://www.prusaprinters.org/prints/26483#_ga=2.163384442.770181922.1586449181-47599681.1586449181
View scratch.clj
;; use spec to define stateful protocols inspired by UBF(b)
;; https://ubf.github.io/ubf/ubf-user-guide.en.html
(require '[clojure.spec.alpha :as s]
'[clojure.core.async :as async])
(defn ubfish
"Takes a protocol definition and four channels. Checks for protocol
violations while copying from-server to-client and from-client
to-server."
@fogus
fogus / scheme-coin.lisp
Created Apr 2, 2020 — forked from BusFactor1Inc/scheme-coin.lisp
A Common Lisp Blockchain - Scheme Coin
View scheme-coin.lisp
;;
;; scheme coin - a common lisp blockchain
;;
;; Burton Samograd
;; 2017
(load "~/quicklisp/setup.lisp")
(defconstant *coin-name* "Scheme Coin")
View abstracts.txt
-2200 Go
-1400 Nine Men's Morris
-100 Ludus Latrunculorum
400 Hneftafl
700 Go-Moku
762 Xiangqi
1150 Checkers
1300 Chu Shogi
1400 Turkish Checkers
View bgg.clj
[{:db/id "ff"
:bgg/id "17"
:publisher/name "Fantasy Flight Games"}
{:db/id "nate-french"
:bgg/id "11655"
:designer/name "Nate French"}
{:db/id "matt-newman"
:bgg/id "40573"
You can’t perform that action at this time.