I hereby claim:
- I am robmccoll on github.
- I am robmccoll (https://keybase.io/robmccoll) on keybase.
- I have a public key whose fingerprint is 409E F943 610E 031D DF3B A2E7 FA3C BFF9 05C1 89AA
To claim this, I am signing this object:
| include <stdint.h> | |
| #include <stdio.h> | |
| #include <stdlib.h> | |
| #include <strings.h> | |
| #include <math.h> | |
| #include "stinger_utils/timer.h" | |
| int32_t JumpConsistentHash(uint64_t key, int32_t num_buckets) { | |
| int64_t b= -1, j = 0; |
| #include <stdio.h> | |
| typedef struct { | |
| int len; | |
| int * int_arr; | |
| char * char_arr; | |
| } print_arr_args; | |
| #define print_array(...) print_array_impl((print_arr_args){__VA_ARGS__}) | |
| void print_array_impl(print_arr_args args) { |
I hereby claim:
To claim this, I am signing this object:
| #!/bin/bash | |
| # A hacky bash script that scans Go vendor dirs for licenses. | |
| # License checking could probably be improved... | |
| CODEDIRS=$(find vendor -name "*.go" | xargs dirname | sort | uniq) | |
| LICENSEDIRS=$(find vendor -name LICENSE | xargs dirname) | |
| # echo -e "CODE DIRS *********************\n" | |
| # echo -n "$CODEDIRS" | |
| # echo -e "\n\nLICENSE DIRS *********************\n" |
| package main | |
| import ( | |
| "sync" | |
| "testing" | |
| ) | |
| func immediateWG(wg *sync.WaitGroup) { | |
| wg.Done() | |
| } |
| #include <iostream> | |
| #include <string> | |
| #include <exception> | |
| // The idea is to provide conveniences that: | |
| // - create get() and set() methods for you | |
| // - have low boilerplate | |
| // - be easy to read / understand (if something is declared rewrite<class> name; | |
| // I can expect that it has get() and set() methods). | |
| // - allow easy override / implementation later |