Skip to content

Instantly share code, notes, and snippets.

View yitzchak's full-sized avatar

Tarn W. Burton yitzchak

  • Georgia, United States
  • 15:15 (UTC -04:00)
View GitHub Profile
@mmaul
mmaul / to-ipynb.lisp
Created October 30, 2015 02:07
Lisp to Jupyter notebook converter
(defun to-ipynb (f o &key after-form (kernel "lisp"))
"Generate Ipython notebook, from a Lisp source file.
+ All top level forms get their own code blocks in the notebook.
+ String sections at the top level generate markdown blocks.
+ Processing of the file is stopped if the symbol 'CUT== is found
- Arguments:
- f : path to lisp source file
@fukamachi
fukamachi / gist:6364983
Last active May 8, 2022 03:04
A Common Lisp function to extract a tarball (.tar.gz) file to a directory (*default-pathname-defaults*).
(ql:quickload '(chipz archive))
(defun extract-tarball (pathname)
"Extract a tarball (.tar.gz) file to a directory (*default-pathname-defaults*)."
(with-open-file (tarball-stream pathname
:direction :input
:element-type '(unsigned-byte 8))
(archive::extract-files-from-archive
(archive:open-archive 'archive:tar-archive
(chipz:make-decompressing-stream 'chipz:gzip tarball-stream)
@shamansir
shamansir / lisp.lang.xml
Created August 23, 2011 07:34
Special highlighting files for gEdit: common lisp, processingJS, pegJS, pegC...
<?xml version="1.0" encoding="UTF-8"?>
<!--
Author: Ma Jiehong <ma.jiehong@gmail.com>
Copyright (C) 2010 Ma Jiehong
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Library General Public
License as published by the Free Software Foundation; either
version 2 of the License, or (at your option) any later version.