This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package memset | |
func memset(dst []byte, value byte) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
// Adapted from : https://gist.github.com/arnehormann/65421048f56ac108f6b5 | |
import ( | |
"bufio" | |
"encoding/binary" | |
"flag" | |
"fmt" | |
"io" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SET LEVEL=1 | |
compress -in=%1 -out=* -stats -header=true -w="gzstd" -l=%LEVEL% >>results.txt | |
compress -in=%1 -out=* -stats -header=false -w="gzkp" -l=%LEVEL% >>results.txt | |
compress -in=%1 -out=* -stats -header=false -w="pgzip" -l=%LEVEL% >>results.txt | |
compress -in=%1 -out=* -stats -header=false -w="cgzip" -l=%LEVEL% >>results.txt | |
SET LEVEL=2 | |
compress -in=%1 -out=* -stats -header=false -w="gzstd" -l=%LEVEL% >>results.txt |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
// Adapted from : https://gist.github.com/arnehormann/65421048f56ac108f6b5 | |
import ( | |
"encoding/binary" | |
"flag" | |
"fmt" | |
"io" | |
"io/ioutil" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Copyright 2011 The Go Authors. All rights reserved. | |
// Copyright 2013 Klaus Post | |
// Use of this source code is governed by a BSD-style | |
// license that can be found in the LICENSE file. | |
package crc32 | |
import ( | |
"github.com/klauspost/intrinsics/x86/sse2" | |
"github.com/klauspost/intrinsics/x86" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package app | |
import ( | |
"math/rand" | |
"time" | |
"github.com/revel/revel" | |
) | |
// randomDuration generates a duration between min and max duration. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"fmt" | |
"io" | |
"os" | |
"path/filepath" | |
) | |
const ( |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
" </div>" | |
" })();\r\n" | |
" && " | |
" & " | |
" " | |
" ''The " | |
" ("" | |
" (199" | |
" (200" | |
" (e.g." |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Match tags in notes, etc. | |
// Group 1: Must start with whitespace OR start of string | |
// - : Must start with hash sign # | |
// Group 2: Match everything, until we reach a whitespace, '#' '.' ',' '!' ')'. | |
// Must be end of string | |
var matchTags = regexp.MustCompile(`[^\S]|^#([^\s#.,!)]+)$`) | |
// tagsSplitter returns true if the current rune is a tag ending | |
// Tags MUST end with whitespace, '.' ',' '!' or ')' | |
func tagsSplitter(c rune) bool { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// THESE PACKAGES ARE FOR DEMONSTRATION PURPOSES ONLY! | |
// | |
// THEY DO NOT NOT CONTAIN WORKING INTRINSICS! | |
// | |
// See https://github.com/klauspost/intrinsics | |
package sse2 | |
import "github.com/bjwbell/gensimd/simd" | |
var _ = simd.M128{} // Make sure we use simd package |