Skip to content

Instantly share code, notes, and snippets.

View iamalwaysuncomfortable's full-sized avatar
😳
Stay uncomfortable

Mike Turner iamalwaysuncomfortable

😳
Stay uncomfortable
View GitHub Profile
@iamalwaysuncomfortable
iamalwaysuncomfortable / benchmark_analysis.ipynb
Created January 10, 2024 18:49
benchmark_analysis.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@iamalwaysuncomfortable
iamalwaysuncomfortable / zkML.md
Last active April 18, 2023 13:44
Privacy Preserving zkML frameworks
graph LR
    subgraph Predictions
    e[Public Predictions]
    f[Private Predictions]
    end
    subgraph Model
    c[Verified Private Model]
    d[Public Model]
 c-->e
@iamalwaysuncomfortable
iamalwaysuncomfortable / Circuit1.md
Last active January 4, 2023 03:34
Arithmetic Circuit 1

Arithmetic circuit for ${\Huge c_{5}c_{6}c_{7}c_{9}^3 + c_{1}c_{2}c_{9}^2 + c_{3}c_{4}c_{9}^2 + c_{8}c_{9} }$

graph TD
    C9 --> G1
    C9 --> G1["G1(*)"]
    G1 -->G2
    C9 --> G2["G2(*)"]
    C1 --> G3
    C2 --> G3["G3(*)"]
@iamalwaysuncomfortable
iamalwaysuncomfortable / imoge_upload.rs
Created August 5, 2022 19:53
Rust image upload sample
use anyhow::Result;
use futures::{stream::{FuturesUnordered}, StreamExt};
use reqwest::Client;
use std::time::Instant;
use tokio;
const PARALLEL_REQUESTS: usize = 30;
const IMOGE_BYTES: &'static [u8] = include_bytes!("/home/imoge.jpeg");
async fn post(client: &Client, url: String, bearer: &str) -> reqwest::Result<bytes::Bytes> {
@iamalwaysuncomfortable
iamalwaysuncomfortable / get_sent_txo.py
Created February 4, 2022 01:15
Get sent mobilecoin txos
import asyncio
from forest.payments_monitor import Mobster
mobster = Mobster()
##There are 2 ways to get spent txos
# 1 - get by txo map (I believe this works even if you import your acct to a new FS instance)
async def get_sent_txos_from_txo_history() -> list:
acct = await mobster.get_account()