Skip to content

Instantly share code, notes, and snippets.

View avidrucker's full-sized avatar

Avi Drucker avidrucker

  • SUNY New Paltz
  • New York
View GitHub Profile
@avidrucker
avidrucker / hasse_diagram.md
Last active October 27, 2023 23:17
Hasse Diagram for Discrete Structures
graph TD;
    A("3,3");
    B("2,3");
    C("3,2");
    D("1,3");
    E("2,2");
    F("3,1");
    G("1,2");
 H("2,1");
@avidrucker
avidrucker / autofocus_list_state_chart.md
Created October 13, 2023 21:02
AutoFocus list state flow diagram
graph TD
    Start{ Start with a list }
    Items_on_list?[ Are there items\nin the list? ]
    Add_new_item( Add new item\nto the list )
    Any_ready_items?[ Are there any\n'ready' items? ]
    Automark_ready( Mark top-most 'new'\nitem as 'ready' )
    Fully_prioritized?[ Is the list\nfully prioritized? ]
    Can_prioritize( Can prioritize list )
 Work( Work on benchmark\n'ready' item, then\nmark 'done )
@avidrucker
avidrucker / users-recipes-ingredients-erd.md
Last active October 13, 2023 16:14
database design of users, recipes, and ingredients
erDiagram
  User ||--|{ Address : "Lives at"
  User ||--o{ Recipe : "Creates"
  User ||--o{ Review : "Writes"
  Recipe ||--o{ Review : "Has"
  Recipe ||--|{ Step : "Has"
  Recipe ||--|{ RecipeIngredient : "Contains"
  Ingredient ||--o{ RecipeIngredient : "Is in"
@avidrucker
avidrucker / devternity_yegor_xdsd_talk_captions.srt
Last active June 16, 2023 14:31
Talk given by Yegor on the topic of XDSD at the Devternity Conference
1
00:00:00,030 --> 00:00:02,270
Yegor: A few words about myself just quickly.
2
00:00:02,700 --> 00:00:05,600
I'm writing software for 25 years,
3
00:00:05,600 --> 00:00:07,780
@avidrucker
avidrucker / SIMBA_Russian_Captions_Complete_Ver_001.srt
Created May 17, 2023 18:23
Russian subtitles for the SIMBA talk by Yegor Bugayenko at Merge Conf
1
00:00:00,000 --> 00:00:10,000
[Выступая на русском языке] Сегодня у нас первый спикер - это Егор Бугаенко, он расскажет вам про его SIMBA. Давайте его поддержим, похлопаем...
2
00:00:10,000 --> 00:00:11,400
(Аудитория аплодирует)
3
00:00:12,730 --> 00:00:15,180
@avidrucker
avidrucker / SIMBA_English_Captions_Complete_Ver_001.srt
Created March 22, 2023 14:41
Complete English subtitles for the SIMBA talk by Yegor Bugayenko at Merge Conf
1
00:00:00,000 --> 00:00:10,000
[speaking in Russian] Today we have the first speaker - this is Yegor Bugaenko, he will tell you about his SIMBA. Let's support him, clap...
2
00:00:10,000 --> 00:00:11,400
(audience applauding)
3
00:00:12,730 --> 00:00:15,180
@avidrucker
avidrucker / klipse-tiny-counter.cljs
Created March 19, 2023 12:57
Tiny Counter in Reagent & ClojureScript for Klipse
;; this code will work in Klipse if and only if the URL is http://app.klipse.tech/?container=1
(require
'[reagent.core :as r]
'[reagent.dom :as r-dom])
;; TODO: refactor app to hold & manage its own state as a form-3 component
(def counter (r/atom 0))
(defn app []
[:main
@avidrucker
avidrucker / klipse-todo-mvp.cljs
Last active March 16, 2023 14:13
minimal Klipse to-do list app in ClojureScript with Reagent
;; Instructions:
;; 1. go to http://app.klipse.tech/?container=1
;; 2. Paste this entire gist into the upper left code window
;; 3. Wait 3 seconds for the code to evaluate - the to-do list app should appear in the upper right window
;; original program source: https://orgpad.com/o/BSZ05PGN1PMbIjmwIT3Vhs?s=clojure-tutorial
(require
'[reagent.core :as r]
'[reagent.dom :as r-dom])
(defn todo-app []
@avidrucker
avidrucker / todo-mvp-maria-dot-cloud.cljs
Last active March 17, 2023 12:28
a Reagent, Hiccup, and ClojureScript to-do list app study
;; ## Maria Dot Cloud Code Sketch: todo-mvp.cljs
;; Instructions: Run this entire notebook twice to evaluate the code and load the tiny to-do list apps. There are two versions of it; one that currently works with `defcell` and one that doesn't (yet) work.
;; [This code snippet](https://gist.github.com/avidrucker/35b7118b65f64c989f24ae4e6d948da8) will work in Klipse *if and only if* the URL is [http://app.klipse.tech/?container=1](http://app.klipse.tech/?container=1)
;; Inspired originally by [this Hiccup/Reagent demo by OrgPad](https://orgpad.com/o/BSZ05PGN1PMbIjmwIT3Vhs?s=clojure-tutorial)
(cell (html ((g-todo-app))))
@avidrucker
avidrucker / clojure_jam_notes_command_line_app.txt
Created January 10, 2023 01:25
Learning Notes from Making a Clojure Command Line Project
Clojure Command Line Application Tutorial
https://youtu.be/nnFq2nVKxuw
description of app
- running the app
- generates a password
- copies said password to the system clipboard
- the app can take in optional arguments such as password length -l #, or help -h
one way of how to make a new project