Skip to content

Instantly share code, notes, and snippets.


Andrew Gwozdziewycz apg

View GitHub Profile
apg / gist:bc072b9fa00b362c52bbf6e2b69ad502
Created Jan 2, 2021
Vegan and Gluten Free Pierogis.
View gist:bc072b9fa00b362c52bbf6e2b69ad502
The dough was inspired by a random selection of searching for vegan and gluten free pierogis and getting a feel for what people do, and taking a risk. It largely worked out. They are edible, but I am not much of a cook, so have no idea how to iterate. The dough did not seem like it was going to work, but ended up OK. Boiled for about 3 minutes. Then pan fried with caramelized onions.
3 cups Bob’s Red Mill All Purpose, 1:1, Gluten Free Flour
1 teaspoon salt
3/4 cup unsweetened soy milk, couple tablespoons for dough, maybe
1 tablespoon olive oil
1/4 cup water as needed for the dough
apg / 00 -
Last active Dec 3, 2020
to: subject: Question about the Pizza65
View 00 -


I recently came across the Pizza65 and it looks like a great keyboard! I am hopeful that it will solve my problem but, it's unclear from the specifications and need your help.

I eat a lot of pizza at my desk, and am looking for a keyboard that will also serve as a pizza cutter for when the slices are just too big. Can the Pizza65 also be used as a pizza cutter? If not, can I suggest that your next model include pizza cutting functionality?



View map.scm
;; map, the naive way
(define (naive-map f xs)
((null? xs) '())
(else (cons (f (car xs)) (map f (cdr xs))))))
(define (tr-map f xs)
(define (recurse f xs accum)
((null? xs) (reverse accum))
View haiku-mode.el
(defface haiku-success-face
'((t :inherit success))
:group 'haiku-mode)
(defface haiku-error-face
'((t :inherit warning))
:group 'haiku-mode)
(defvar haiku-highlight-keywords
apg / wc.d
Created Jun 1, 2018
Simple wc(1) in D
View wc.d
// $ dmd wc.d
// $ cat /usr/share/dict/words | ./wc
// 235886 235886 2493109
import std.stdio;
void main()
int lines = 0;
int words = 0;
apg /
Created Apr 18, 2018
Elon Productivity tips

Source of quoted email.

Btw, here are a few productivity recommendations:

  • Excessive meetings are the blight of big companies and almost always get worse over time. Please get of all large meetings, unless you’re certain they are providing value to the whole audience, in which case keep them very short.

  • Also get rid of frequent meetings, unless you are dealing with an extremely urgent matter. Meeting frequency should drop rapidly once the urgent matter is resolved.

  • Walk out of a meeting or drop off a call as soon as it is obvious you aren’t adding value. It is not rude to leave, it is rude to make someone stay and waste their time.

apg /
Created Dec 26, 2017
Nick P’s post on methods

Techniques for Ensuring Software Correctness: What Worked in Past and Present (Quick revision of 2016 comment on

I find it helps to look to prior successes and tradeoffs to try to understand how to best do engineering. People and teams I've identified as independent inventors of software engineering were Bob Barton of Burroughs B5000, Dijkstra w/ THE OS, and Margaret Hamilton in Apollo & 001 Tool Suite. Each had pieces of the problem with some culminating with later work into the TCSEC and Orange Book’s B3/A1 classes of high-assurance security. At IBM, Fagan invented formal, software inspections for lower defects. Harlan Mills invented a method, Cleanroom Software Engineering, that consistently resulted in low defects even on first use. Became my baseline.

In parallel, the safety-critical embedded community continued using all kinds of their own methods or variations on common ones. They often published "lessons learned" reports with useful information. CompSci researchers continued working on

apg /
Created Dec 23, 2017
Prototype: using Go's ast tools to build a comment parsing contract engine.


$ go run law.go
package main

import "fmt"

// @require: not-empty: len(x) > 0
func Foo(x string) {
apg / enables.scrbl
Last active Nov 16, 2017
Using the functions in graphviz.rkt, we now can do the things in enables.scrbl
View enables.scrbl
@(require "graphviz.rkt")
@(require scriblib/figure)
@graphviz-figure["foo-bar" "Overview of Foo Bar"]{
digraph G {
foo -> bar
bar -> baz
baz -> quux
quux -> foo
View json.rkt
#lang racket/base
;; Roughly based on the PLaneT package by Dave Herman,
;; Originally released under MIT license.
;; edited: Matthias, organization in preparation for pretty-print
;; -----------------------------------------------------------------------------