Skip to content

Instantly share code, notes, and snippets.

View jptomanelli's full-sized avatar

John P Tomanelli II jptomanelli

View GitHub Profile
@jptomanelli
jptomanelli / Rijndael.rs
Last active July 16, 2020 10:25
Rijndael Algo in Rust for CSCI412
/*
Rijndael in Rust
By John P Tomanelli II
----------------------
*/
use std::io;
struct AES {
key : [u8; 16],
state : [u8;16],
@jptomanelli
jptomanelli / Scroller.js
Created November 30, 2018 02:09
Lightweight IntersectionObserver Wrapper
/**
* Lightweight IntersectionObserver Wrapper
*/
class Scroller {
constructor() {
this.requiredOptions = ['query'];
this.intersectionObserverOptions = ['root', 'rootMargin', 'threshold'];
this.options = {};
}