Skip to content

Instantly share code, notes, and snippets.

View alyssaverkade's full-sized avatar

Alyssa Verkade alyssaverkade

  • Bay Area
View GitHub Profile
@alyssaverkade
alyssaverkade / keybase.md
Created February 16, 2020 02:59
Keybase Verification

Keybase proof

I hereby claim:

  • I am alyssaverkade on github.
  • I am alyssaverkade (https://keybase.io/alyssaverkade) on keybase.
  • I have a public key ASA7TcdsxgpmCPpcWbpdsiV_eT3QdqFSCFzfiz0AFvlOqAo

To claim this, I am signing this object:

using System;
using System.Collections;
using System.Runtime.Intrinsics.X86;
using System.Runtime.Intrinsics;
public struct BitMask
{
private ushort mask;
BitMask(ushort mask_) => mask = mask_;
/// An incomplete rusty simd implementation of memchr(3)
#![feature(stdsimd, exact_chunks)]
#![cfg_attr(test, feature(test))]
#![cfg_attr(feature = "cargo-clippy", allow(clippy_pedantic))]
#[cfg(test)]
extern crate memchr as other_memchr;
#[cfg(test)]
extern crate quickcheck;
#[cfg(test)]
extern crate test;
#include <optional>
#include <utility>
#include <vector>
template <typename T> class SlidingWindows {
std::vector<T> slice;
/// the number of permutations to perform across the vector
/// NOTE: must be smaller than the length of the vector, if not
/// SlidingWindows::next() immediately terminates
size_t size;
#include <memory>
#include <string>
using std::shared_ptr;
using std::string;
template <typename Value> class BSearchTree {
struct Node {
string element;
Value value;