Skip to content

Instantly share code, notes, and snippets.

View rthomas's full-sized avatar
🏠
Working from home

Ryan Thomas rthomas

🏠
Working from home
  • Sydney, Australia
  • 22:01 (UTC +10:00)
View GitHub Profile
@rthomas
rthomas / main.rs
Created July 7, 2019 03:53
MyBox Impl
use std::alloc::{GlobalAlloc, Layout, System};
use std::ops::{Deref, Drop};
use std::marker::PhantomData;
use std::{mem, ptr};
#[derive(Debug)]
struct MyBox<T> {
ptr: *mut u8,
size: usize,
align: usize,
some more content
some more content
some more content
some more content
some more content
some more content
some more content
some more content
@rthomas
rthomas / 1.txt
Created May 30, 2011 21:23
blah_blah
some python code...