Skip to content

Instantly share code, notes, and snippets.

View jpcors's full-sized avatar

John P Corso jpcors

View GitHub Profile
@jpcors
jpcors / 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 = {};
}
@jpcors
jpcors / 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],