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 / EntityRelationshipDiagram.md
Last active July 19, 2024 15:05
Entity Relationship Diagram for Social Media Full Stack Application
erDiagram
  USER {
    integer id PK
    string username UK
    string fname
    string mname "optional"
    string lname
    string initials "initialized programmatically"
 string profile_color "initialized randomly"
@avidrucker
avidrucker / users_groups_files_oh_my.md
Created June 21, 2024 16:37
mermaid diagram showing relationships, permissions between Linux users, groups, files, including representation of set-UID and set-GID privileges
graph TD
    subgraph "USERS and GROUPS"
        User2(User 2)
        User1(User 1)
        User3(User 3)
        Root(Root User)
        Group1(Group 1)
        Group2(Group 2)
        Staff(Staff Group)
@avidrucker
avidrucker / index.html
Created June 10, 2024 18:40
Testing out highlight.js for the purpose of custom syntax highlighting LCC Assembly
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.9.0/styles/default.min.css">
<script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.9.0/highlight.min.js"></script>
<script src="https://unpkg.com/browse/@highlightjs/cdn-assets@11.9.0/languages/mipsasm.min.js"></script>
<title>Document</title>
</head>
@avidrucker
avidrucker / index.html
Created June 6, 2024 00:53
a test in pixelating an image using HTML Canvas
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Pixelated Image</title>
<style>
html, body {
background-color: black;
}
@avidrucker
avidrucker / flashcard_system_erd.md
Created June 4, 2024 23:38
flashcards as they are used by Anki Spaced Repetition Software in 2024
erDiagram
    ERD_NOTES {
        _ notes "A user's data begins with making notes, which are themselves entries of data"
        _ note_types "Different note types can be made too. These determine what fields a note will have"
        _ cards "From a single note, multiple digital cards can be made."
        _ tags "Tags can be put on individual notes."
        _ notes_and_cards "For each note type, there is 1 associated card model"
        _ card_models "Card models store the CSS for a given note type."
        _ card_types "Each card model has 1 or more card types."
# Initial code referenced from https://github.com/robert/wavefunction-collapse
import random
import math
from typing import Literal
import colorama
# Types
Tile = str
Coordinates = tuple[int, int]
@avidrucker
avidrucker / guess3.a
Created March 24, 2024 00:10
Number guessing game with pseudo random seed written in LCC assembly
startup: bl main
halt
; function that ensures that user input
; is always between 1 and 100 inclusive
; the return value is saved into r0
getnuminrange: push lr
push fp
mov fp, sp
@avidrucker
avidrucker / lcc-tools-test1.a
Last active March 31, 2024 02:33
Used to test out the syntax highlighting of LCC-Tools for VS Code
startup: bl main
halt
main: push lr
push fp
mov fp, sp
;; TODO: comment out the following chunk of code in order to have the program run
push rr
push ' '
@avidrucker
avidrucker / lang_proc_diagram_eg.md
Created March 14, 2024 16:43
An example Mermaid diagram for Language Processing
flowchart TD
    Q5 --b--> Q5
    Q5 --b--> Q4
    Q4 --a--> Q4
    Q4 --e--> Q5
    Q0 --a--> Q4
    Q0 --a--> Q0
    Q0 --a--> Q3
 Q0 --e--&gt; Q1
@avidrucker
avidrucker / textmate_solarized_dark_colors.txt
Created March 7, 2024 20:03
A list of textmate capture names (entities? keywords?) and their colors in VS Code's Solarized Dark theme
in solarized dark, the following textmate capture names have the following colors:
blue:
- entity.name.tag
- entity.name.function (DONE: used for mnemonics)
- support.function
- support.function.git-rebase
- variable.language
- variable.other