Skip to content

Instantly share code, notes, and snippets.

View yuyoyuppe's full-sized avatar

Andrey Nekrasov yuyoyuppe

  • 17:54 (UTC +02:00)
View GitHub Profile
#![feature(proc_macro_hygiene)]
use criterion::Criterion;
use criterion::ParameterizedBenchmark;
use criterion::{criterion_group, criterion_main};
use unicase::Ascii;
use strum_macros::EnumString;
use phf::phf_map;
#[derive(EnumString, Clone, Copy)]
@yarapavan
yarapavan / miui9-debloat.sh
Created June 27, 2018 09:11
miui debloat using adb shell
adb devices
adb shell
# enter shell prompt
pm uninstall -k --user 0 com.google.android.googlequicksearchbox
pm uninstall -k --user 0 com.xiaomi.mipicks
pm uninstall -k --user 0 com.android.browser
@bishboria
bishboria / springer-free-maths-books.md
Last active April 25, 2024 06:27
Springer made a bunch of books available for free, these were the direct links
@rygorous
rygorous / magic_ring.cpp
Created July 22, 2012 03:55
The magic ring buffer.
#define _CRT_SECURE_NO_DEPRECATE
#include <stdio.h>
#include <string.h>
#include <Windows.h>
// This allocates a "magic ring buffer" that is mapped twice, with the two
// copies being contiguous in (virtual) memory. The advantage of this is
// that this allows any function that expects data to be contiguous in
// memory to read from (or write to) such a buffer. It also means that