Skip to content

Instantly share code, notes, and snippets.

View SkySchulz's full-sized avatar

Sky Schulz SkySchulz

  • San Francisco Bay Area
View GitHub Profile
@EricWF
EricWF / constinit.md
Last active July 16, 2020 09:07
A Proposal to add [[constinit]] to C++
Document Number: P1143r3
Date: 2019-06-18
Project: Programming Language C++, Evolution
Revises: P1143r2
Reply to: eric@efcs.ca

Adding the constinit keyword

@automatonic
automatonic / MurMurHash3.cs
Created September 14, 2012 22:46
MurMurHash3 .Net (C#) implementation
/*
This code is public domain.
The MurmurHash3 algorithm was created by Austin Appleby and put into the public domain. See http://code.google.com/p/smhasher/
This C# variant was authored by
Elliott B. Edwards and was placed into the public domain as a gist
Status...Working on verification (Test Suite)
Set up to run as a LinqPad (linqpad.net) script (thus the ".Dump()" call)
*/
@zentrope
zentrope / MemoryMapInputStream.scala
Created July 1, 2011 03:38
Scala InputStream for Memory Mapped File
// Just an example of some code I ended up not using, but which is kinda neat.
object Utils {
def linesFromFile(file: File) = {
io.Source.fromInputStream(getMemoryMappedFileInputStream(file)).getLines
}
def getMemoryMappedFileInputStream(file: File): InputStream = {