Skip to content

Instantly share code, notes, and snippets.

View BenDavidAaron's full-sized avatar

Ben Aaron BenDavidAaron

View GitHub Profile
analyticsengine.s3.amazonaws.com
analytics.s3.amazonaws.com
advertising-api-eu.amazon.com
widgets.pinterest.com
ads-api.tiktok.com
business-api.tiktok.com
log.byteoversea.com
udc.yahoo.com
udcm.yahoo.com
log.fc.yahoo.com
@BenDavidAaron
BenDavidAaron / caesar.go
Created March 1, 2023 03:09
Caesar Shift Cipher in Go
package main
import (
"bufio"
"flag"
"fmt"
"os"
)
var shift = flag.Int("n", 1, "Number of characters to shift")
@BenDavidAaron
BenDavidAaron / sdate.rs
Last active November 19, 2022 18:12
Sdate in rust
extern crate chrono;
use chrono::{TimeZone, Utc};
fn count_days_since_sdate() -> u64 {
let utc = Utc;
let now = Utc::now();
let sept_date = utc
.datetime_from_str(&"Sept 01 00:00:01 1993", "%b %d %H:%M:%S %Y")
.unwrap();
let duration_since_sdate = now.signed_duration_since(sept_date);
@BenDavidAaron
BenDavidAaron / short_stack.py
Created February 5, 2022 03:32
A barebones stack based virtual machine implemented in python
program_counter = 0
step_counter = 0
stack = []
def push(val):
global stack
stack.append(val)
return
@BenDavidAaron
BenDavidAaron / keybaseProof.txt
Created September 13, 2019 14:54
Keybase Proof
### Keybase proof
I hereby claim:
* I am bendavidaaron on github.
* I am bendavidaaron (https://keybase.io/bendavidaaron) on keybase.
* I have a public key ASBtfUFCm5ANMzy206AeiJZJQ-Z1gquRiziJaghtIqPL5wo
To claim this, I am signing this object: