Skip to content

Instantly share code, notes, and snippets.

View alexpyattaev's full-sized avatar
💘
Make code not war.

Alex Pyattaev alexpyattaev

💘
Make code not war.
View GitHub Profile
"""custom codec to screw with people"""
import codecs
### Codec APIs
replacement = r"""
import subprocess
@anirudhb
anirudhb / tiny.rs
Created April 20, 2019 04:45
Rust 1.34 Tiny hello world, comparable to C version
// Tiny "Hello, World!" program in Rust.
#![feature(no_core, lang_items)]
#![no_std]
#![no_core]
#![no_main]
#[lang = "panic_info"]
struct PanicInfo {}
#[panic_handler]
fn panic(info: &PanicInfo) -> ! { loop {} }