63971005516435225f0eaaef0aaf381edfd038fd
David Blume Use Markdown in README.md

David Blume authored 8 years ago

README.md   1) # testcode
README.md   2) 
README.md   3) This is just a test project. You can do anything here, test g++, make, cmake,
README.md   4) git, cscope, and IDE projects.
README.md   5) 
David Blume Added some documentation fo...

David Blume authored 3 years ago

README.md   6) ## Getting the project
David Blume Use Markdown in README.md

David Blume authored 8 years ago

README.md   7) 
README.md   8) You can get a copy of this project by clicking on the
dblume Update http to https in REA...

dblume authored 1 year ago

README.md   9) [ZIP](https://git.dlma.com/testcode.git/zipball/main)
README.md  10) or [TAR](https://git.dlma.com/testcode.git/tarball/main) buttons
David Blume Use Markdown in README.md

David Blume authored 8 years ago

README.md  11) near the top right of the GitList web page.
David Blume first commit

David Blume authored 8 years ago

README     12) 
David Blume Update the README

David Blume authored 8 years ago

README     13) You can clone from the origin with:
README     14) 
David Blume Use Markdown in README.md

David Blume authored 8 years ago

README.md  15)     git clone ssh://USERNAME@dlma.com/~/git/testcode.git
David Blume Update the README

David Blume authored 8 years ago

README     16) 
David Blume Added some documentation fo...

David Blume authored 3 years ago

README.md  17) ## IDEs
README.md  18) 
README.md  19) ### tmux vim entr
README.md  20) 
dblume Add git ls-files and change...

dblume authored 2 years ago

README.md  21) Create two panes in tmux, run vim in one, and run entr in the other. You probably
README.md  22) only need the `git ls-files` for `entr`, but I provide a bash command group with
README.md  23) `find` here so I can easily copy and change it as needed.
David Blume Added some documentation fo...

David Blume authored 3 years ago

README.md  24) 
dblume Add git ls-files and change...

dblume authored 2 years ago

README.md  25)     { git ls-files && find . -type f -regex '.*\.\(cfg\|local\)'; } | \
dblume Add --show-leak-kinds=all v...

dblume authored 2 years ago

README.md  26)     entr -c sh -c 'ctags -R *; make -j$(nproc) && \
README.md  27)     valgrind -q --leak-check=yes --show-leak-kinds=all product/testcode'
David Blume Added some documentation fo...

David Blume authored 3 years ago

README.md  28) 
dblume Add git ls-files and change...

dblume authored 2 years ago

README.md  29) `find` could also have been `find . -type f \( -name \*.cfg -or -name \*.local \)`.
David Blume Added some documentation fo...

David Blume authored 3 years ago

README.md  30) 
dblume Add git ls-files and change...

dblume authored 2 years ago

README.md  31) To compile with debug info and run in gdb:
David Blume Added some documentation fo...

David Blume authored 3 years ago

README.md  32) 
dblume Add git ls-files and change...

dblume authored 2 years ago

README.md  33)     ... | entr -c sh -c 'ctags -R *; make debug -j$(nproc) && gdb product/testcode'
David Blume Added some documentation fo...

David Blume authored 3 years ago

README.md  34) 
dblume Add git ls-files and change...

dblume authored 2 years ago

README.md  35) Tip: In vim you can grep and use the QuickFix window with commands like...
README.md  36) 
README.md  37)     :grep -rI --exclude=tags --exclude=cscope.* --exclude-dir=obj searchterm .
David Blume Added some documentation fo...

David Blume authored 3 years ago

README.md  38)     :cw
README.md  39) 
dblume Update http to https in REA...

dblume authored 1 year ago

README.md  40) See [this QuickFix tip for sorting results by filename](https://git.dlma.com/dotfiles.git/commit/0cb566c53caf931c8b3f423dcfded4660b220cbb).
David Blume Mention the vim QuickFix to...

David Blume authored 3 years ago

README.md  41) 
dblume Add entr one-liner for when...

dblume authored 2 years ago

README.md  42) #### entr One-Liner for When no Makefile
README.md  43) 
README.md  44) [This entr command is handy](https://twitter.com/dblume/status/1421011043489255424) when composing interview questions without a Makefile:
README.md  45) 
dblume Add --show-leak-kinds=all v...

dblume authored 2 years ago

README.md  46)     ls -1 *.h *.cpp | entr sh -c 'g++ -Wall -std=c++17 -pthread *.cpp && \
README.md  47)     valgrind -q --leak-check=yes --show-leak-kinds=all ./a.out'
dblume Add entr one-liner for when...

dblume authored 2 years ago

README.md  48) 
David Blume Added some documentation fo...

David Blume authored 3 years ago

README.md  49) ### Visual Studio Code and WSL2
README.md  50) 
README.md  51) Once you've got the [Remote -WSL extension](https://marketplace.visualstudio.com/items?itemName=ms-vscode-remote.remote-wsl)
README.md  52) for WSL, you can invoke Code from the WSL side.
README.md  53) 
README.md  54)     code .
README.md  55) 
README.md  56) Or, if it's not in your path, something like...
README.md  57) 
README.md  58)     /mnt/c/Users/$USER/AppData/Local/Programs/Microsoft\ VS\ Code/bin/code .
README.md  59) 
dblume Add .clang-format

dblume authored 1 year ago

README.md  60) 
README.md  61) ### Formatting
README.md  62) 
dblume Added instructions for newe...

dblume authored 1 year ago

README.md  63) Use clang-format. Install the distro's version with:
dblume Add .clang-format

dblume authored 1 year ago

README.md  64) 
README.md  65)     sudo apt install clang-format
README.md  66) 
dblume Added instructions for newe...

dblume authored 1 year ago

README.md  67) Or install a newer one (replace 17 with whatever's current now) with:
README.md  68) 
README.md  69)     wget https://apt.llvm.org/llvm.sh
README.md  70)     chmod +x llvm.sh
README.md  71)     sudo ./llvm.sh 17
README.md  72)     sudo apt install clang-format-17
README.md  73) 
dblume Add .clang-format

dblume authored 1 year ago

README.md  74) Then, after making your edits, use the [vim integration](https://clang.llvm.org/docs/ClangFormat.html#vim-integration) or manually format with:
README.md  75) 
README.md  76)     git status --porcelain | \
README.md  77)     awk 'match($1, "M|A") && match($2, "(c|h)(pp)?$"){print $2}' | \
dblume Added instructions for newe...

dblume authored 1 year ago

README.md  78)     xargs clang-format-17 -style=file -i
dblume Add .clang-format

dblume authored 1 year ago

README.md  79) 
README.md  80) Or, shorter but less comprehensive:
README.md  81) 
dblume Added instructions for newe...

dblume authored 1 year ago

README.md  82)     git ls-files -m | egrep ".(c|h)(pp)?$" | xargs clang-format-17 -style=file -i
dblume Add .clang-format

dblume authored 1 year ago

README.md  83) 
David Blume Added some documentation fo...

David Blume authored 3 years ago

README.md  84) ### Other IDEs
README.md  85) 
README.md  86) Look for the presence of their project files. They should work normally.
README.md  87) 
README.md  88) ## Current Features
David Blume first commit

David Blume authored 8 years ago

README     89) 
README     90) * Multiple directories for testing build systems and IDEs
README     91) * "make" essentially works.
README     92) 
David Blume Added some documentation fo...

David Blume authored 3 years ago

README.md  93) ## Is it any good?
David Blume Use Markdown in README.md

David Blume authored 8 years ago

README.md  94) 
README.md  95) [Yes](https://news.ycombinator.com/item?id=3067434).
README.md  96) 
David Blume Added some documentation fo...

David Blume authored 3 years ago

README.md  97) ## To Do
David Blume first commit

David Blume authored 8 years ago

README     98) 
README     99) * Compare make vs. cmake vs. autotools
David Blume Update the README

David Blume authored 8 years ago

README    100) * Experiment with ctags generation