Skip to content

Instantly share code, notes, and snippets.

@bellatrix988
Last active July 12, 2022 12:49
Show Gist options
  • Save bellatrix988/a67f6cc08149a3373548577b17adf38b to your computer and use it in GitHub Desktop.
Save bellatrix988/a67f6cc08149a3373548577b17adf38b to your computer and use it in GitHub Desktop.
Development triks
function rubucop_current_changes() {
current_branch=$(git branch --show-current)
git diff $branch_name develop --name-status | grep '\.rb$' | xargs rubocop
}
alias zshreload="source ~/.zshrc"

Triks and useful links

Cool schema editor - to build a block schema or UML-diagram. draw.io

Run rubocop on last modified files:
git ls-files -m | xargs ls -1 2>/dev/null | grep '\.rb$' | xargs rubocop
Run rubocop on new files in specific branch
git diff branch_name master --name-status --diff-filter=D | grep '\.rb$' | xargs rubocop
Markdown info

Github link

Intresting articles about programming

About boy scout rule

Realy nice article about OOP

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment