Skip to content

Instantly share code, notes, and snippets.

View nanne007's full-sized avatar
🏠
Working from home

caojiafeng nanne007

🏠
Working from home
View GitHub Profile
@nanne007
nanne007 / Count Code lines
Created January 22, 2019 02:32 — forked from amitchhajer/Count Code lines
Count number of code lines in git repository per user
git ls-files -z | xargs -0n1 git blame -w | perl -n -e '/^.*\((.*?)\s*[\d]{4}/; print $1,"\n"' | sort -f | uniq -c | sort -n

Keybase proof

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:

@nanne007
nanne007 / bits.move
Created August 11, 2022 11:03
bits operations in movelang
/// 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 {