Skip to content

Instantly share code, notes, and snippets.

View jlricon's full-sized avatar
😏
Doing the learnings on the machines

Jose Luis Ricon jlricon

😏
Doing the learnings on the machines
  • San Francisco
View GitHub Profile
use warp::Filter;
use std::collections::HashMap;
use std::fs::File;
use std::io::prelude::*;
use std::sync::Arc;
type Trigs<'a> = HashMap<&'a [u8], [u32; 256]>;
// Working from https://stackoverflow.com/questions/53045522/share-arc-between-closures/53045864#53045864
// Related to https://stackoverflow.com/questions/32083065/borrow-data-out-of-a-mutex-borrowed-value-does-not-live-long-enough
#[tokio::main]

Keybase proof

I hereby claim:

  • I am jlricon on github.
  • I am joselricon (https://keybase.io/joselricon) on keybase.
  • I have a public key ASCF_Gv--1PqXOkbHUjE-dek03WLR4qGGmD3V3t6hSwRXgo

To claim this, I am signing this object: