Skip to content

Instantly share code, notes, and snippets.

View collinalexbell's full-sized avatar

collinalexbell collinalexbell

  • 22:26 (UTC -05: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
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}")
;;;;;;;;;;;;;;;;;;;;;,,;,,;;,,,,;;,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,',,,,,,,,,,,,,,,,,,,,,,',,,,,,,,,,,,,,,,,,,,,,,,,,,,,',,,,,',,,,,,,'',,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
;;;;;;;;;;;;;;;;;;;;;;;;;;,,;;;,,;,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
def f(m, n, r=0, step=1):
if(step == 1):
return f(m,n,m%n,2)
if(step == 2):
if(r == 0):
return n
else:
return f(m,n,r,3)
if(step == 3):
# r is techically p
import converter._
import scala.language.implicitConversions
import scala.math.log10
trait Lengthable {
def length: Int
}
type Handler = (state: TableState, action: Action) => TableState
function composeHandlers(handlers: Handler[]): Handler {
return handlers.reduceRight(
(composed: Handler, next: Handler) =>
(state: TableState, action: Action): TableState => next(state, action));
}