Skip to content

Instantly share code, notes, and snippets.

@Armiixteryx
Armiixteryx / base64_file.rs
Created September 12, 2020 19:21
base64_file
#[derive(Debug)]
pub struct Base64File {
filename: String,
content: String,
content_type: String,
size: usize,
}
impl Base64File {
pub fn from_bytes(filename: String, bytes: Vec<u8>, content_type: String, size: usize) -> Base64File {
@Armiixteryx
Armiixteryx / main.cpp
Created January 28, 2020 04:24
Troubles deleting a specific element from an array created with new
#include <iostream>
using namespace std;
void print(int* myarr, int len) {
for(int i = 0; i < len; i++) {
cout << *(myarr + i) << " ";
}
cout << endl;
}
@Armiixteryx
Armiixteryx / main.rs
Created February 20, 2019 20:48
testing_gist
fn main() {
println!("Hi world");
}