I hereby claim:
- I am fatih on github.
- I am arslan (https://keybase.io/arslan) on keybase.
- I have a public key ASDcvzZWuMBwyPHwpUkOEmBS_jMOB_3NiOjUP-6vPAYePQo
To claim this, I am signing this object:
// A very simple example about how to use concurrent-safe SETs (using string as keys) in GO | |
package main | |
import ( | |
"fmt" | |
"sync" | |
) | |
type Set struct { | |
m map[string]bool |
Poly File Layer | |
Idea: A single file content to represent a set of identical or similar files. | |
* Files can be templated. Files generated by the template are identical in the PFL (Poly File Layer) | |
* Files that have common lines, can be linked and marked as a Poly File. | |
Prior Art | |
* [ ] Read the paper | |
* Extracting a Unified Directory Tree to Compare Similar Software Products: https://sel.ist.osaka-u.ac.jp/lab-db/betuzuri/archive/1012/1012.pdf | |
* Fast Search in Hamming Space with Multi-Index Hashing: http://www.cs.toronto.edu/~norouzi/research/papers/multi_index_hashing.pdf |
I hereby claim:
To claim this, I am signing this object:
package main | |
import ( | |
"testing" | |
corev1 "k8s.io/api/core/v1" | |
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" | |
) | |
func TestValidate(t *testing.T) { |
ifeq ($(strip $(shell git status --porcelain 2>/dev/null)),) | |
GIT_TREE_STATE=clean | |
else | |
GIT_TREE_STATE=dirty | |
endif | |
all: build | |
build: | |
@echo "==> Building the project" |
package main | |
import ( | |
"bytes" | |
"errors" | |
"flag" | |
"fmt" | |
"io/ioutil" | |
"log" | |
"os" |
package main | |
import ( | |
"container/ring" | |
"fmt" | |
"time" | |
) | |
func main() { | |
coffee := []string{"kenya", "guatemala", "ethiopia"} |
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
# Without tk: http://rastgele-tc-kimlik-no-uretici.googlecode.com/svn/trunk/rastgele-tc-kimlik-no-uretici.py | |
from random import randint | |
while True: | |
tcno = randint(10000000000,99999999999) | |
tc = str(tcno) | |
listetc = [int(tc[i]) for i in range(11)] | |
tc10 = 0 |
function switchgo() { | |
version=$1 | |
if [ -z $version ]; then | |
echo "Usage: switchgo [version]" | |
return | |
fi | |
if ! command -v "go$version" > /dev/null 2>&1; then | |
echo "version does not exist, download with: " | |
echo " go get golang.org/dl/go${version}" |