Skip to content

Instantly share code, notes, and snippets.

View aidenfoxivey's full-sized avatar
🦊
put a computer in your computer, so you can compute while you compute

Aiden Fox Ivey aidenfoxivey

🦊
put a computer in your computer, so you can compute while you compute
View GitHub Profile
@aidenfoxivey
aidenfoxivey / server.go
Created March 28, 2023 15:25
A simple Go server I wrote in ~1 hour.
package main
import (
"bufio"
"flag"
"fmt"
"log"
"net"
"os"
"strings"
@aidenfoxivey
aidenfoxivey / symbolic-diff.py
Created April 8, 2023 17:22
Symbolic Differentiation in Python
# I've left this here in case we want to implement diff for trig or other functions
class Function:
def __init__(self):
pass
def diff(self):
pass
class Polynomial(Function):
def __init__(self, coeffs):
@aidenfoxivey
aidenfoxivey / newton.py
Created May 9, 2023 21:18
The first program I wrote!
import numpy as np
import matplotlib.pyplot as plt
import random
import sys
def newton_method():
print("------------------------------------------")
func = input("What function should I evaluate?\t")
lower_bound = int(input("What lower bound should I use?\t"))
@aidenfoxivey
aidenfoxivey / Conway.py
Last active May 16, 2023 18:11
Conway's Game of Life
# Teon Brooks, Aiden Fox Ivey 2023
import os
import time
# Any live cell with two or three live neighbours survives.
# Any dead cell with three live neighbours becomes a live cell.
# All other live cells die in the next generation. Similarly, all other dead cells stay dead.
def display(board):
use std::cell::{RefCell, RefMut};
use std::collections::HashMap;
use std::rc::Rc;
pub use num::{One, Zero};
use std::cmp::PartialEq;
pub use std::ops::{Add, Mul};
pub trait Numeric: Zero + One + Copy + Clone + Mul + Add + PartialEq + std::fmt::Debug {}
// https://stackoverflow.com/questions/42381185/specifying-generic-parameter-to-belong-to-a-small-set-of-types
@aidenfoxivey
aidenfoxivey / config
Created June 14, 2023 19:13
cross compile for mips
# put in .cargo/config
[build]
target="mips-unknown-linux-musl"
[target.mips-unknown-linux-musl]
linker="/cosine/shared/mips-linux-musl-cross/bin/mips-linux-musl-gcc"
@aidenfoxivey
aidenfoxivey / local-eceubuntu.md
Last active December 28, 2023 16:46
Fast Linux VM Workflow on Macs

Do you want a local ECEUbuntu? 👷

Local ECEUbuntu on Macs

eceubuntu

Guide created with limactl version 0.17.2 and Homebrew 4.1.14 on an M1 Pro MBP running macOS 14.0 (23A344).

This guide is supported on:

  • ARM64 (M1) Macs
  • AMD64 (Intel) Macs
@aidenfoxivey
aidenfoxivey / ece252_lab3_runner.py
Last active October 19, 2023 21:14
ECE252 Lab 3 Run Script
#!/usr/bin/env python3
import subprocess
import time
import csv
import socket
import re
def main():

$argon2id$v=19$m=512,t=256,p=1$CFg1DY2s7hPciYHF42NwOw$xKx/AITbWO3k3S1XxCIu4NUc+4TnICJB3SMGqfZzplM

openpgp4fpr:61605C2245761FC2200F078684B78FF77616E348