Skip to content

Instantly share code, notes, and snippets.

View gcentauri's full-sized avatar
💽
retroing to the new thing

Grant Shangreaux gcentauri

💽
retroing to the new thing
View GitHub Profile

Universal Ctags

https://ctags.io/

Despite the wealth of available options, defaults are set so that ctags is most commonly executed without any options (e.g. "ctags *", or "ctags -R"), which will create a tag file in the current directory for all recognized source files.

@gcentauri
gcentauri / opt-note.md
Created August 14, 2021 22:28
notes from making shared space

taking some "vacation" time to mess around and do some research on servery stuff primarily i'm interested in making shared space where we can all use shared rubies, gems, scripts, etc without requiring sudo privileges. i'm guessing this is what groups and proper permissions could be used for.

creating shared writable user space

i followed this tutorial to create a directory for scripts in /opt

@gcentauri
gcentauri / procs.md
Created April 28, 2021 19:54
Blocks, Procks, and Lambdas

Blocks, Procs, and Lambdas

in some ways a closure is just like an object that contains state and responds to the single method #call. for example:

    # Makes counter objects that increment by 1 every time it is called
    class Counter
      def initialize
        @count = 0
(defpackage #:pokémon
(:use #:cl))
(in-package :pokémon)
;; POKEMON
(defclass pokémon ()
((species :accessor species
:initarg :species)
(types :accessor types
@gcentauri
gcentauri / emacs.svg
Created August 21, 2020 21:04
emacs takes a screenshot of itself
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@gcentauri
gcentauri / pokemon.lisp
Created May 22, 2020 21:16
experiment with multimethods and macros
(defpackage #:pokemon
(:use #:cl))
(in-package :pokemon)
;; POKEMON
(defclass pokemon ()
((health :accessor health
:initarg :health
:initform 10)))
file:///home/shoshin/Pictures/beach.png
@gcentauri
gcentauri / guestbook.l
Created August 31, 2019 19:54
reworked picolisp guestbook example
(load "@lib/http.l" "@lib/xhtml.l" "@lib/form.l")
# in a real application you would use 'allowed to restrict access to
# certain directories and functions.
# you would also put httpGate, nginx or somesuch between the Internet
# and the port where your program is listening.
(class +Msg +Entity)
(rel hdr (+String))
(rel bdy (+String))
@gcentauri
gcentauri / guess.l
Last active July 15, 2019 04:52
picolisp number guesser
# default only sets the var if it is NIL, this is here because
# the whole file gets evaluated on page load the way i have it rn
(default *Bounds '(1 . 100))
(de small ()
(car *Bounds) )
(de big ()
(cdr *Bounds) )
@gcentauri
gcentauri / porc-battle.l
Created June 2, 2019 15:52
draft porc battle!
(setq *PlayerHealth NIL)
(setq *PlayerAgility NIL)
(setq *PlayerStrength NIL)
(setq *Monsters NIL)
(setq *MonsterBuilders NIL)
(setq *MonsterNum 6)
(de main ()
(init-monsters)