Skip to content

Instantly share code, notes, and snippets.

View jboynyc's full-sized avatar
🍜

John Boy jboynyc

🍜
View GitHub Profile
@jboynyc
jboynyc / shell.nix
Created March 11, 2021 09:59
Running r-cade on NixOS
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 December 10, 2020 09:40
How to run ZNC and weechat-headless in containers
$ cat ~/.local/share/systemd/user/znc.service
[Unit]
Description=ZNC user server
After=network.target

[Service]
@jboynyc
jboynyc / aaa_prez.csv
Created July 8, 2020 15:20
textnets workshop example
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@jboynyc
jboynyc / sci-fi influences.ipynb
Created March 5, 2020 20:46
sci-fi influences
Loading
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 February 17, 2020 22:29
Understanding the field of programming languages using a concept lattice
Loading
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 February 6, 2020 11:39
using `guix environment` as a shebang
#!/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 September 20, 2024 21:22
Guix-Jupyter for reproducible and reusable notebooks!
Loading
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 March 11, 2019 14:10
toggle active script
#!/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)
@jboynyc
jboynyc / hiri-nix.log
Last active December 19, 2018 14:10
Attempting to package Hiri using autopatchelf
$ env NIXPKGS_ALLOW_UNFREE=1 nix-shell hiri.nix
these derivations will be built:
/nix/store/s0acr6j9hv15p41l3pmvrybh0l6mc8iy-hiri-1.4.0.5.drv
building '/nix/store/s0acr6j9hv15p41l3pmvrybh0l6mc8iy-hiri-1.4.0.5.drv'...
unpacking sources
unpacking source archive /nix/store/dwrg6rn3gi8hy57ib0sjf49283mblpp1-Hiri.tar.gz
source root is hiri_1.4.0.5
setting SOURCE_DATE_EPOCH to timestamp 1534767164 of file hiri_1.4.0.5/hirimain
patching sources
configuring