Skip to content

Instantly share code, notes, and snippets.

View dvtate's full-sized avatar
🐧
chilling

Dustin Van Tate Testa dvtate

🐧
chilling
View GitHub Profile

Note

  • There are probably things missing, use best judgement and/or msg/call me
  • editor concept loosely ispired by scratch.mit.edu
  • user can drag and drop blocks around

Rough UI Overview

  • Shapes and Colors
    • Scratch represents datatypes w/ shapes and categories w/ colors
    • having everything with rounded edges is ok for now
  • Espescially considering how loosely typed our language is

Prefixed-based commands

Users interacting with the bot via its prefix-based command system Skærmbillede fra 2023-01-19 20-08-39

Message Content Blacklisting

Commands to blacklist a server so that the bot ignores messages from that server

Documentation

Skærmbillede fra 2023-01-19 20-24-46 Skærmbillede fra 2023-01-19 20-25-45 Skærmbillede fra 2023-01-19 20-44-31

@dvtate
dvtate / RPN.cpp
Last active August 17, 2024 05:44
a simple RPN calculator written in C++
#include <iostream>
#include <stack>
#include <cstring>
#include <cstdio>
#include <cstdlib>
#include <cmath>
#define MAX_LEN 200
@dvtate
dvtate / HotCorner.ahk
Last active December 8, 2023 16:01
Add a hot-corner to access task view in windows 10
;The Problem:
; I love the hotcorner(s) in GNOME & KDE, and kept finding myself
; trying to use them since I've been forced to use windows 10 (winshit).
;My solution:
; download & install: https://autohotkey.com/
; save this script with the extension ".ahk"
; click on the script to start it and/or set it to launch automatically.
#Persistent
@dvtate
dvtate / postfix-haskell.md
Last active August 1, 2023 21:37
Postfix Haskell Devlog Archive

Postfix Haskell Devlog

Here is a timeline of development for a programming language I worked on 2020-2023

2020.10.7 - Idea and PoC

This is a POC for first ~1/3 of compiler for new language I'm working on... This demo is just a shell for part of compiler that handles:

  • Lexing
  • Parsing (weird bc lang is postfix)
  • Some optimizations
  • Majority of type-checking and validation
@dvtate
dvtate / ssd.cpp
Created July 14, 2023 21:02
determine if a file/folder resides on a ssd or rotating media
#include <cstdio>
#include <string>
#include <vector>
#include <algorithm>
#include <cstring>
#include <iostream>
#include <mntent.h>
#include <limits.h>
struct MountPointEntity {
@dvtate
dvtate / rmc_ctl_sys.md
Created September 13, 2019 23:54
A summary of why we chose to change control system

Why switch?

Problems with old system

  • Required Use of old software that had bugs, was no longer maintained and was poorly documented
  • Delicate, expensive components
  • Required a middleman controller to translate
  • System involved maintaining 3 separate libraries in 2 languages on 3 devices
    • massive time investment
    • In addition, motor controllers and arduino had custom instruction sets we had to use
  • encoders:
    • Previous system used hardware PID controllers
@dvtate
dvtate / how_to_make_deb_packages.md
Last active December 5, 2022 15:42
A short guide on how to package software into .deb packages for debian, ubuntu and linux mint based linux distros

How To Create Debian Packages

This guide is copied from this video: https://www.youtube.com/watch?v=ep88vVfzDAo

Note: Commands here are just for examples. They will NOT run as they are shown here. You have to adapt them to your own needs and system.

  1. Create the directory to hold the project:

    mkdir /home/USER/debpkgs/my-program_version_architecture

  2. Create a directory called "DEBIAN" inside the project directory:

@dvtate
dvtate / guise.ts
Created July 8, 2022 01:23
idk just thinking
// Contains entire app state
type State = {
name: String;
// ...
}
// Initializes state
function init(): State {
return {