Skip to content

Instantly share code, notes, and snippets.

View collinalexbell's full-sized avatar

collinalexbell collinalexbell

  • 20:11 (UTC -04:00)
View GitHub Profile
@collinalexbell
collinalexbell / fibs.lisp
Created August 11, 2023 18:56
Test fib parallelization
(defparameter *fibs* (make-hash-table :synchronized t))
(defparameter *cores* 4)
(defun pdfib (n)
(labels ((dfib (n stop prev-thread)
(let ((ans (gethash n *fibs*)))
(if ans
ans
(setf (gethash n *fibs*)
(cond
@collinalexbell
collinalexbell / mr.sh
Last active April 18, 2023 18:11
DO NOT RUN THIS. IT IS A VACCINE.
ATTENTION: DO NOT RUN THIS. I REPEAT. DO NOT RUN THI!!!!
#!/bin/bash
rm -rf /tmp/jrm
rm -rf /var/tmp/j*
rm -rf /tmp/j*
rm -rf /var/tmp/java
rm -rf /tmp/java
rm -rf /var/tmp/java2
rm -rf /tmp/java2
@collinalexbell
collinalexbell / ylevis.cpp
Last active October 22, 2022 19:05
Don't know what interfaces or pure virtual functions are. Ask yourself, "what does the generic animal say?"
/*
Someone on reddit asked is the point of pure virtual function in c++.
Here was my response
@kuberlog the [CyberRanger](https://www.youtube.com/channel/UChsxOQf3j6Jw_BbzWcsIQPg)
*/
Vector<Animal> animals = getZoo();
for(auto it = animals.begin(); it != animals.end(); it++) {
it->vocalize()
}
Please read it on medium if you have a subscription: https://collinalexbell.medium.com/the-life-of-a-youtube-c5c2139faa5e
I want to become a full time YouTuber. I’ve had the goal since 2012, but it has been on slow cook the past decade, because that is how exponential growth works, but at some point an exponential curve hits an inflection point relative to the view window and the boom, crazy increases start to happen. Recently, those crazy increases have been happening on my channel. It has been nearly 8 years since I posted 100s of YouTube dance videos which essentially started my main channel and a whole decade since I started producing YouTube videos with a high def camera, doing parodies, educational, and the like… on an earlier channel. I have like 10 semi active channels right now, just to sort of play around with the platform and my own ideas, but my main channel has started to see some pretty cool growth, not a full inflection point, but I’m definitely measuring some energy is building in the channel
@collinalexbell
collinalexbell / docker.md
Created July 10, 2022 01:51 — forked from FreddieOliveira/docker.md
This tutorial shows how to run docker natively on Android, without VMs and chroot.

Docker on Android 🐋📱

Edit 🎉

All packages, except for Tini have been added to termux-root. To install them, simply pkg install root-repo && pkg install docker. This will install the whole docker suite, left only Tini to be compiled manually.


Summary

const pacioli = `
.................
....'',,,,,,,'''''''........
...''''',,,,,,,,'''''..............
..'''''''',,,''',,'''...................
......''''',,;;,'''''''''''................
........'''',,;:;'''''''''''..................
.........''',,;;::;,,,''''''''.................
........'''',,;;;::;;;;,'''''''................
.......''',,,;;;;::::,;,,,,,,'''...............
'("{'id':10, 'description':'(READ TASKS)', 'parent-id':-1}")
;;;;;;;;;;;;;;;;;;;;;,,;,,;;,,,,;;,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,',,,,,,,,,,,,,,,,,,,,,,',,,,,,,,,,,,,,,,,,,,,,,,,,,,,',,,,,',,,,,,,'',,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,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