Skip to content

Instantly share code, notes, and snippets.

@cmpark0126
Last active March 2, 2020 17:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cmpark0126/a7e59774a1df2e7235f1a94d860a9df1 to your computer and use it in GitHub Desktop.
Save cmpark0126/a7e59774a1df2e7235f1a94d860a9df1 to your computer and use it in GitHub Desktop.
Helpdesk for everything

github

git clone with token

git clone http://<username>:<token>@github.com/owner/repo.git

Jekyll

local build

$ bundle exec jekyll serve

LLVM

translate to llvm ir

clang-* -O0 -Xclang -disable-O0-optnone -emit-llvm -c [FILE_NAME(.c)]
opt-* -[OPT_OPTION] [BYTECODE_FILE_NAME(.bc)] -o [GENERATED_FILE_NAME(.bc)]
llvm-dis-* [BYTECODE_FILE_NAME(.bc)] -o [LLVM_IR_FILE_NAME(.ll)]

Rust

Cargo

Test

  • test with printing output (like plintln!)
cargo test -- --nocapture
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment