I hereby claim:
- I am nonsense2020 on github.
- I am fengcj1984 (https://keybase.io/fengcj1984) on keybase.
- I have a public key ASCYAcKH1hfFNkyBIfve8BNGebeZdhiYetRi-aFhH3KMtgo
To claim this, I am signing this object:
| /// Big Endian bits representation. | |
| module omo::bits { | |
| /// 0x0000_0000_0000_0000 | |
| struct Bits has copy, drop, store, key { | |
| data: u64, | |
| len: u8, | |
| } | |
| public fun zero(): Bits { | 
I hereby claim:
To claim this, I am signing this object:
| git ls-files -z | xargs -0n1 git blame -w | perl -n -e '/^.*\((.*?)\s*[\d]{4}/; print $1,"\n"' | sort -f | uniq -c | sort -n | 
| version: "3.2" | |
| services: | |
| zero: | |
| image: dgraph/dgraph:latest | |
| volumes: | |
| - type: volume | |
| source: dgraph | |
| target: /dgraph | |
| volume: | |
| nocopy: true | 
| // licensed under public domain | |
| // author: [email protected] | |
| const EventEmitter = require('events') | |
| // K combinator, not necessary, just for fun | |
| const K = x => y => x | |
| // this class is mainly for settle logic. | |
| // the concrete class should emit a 'finish' event with err/data at the end of the process | 
| Producer | |
| Setup | |
| bin/kafka-topics.sh --zookeeper esv4-hcl197.grid.linkedin.com:2181 --create --topic test-rep-one --partitions 6 --replication-factor 1 | |
| bin/kafka-topics.sh --zookeeper esv4-hcl197.grid.linkedin.com:2181 --create --topic test --partitions 6 --replication-factor 3 | |
| Single thread, no replication | |
| bin/kafka-run-class.sh org.apache.kafka.clients.tools.ProducerPerformance test7 50000000 100 -1 acks=1 bootstrap.servers=esv4-hcl198.grid.linkedin.com:9092 buffer.memory=67108864 batch.size=8196 | 
| defmodule FuncMacro do | |
| defmacro func(name) do | |
| quote do | |
| def unquote(name)(args) do | |
| Enum.join(args, "-") | |
| end | |
| end | |
| end | |
| defmacro func_with_body(name, do: body) do | 
| defmodule Loop do | |
| defmacro while(predicate, do: block) do | |
| quote do | |
| try do | |
| for _ <- Stream.cycle([:ok]) do | |
| if unquote(predicate) do | |
| unquote(block) | |
| else | |
| throw :break | |
| end | 
| AllCops: | |
| RunRailsCops: true | |
| # Commonly used screens these days easily fit more than 80 characters. | |
| Metrics/LineLength: | |
| Max: 120 | |
| # Too short methods lead to extraction of single-use methods, which can make | |
| # the code easier to read (by naming things), but can also clutter the class | |
| Metrics/MethodLength: |