Skip to content

Instantly share code, notes, and snippets.

View anataliocs's full-sized avatar
Working on Stellar Quest 3

Chris Anatalio anataliocs

Working on Stellar Quest 3
View GitHub Profile
@anataliocs
anataliocs / minmax.rs
Created June 16, 2024 04:07
Rust minmax function with array manipulation
fn miniMaxSum(arr: &[i32]) {
let len = arr.len();
let mut list: Vec<i64> = vec![];
for n in 0..len {
let &sum = &arr.iter()
.enumerate()
.filter(|(index, &y)| !index.eq(&n))
.map(|(i, &y)| i64::from(y))
@anataliocs
anataliocs / list-of-curl-options.txt
Created July 18, 2024 17:58 — forked from eneko/list-of-curl-options.txt
List of `curl` options
$ curl --help
Usage: curl [options...] <url>
--abstract-unix-socket <path> Connect via abstract Unix domain socket
--alt-svc <file name> Enable alt-svc with this cache file
--anyauth Pick any authentication method
-a, --append Append to target file when uploading
--basic Use HTTP Basic Authentication
--cacert <file> CA certificate to verify peer against
--capath <dir> CA directory to verify peer against
-E, --cert <certificate[:password]> Client certificate file and password
use std::ffi::{OsStr, OsString};
let as_ref1: OsString = OsString::from(OsString::from("stellar contract build"));
assert_eq!("stellar contract build", as_ref1);