Skip to content

Instantly share code, notes, and snippets.

View mcnemesis's full-sized avatar
💭
v:TEA|h:{know some u:code poetry?}|g!:_*\0/*_

Nemesis Fixx Da JWL mcnemesis

💭
v:TEA|h:{know some u:code poetry?}|g!:_*\0/*_
View GitHub Profile
@mcnemesis
mcnemesis / fun.sh
Created June 10, 2022 10:48
Have Fun in Bash Shell
# place the following into somewhere like /etc/bash.bashrc.local
# then import into your bash terminals via ~/.bashrc with:
# source /etc/bash.bashrc.local
function fun {
R=$(($RANDOM % 4))
if [[ $R -eq 1 ]]
then
sl
elif [[ $R -eq 2 ]]
@mcnemesis
mcnemesis / code_poem--the-table-craftsman--JWL.js
Created January 28, 2022 11:43
Tale of The Table Maker --- a code poem by JWL (nemesisfixx)
/*********************** Tale of The Table Maker **********************
***********************************************************************
* CODE POET: nemesisfixx
***********************************************************************
*
* Once, when presented with a box of obscure things,
* and a style of table desired,
* the craftsman had to do his magic on them, then
* hand back a brand-new table, ready to be used!
*
@mcnemesis
mcnemesis / TTTT.Default.EXAMPLE.TEAS.json
Last active June 7, 2024 09:28
TEA Text Transformer Terminal (TTTT) standard starter TEAS (TExt Alternator Scripts) --- from Nuchwezi Research
[
"The TATA Transform|t:\na:\nt:\na:",
"TAATA Pure Transform|t:\naa:\nt:\na:",
"The MAD MAAT Transform|m:\naa:\nt:\nd:[a-z]\\.[a-z]\ns:",
"The MATRiC Transform|m:\naa:\nt:\nr:00: \nr:81:9\ns:",
"The y-NuMATRiC Transform|m:\naa:\nt:\nr:00: \nr:81:9\nr:21:3\nr:25:Y\ns:",
"The sad-RNG Transformer|s:\naa:\nd:[ ]+[0-9 ]*$",
"The SAT Transform|s:\na:\nt:",
"The DIA RNG Transform|i:123456789 0\naa:\nd: [0-9]+\n",
"The DIA RNG Generator|i:123456789 0\naa:\nd: [0-9]+\n",
@mcnemesis
mcnemesis / index.html
Created November 23, 2020 19:03
SQUIZ Book Search
<div class="container">
<span class="hbar"></span>
<input type="text" placeholder="Search..." id="query" onkeypress="return runScript(event)" >
<div class="search"></div>
<div class="results">
<div class="rlist">
<h4 id="status">Welcome to the SQUIZ book search interface.</h4>
<ul id="list">
</ul>
<small>Designed by <a class="alink" href="https://nuchwezi.com" target="_blank">NuChwezi</a></small>
package com.nuchwezi.nulabs;
import androidx.appcompat.app.AppCompatActivity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import com.nuchwezi.xlitedatabase.DBAdapter; // <-- get the DAL
@mcnemesis
mcnemesis / DRAMON.default.config.json
Last active July 6, 2020 08:18
Sample DRAMON Configuration
{"DRINK":["Soda","Water","Something Hot","Tea","Some Wine","Milk","Yorghurt","Beer","Spirit","Porridge","A Herb.","some Fresh Juice","Bushera","Warm Water"],"CALL":["A Girlfriend","A Relative","Your Friend","someone you miss."],"EAT":["A Fruit","Leafy Vegetables","Fish","Nuts","Something Starchy","No meat","Chicken","some Seeds"],"GO TO":["Entebbe","A Forest","The Lake","Kampala","Home","School","a dance floor.","Bed.","work. "],"Summon":["God","Guardian Angel","Allself","Certain","your muse."],"LISTEN TO":["Some Nu Music","A Podcast","Old Hip Hop","Ragga!","Jazz","Some music.","Something you can play yourself, using things around you.","Traffic"],"WATCH":["A Music Video","A Science Video","Some News","A Cartoon","A Movie","A Comedy","Nature","Your Inner World","Something Erotic","The Skies."],"READ":["from SHRINES, by JWL.","a Holy Scripture.","One of your old documents.","Poetry","A Novel","the News","the Clouds","that book. "],"RITE":["Alone","With Someone else. (No more than 5).","With Someone else. (No m
@mcnemesis
mcnemesis / MainActivity.java
Last active November 2, 2020 17:09
Example Activity using the DNAP Histrion as an embed
package com.nuchwezi.nulabs;
import androidx.appcompat.app.AppCompatActivity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
public class MainActivity extends AppCompatActivity {
@mcnemesis
mcnemesis / lines_to_pythonic_list.sh
Created February 20, 2020 15:02
Transform a file of lines into a pythonic-list of comma delimited strings on the command line
cat old_db_tables.list.txt |sed -e 's/^/"/;s/$/"/'| tr '\n' ','|sed 's/^/[/;s/$/]/'
@mcnemesis
mcnemesis / generate_rand_bool_matrix.r
Last active April 23, 2019 09:27
A method to generate stochastic boolean matrices in R
library(openssl)
matrix(sapply(c(rand_num(100)), (function(n) (round(n*100)%%2))), nrow=5)