Skip to content

Instantly share code, notes, and snippets.

View yamert's full-sized avatar

Ilya yamert

  • Moscow
  • 04:30 (UTC +03:00)
View GitHub Profile
@yamert
yamert / salary.py
Created October 8, 2021 17:41
salary
on_hands_rub = 400000
curs_dollara = 72
on_hands_doll = on_hands_rub / (curs_dollara * 1.0)
tk_ip_koeff = 12.0 / 11.0
print("HANDS rub: {:.1f}".format(on_hands_rub))
print("HANDS doll: ${:.1f}".format(on_hands_doll))
print("TK GROSS rub: {:.1f}".format(on_hands_rub / 0.87))
@yamert
yamert / idea.properties
Created April 25, 2019 10:17
IntelliJ Idea, how to increase file limit (from 2.56 Mb default)
# https://stackoverflow.com/questions/23057988/file-size-exceeds-configured-limit-2560000-code-insight-features-not-availabl
# https://stackoverflow.com/questions/13578062/how-to-increase-ide-memory-limit-in-intellij-idea-on-mac/13581526#13581526
# Help -> Edit custom properties...
# size in Kb
idea.max.intellisense.filesize=10000
# size in Kb
idea.max.content.load.filesize=10000
multiple select
- Alt+drag => long cursor
- Alt+Shift + mouse click => many cursors
- Ctrl+G => select next same words
- Ctrl+Shift+G unselect
- Select all occurrences: Shift + Ctrl + Alt + J (Ctrl + Cmd + G for Mac OS X)
- Ctrl+Shift+J => join multiple lines with cursors at begins, to one string
https://stackoverflow.com/questions/1262737/intellij-idea-way-of-editing-multiple-lines
https://www.vojtechruzicka.com/intellij-idea-tips-tricks-multiple-cursors/
@yamert
yamert / Useful GIT aliases
Last active December 12, 2018 08:29
GIT aliases
alias.s=status
alias.ss=status -uno
alias.fp=fetch --prune
alias.vv=branch -avv
alias.br=branch -vv
alias.k=log --all --oneline --graph --decorate
alias.hhh=log --all --graph --format="%C(yellow) %h %C(white) %ce %s %m %N %C(green) %d"
alias.co=checkout
alias.dc=diff --cached
alias.puff=pull --ff-only