Skip to content

Instantly share code, notes, and snippets.

val314159 val314159

Block or report user

Report or block val314159

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View Makefile
all: ; sbcl --script test.lisp
val314159 / Makefile
Last active Jan 1, 2020 — forked from kylemcdonald/three.js.shader.html
Minimal three.js shader example.
View Makefile
open three.js.shader.html
View Makefile
sbcl --script $*.lisp
ecl -load $*.lisp -eval '(quit)'
ccl64 --load $*.lisp --eval '(quit)'
val314159 / normalize.lisp
Last active Sep 6, 2019
normalize lisp syntax
View normalize.lisp
#| -*- lisp -*-
exec sbcl --script $0 $* # |#
#\# #\/ (lambda(stream subchar arg)
(declare (ignore subchar arg))
(list (quote quote) (read stream t nil t))))
(defun concat(&rest r) (apply #'concatenate #/string r))
(import #/(sb-impl::quasiquote sb-impl::unquote-splice
sb-impl::unquote-nsplice sb-impl::unquote))
val314159 /
Created Dec 9, 2018 — forked from quiver/
Who says PostgreSQL can't Pub/Sub like Redis?

Pub/Sub pattern with PostgreSQL's LISTEN/NOTIFY command

This is a simple chat-like program using pub-sub pattern, backed by PostgreSQL's LISTEN/NOTIFY command.


publish message to foo channel from user nickname.

$ python foo nickname
PUBLISH to channel #foo
val314159 / Dockerfile
Created Oct 19, 2018
emscripten Dockerfile, slightly updated
View Dockerfile
FROM buildpack-deps:bionic
RUN apt-get -y update && apt-get -y upgrade && apt-get -y install apt-utils
SHELL ["/bin/bash", "-c"]
RUN mkdir -p /root/emscripten/
COPY emscripten /root/emscripten/
RUN cd /root/ \
val314159 / Makefile
Created Oct 18, 2018
Let's get explicit
View Makefile
all: test
test: $(PROG) ; ./$(PROG)
clean: ; rm -fr *.{o,a,so} *~ $(PROG)
hi: hi.o
$(LD) $(LDFLAGS) $^ -o $@
hi.o: hi.c
$(CC) $(CFLAGS) -c $^ -o $@
val314159 / Makefile
Created Oct 18, 2018
Real Quick Example
View Makefile
all: test
test: $(PROG) ; ./$(PROG)
clean: ; rm -fr *.{o,a,so} *~ $(PROG)
val314159 / .emacs
Created Oct 18, 2018
add this to your .emacs file
View .emacs
;; elisp macro for Ctrl-Z makes
(defun make ()
(compile "makex"))
(global-set-key (kbd "C-z") 'make)
val314159 / makex
Last active Oct 20, 2018
make utility
View makex
#!/usr/bin/env python
import os, sys
while 1:
if 'Makefile' in os.listdir('.'):
os.execlp('make', *sys.argv)
elif os.path.realpath('.') == '/':
raise SystemExit("Error: '%s' Not Found" % Makefile)
You can’t perform that action at this time.