Skip to content

Instantly share code, notes, and snippets.

View ology's full-sized avatar
💭
🤔

Gene Boggs ology

💭
🤔
View GitHub Profile
@ology
ology / .log
Created May 19, 2024 02:21
--look
bash-3.2$ perl Makefile.PL
Checking if your kit is complete...
Looks good
retrieving SWI-Prolog configuration:
dyld[86611]: Library not loaded: @rpath/libswipl.9.dylib
Referenced from: <908A3934-AA20-3318-9078-5BAF76EEAC6E> /Users/gene/perl5/perlbrew/perls/perl-5.38.0/lib/site_perl/5.38.0/darwin-2level/auto/share/dist/Alien-SWIProlog/bin/swipl
Reason: tried: '/Users/gene/perl5/perlbrew/perls/perl-5.38.0/lib/site_perl/5.38.0/darwin-2level/auto/share/dist/Alien-SWIProlog/lib/swipl/lib/arm64-darwin/libswipl.9.dylib' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/Users/gene/perl5/perlbrew/perls/perl-5.38.0/lib/site_perl/5.38.0/darwin-2level/auto/share/dist/Alien-SWIProlog/lib/swipl/lib/arm64-darwin/libswipl.9.dylib' (no such file), '/Users/gene/perl5/perlbrew/perls/perl-5.38.0/lib/site_perl/5.38.0/darwin-2level/auto/share/dist/Alien-SWIProlog/lib/swipl/lib/arm64-darwin/libswipl.9.dylib' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/Users/gene/perl5/perlbrew/perls/perl-5.38.0/lib/site_perl/5.38.
@ology
ology / .log
Last active May 19, 2024 02:16
cpanm Language::Prolog::Yaswi fail
cpanm (App::cpanminus) 1.7047 on perl 5.038000 built for darwin-2level
Work directory is /Users/gene/.cpanm/work/1716084959.86206
You have make /usr/bin/make
You have LWP 6.72
You have /usr/bin/tar: bsdtar 3.5.3 - libarchive 3.5.3 zlib/1.2.12 liblzma/5.4.3 bz2lib/1.0.8
You have /usr/bin/unzip
Searching Language::Prolog::Yaswi () on cpanmetadb ...
--> Working on Language::Prolog::Yaswi
Fetching http://www.cpan.org/authors/id/Z/ZM/ZMUGHAL/Language-Prolog-Yaswi-0.23.tar.gz
-> OK
@ology
ology / rt-midi.pl
Last active May 13, 2024 16:31
perl -wc rt-midi.pl
Name "FFI::Platypus::keep" used only once: possible typo at /Users/gene/perl5/perlbrew/perls/perl-5.38.0/lib/5.38.0/XSLoader.pm line 115.
Name "FFI::Platypus::TypeParser::ffi_type" used only once: possible typo at /Users/gene/perl5/perlbrew/perls/perl-5.38.0/lib/5.38.0/XSLoader.pm line 115.
- syntax OK
(in cleanup) Can't use an undefined value as a subroutine reference during global destruction.
# What?
@ology
ology / Maths.yaml
Created April 13, 2024 23:10
Modular synth patch specification
model: 'Maths'
patches:
- patch: 'First'
settings:
- group: 'LFO 1'
parameter: 'triangle out'
control: 'patch'
group_to: 'E352'
param_to: 'cv-x'
- group: 'LFO 1'
@ology
ology / snap-patch.css
Created January 1, 2024 17:44
d3 gravity simulation function not working
body {
display: flex;
width: 100vw;
height: 100vh;
margin: 0;
padding: 0;
}
svg {
flex: 1 1;
@ology
ology / transform-chain.txt
Last active November 4, 2023 05:16
Musical transformation output
$ cd ~/sandbox/Music-Chord-Progression-Transform/
$ vim transform-chain
# :!rm -f %.mid ; perl % --r=2 --m=8 --bpm=110 --note=A --o=4 --q=m --t=8 --v; timidity -c ~/timidity.cfg -Od %.mid
Initial: A4 m
Transforms: T7,O,T-7,T-4,O,T1,RP,I
1. T7 (0): [ 76, 79, 83 ]
[ 'E5', 'G5', 'B5' ]
Em
@ology
ology / mass-clone.pl
Last active November 4, 2023 03:24
GitHub repo clone in Perl!
#!/usr/bin/env perl
use strict;
use warnings;
use Capture::Tiny qw(capture);
use Getopt::Long qw(GetOptions);
use JSON::MaybeXS qw(decode_json);
use URI ();
my %opt = (
@ology
ology / madness.pl
Last active October 21, 2023 22:11
Replacing static pitches with VoiceGen
#!/usr/bin/env perl
use 5.26.0;
use List::Util qw(shuffle);
use MIDI ();
use Music::Factory ();
use Music::Scales qw(get_scale_MIDI);
use Music::VoiceGen ();
use Object::Pad;
@ology
ology / .txt
Created October 21, 2023 20:09
marimba-madness mystery ?
▸ perl marimba-madness.pl
2023-10-21 13:08:18 geneboggs@mac-geneboggs:~/sandbox/Perl/music
▸ timidity -Od out.midi
Can't estimate audio queue length
Playing out.midi
MIDI file: out.midi
Format: 1 Tracks: 6 Divisions: 96
Sequence: Track 001 1697918898
Track name: Track 002 1697918898
Marker: silence
@ology
ology / gpt4.pl
Last active October 16, 2023 00:09
Hey GPT4, why does God allow mosquitoes to live?
>> The question of why God allows mosquitoes to live is a theological and philosophical one, and it depends on one's beliefs and interpretations. There are several possible explanations that people have put forth:
1. Balance in nature: Some argue that mosquitoes play a role in the ecosystem, serving as a food source for other animals and contributing to the overall balance of nature. Their presence may be necessary for maintaining the ecological system.
2. Free will and natural processes: In many religious beliefs, God has given humans and other creatures free will and allows natural processes to occur. This means that mosquitoes, like other organisms, have the freedom to exist and fulfill their purpose, even if it causes inconvenience or harm to humans.
3. Testing and growth: Some believe that God allows mosquitoes to exist as a way to test humans and help them grow in character. Dealing with challenges, discomfort, or annoyance caused by mosquitoes can contribute to personal growth, patience, or empathy.