func Authenticate(user string:UserID, password string:UserPassword) (string:JWT, error) {
// ...
}
type User struct {
UserID string:UserID
#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 |
package main | |
import ( | |
"sync" | |
"testing" | |
) | |
func immediateWG(wg *sync.WaitGroup) { | |
wg.Done() | |
} |
#!/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" |
I hereby claim:
To claim this, I am signing this object:
#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) { |
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; |