Skip to content

Instantly share code, notes, and snippets.

View dgryski's full-sized avatar
🏠
💻 🍞 ☕

Damian Gryski dgryski

🏠
💻 🍞 ☕
View GitHub Profile
Scanning /home/dgryski/work/src/cvs/go repo
Found 8517 bugfix commits, with 6545 hotspots:
Fixes:
- last-minute fix: convert to ANSI C
- - fixed a couple of grammar errors
- - more grammar fixes
- - fixed double-definition of StructType
- fix a few nits in the typography so HTML is right
- fix grammar for struct and interface types to make final semicolon optional
@dgryski
dgryski / keybase.md
Created March 30, 2015 13:09
keybase

Keybase proof

I hereby claim:

  • I am dgryski on github.
  • I am dgryski (https://keybase.io/dgryski) on keybase.
  • I have a public key whose fingerprint is 2BF6 0985 8B5C E838 134E 9939 D707 58D9 5F9C 7234

To claim this, I am signing this object:

function dgryski-set-prompt {
if [ $(tput colors) -ge 8 ]; then
BRED='\[\e[1;31m\]'
RED='\[\e[0;31m\]'
BGREEN='\[\e[1;32m\]'
GREEN='\[\e[0;32m\]'
BYELLOW='\[\e[1;33m\]'
YELLOW='\[\e[0;33m\]'
BBLUE='\[\e[1;34m\]'
diff --git a/xs/Ketama.xs b/xs/Ketama.xs
index 22fcc64..6d1432f 100644
--- a/xs/Ketama.xs
+++ b/xs/Ketama.xs
@@ -296,11 +296,8 @@ PerlKetama_hash_internal2( PerlKetama *ketama, char *thing, STRLEN len, unsigned
{
unsigned int h;
unsigned int highp;
- unsigned int maxp = 0,
- lowp = 0,
"0\x82\n\f\x02\x01\x030\x82\t\xcc\x06\t*\x86H\x86\xf7\r\x01" +
"\a\x01\xa0\x82\t\xbd\x04\x82\t\xb90\x82\t\xb50\x82\x05\xee\x06\t" +
"*\x86H\x86\xf7\r\x01\a\x01\xa0\x82\x05\xdf\x04\x82\x05\xdb0\x82\x05" +
"\xd70\x82\x05\xd3\x06\v*\x86H\x86\xf7\r\x01\f\n\x01\x02\xa0\x82" +
"\x04\xee0\x82\x04\xea0\x1c\x06\n*\x86H\x86\xf7\r\x01\f\x01\x03" +
"0\x0e\x04\bR\xb5Cg\x951\x95\xfa\x02\x02\a\xd0\x04\x82\x04\xc8" +
"'\xcdI\"\x8b,\x17\xa6\xe8\x15jO\xb6H\x90D\xfbH\xe85" +
"\xba{\xd4\x03\xe3\xf5\xaf\x1c\x05k3f\xcav\x933H\xcb\x020" +
"\xbeM\xca\xe7]\x00\xd4\xca\x1c\x15j\xd3B\\\xf6G\xaa\x18\xd0*" +
"$\xf2\xa4\x8e\x14\x94y\xbc\xd0\x17(^\xd0Mh#\xd4\xf8͎" +
@dgryski
dgryski / gist:123ec348b1cf37e46ad4
Created November 11, 2015 10:08
Markov HN Go comments
<dgryski@kaepora[HNgo] \ʕ◔ϖ◔ʔ/ > for i in $(seq 10); do ./markov <hngo.txt; echo; done |fmt
There have been spawned at vaguely the same fate in science. Java has
better garbage collectors, including a maximum of 10 ms pause should not
apear in a lot of effort in the content has to consider adding proper
macros to the language that you're using (if one at that AIUI. there's
lots of i/o, and there was no option to have removed their page isn't
"slow" or anything, but who cares? Your argument seems to hate the idea
of what happened) and the more rigid syntax for the core language is safe
(that goes for 3 probably. 2 and
package foo
import (
"io/ioutil"
"path/filepath"
"testing"
)
func TestFuzzCorpus(t *testing.T) {
corpus, err := filepath.Glob("workdir/corpus")
// +build gofuzz
package snappy
import (
"bytes"
)
func Fuzz(data []byte) int {
package main
import (
"bufio"
"errors"
"fmt"
"os"
"sort"
"strconv"
"strings"