Skip to content

Instantly share code, notes, and snippets.

Avatar
🍜

John Boy jboynyc

🍜
View GitHub Profile
@jboynyc
jboynyc / weborf.nix
Created Mar 17, 2021
nix derivation for weborf
View weborf.nix
with import <nixpkgs> {};
let
name = "weborf";
version = "0.17";
in
stdenv.mkDerivation {
name = "${name}";
configureFlags = [ "prefix=${placeholder "out"}" ];
@jboynyc
jboynyc / shell.nix
Created Mar 11, 2021
Running r-cade on NixOS
View shell.nix
with import <nixpkgs> {};
stdenv.mkDerivation {
name = "r-cade";
buildInputs = [ racket openal csfml libsndfile ];
LD_LIBRARY_PATH="${csfml}/lib:${libsndfile}/lib:${openal}/lib";
shellHook = ''
raco pkg install r-cade
'';
}
@jboynyc
jboynyc / 01-znc-containerized.md
Last active Dec 10, 2020
How to run ZNC and weechat-headless in containers
View 01-znc-containerized.md
$ cat ~/.local/share/systemd/user/znc.service
[Unit]
Description=ZNC user server
After=network.target

[Service]
@jboynyc
jboynyc / aaa_prez.csv
Created Jul 8, 2020
textnets workshop example
View aaa_prez.csv
We can't make this file beautiful and searchable because it's too large.
president,term,bio
William John McGee,1902–1904,"William John McGee, LL.D. (April 17, 1853 – September 4, 1912) was an American inventor, geologist, anthropologist, and ethnologist, born in Farley, Iowa.
== Biography ==
While largely self-taught, McGee attended a rural one-room schoolhouse north of Farley during the four winter months from about 1858 to 1867. He devoted his early years to reading law and to surveying. He invented and patented several improvements on agricultural implements.He subsequently turned his attention to geology. In 1877–1881, he executed a topographic and geological survey of 17,000 square miles (44,030 km²) in northeastern Iowa. He then undertook an examination of the loess of the Mississippi Valley, researched the great Quaternary lakes of Nevada and California and studied a recent fault movement in the middle Atlantic slope.He was appointed geologist for the United States Geological Survey (USGS) in 1881. In 1884 McGee authored the article Map of the United States exhibiting th
View textnets_demo.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View sci-fi influences.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@jboynyc
jboynyc / programming_language_lattice.ipynb
Created Feb 17, 2020
Understanding the field of programming languages using a concept lattice
View programming_language_lattice.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@jboynyc
jboynyc / test.py
Created Feb 6, 2020
using `guix environment` as a shebang
View test.py
#!/usr/bin/env -S guix environment --ad-hoc python python-pandas python-numpy -- python3
import pandas as pd
def main():
df = pd.util.testing.makeDataFrame()
print(df.T)
main()
@jboynyc
jboynyc / guix-jupyter_test.ipynb
Last active Jan 28, 2020
Guix-Jupyter for reproducible and reusable notebooks!
View guix-jupyter_test.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@jboynyc
jboynyc / ta.scm
Created Mar 11, 2019
toggle active script
View ta.scm
#!/usr/bin/env guile
!#
;; Toggle symlink to current directory on and off in a directory of "active"
;; directories. Unless otherwise specified by a $ACTIVE_DIR environment
;; variable, the active directory is assumed to be located in ~/Active.
(use-modules (ice-9 ftw))
(define (symlink? path)