@syabro_chats в роли акына: что вижу то пою.
- Запускаю presync.io
- Web, tech, management.
Post #136
357

- 😁 8
MA @syabro_notes
Showing posts older than #137 · Back to latest





HOLIDAY2023Y
alias wip="git ci -am WIP -n"
alias revert_wip="git log -1 --pretty=%B | grep WIP > /dev/null && git reset --soft HEAD~1 && echo \"WIP reverted\""
git_rebase_develop(){
branch=`git symbolic-ref --short -q HEAD`
target_branch=$1
if [[ $target_branch == "" ]]; then; target_branch="develop"; fi
if [[ $branch == "master" ]] || [[ $branch == "develop" ]] || [[ $branch == "demo" ]]
then
echo "Can't do git_rebase_develop for $branch branch"
return 1
fi
git co $target_branch
git pull
git co $branch
git rebase $target_branch
}
wip
I'm a developer learning Rust.
I have a difficultiest to understand ownership and borrowing concept.
Act like a Rust tutor and provide me a step by step guide to learn it.
Every step should be detailed easy-understandable and should have, code example, explanation and a test task. Test task must be different from the code you provided in explanation
When I learn this concept, I should understand how to write code which is safe and efficient.
Go to next step when I say "next".







> sgpt --shell "Calculate total lines of code for py, js and ts files in current dir and deep; exclude node_modules and migrations folders; cloc installed; in result show only code column per file type; and show as table"
cloc --exclude-dir=node_modules,migrations --include-lang=python,javascript,typescript --csv --quiet . | awk -F, '{if ($2 == "Python" || $2 == "JavaScript" || $2 == "TypeScript") print $2","$5}' | column -t -s,
[E]xecute, [D]escribe, [A]bort: e
TypeScript 118007
JavaScript 108804
Python 38825
