Skip to content

Instantly share code, notes, and snippets.

View itsx's full-sized avatar

Tom Bartek itsx

  • Flat Zone
View GitHub Profile
@itsx
itsx / python_style2.py
Last active August 6, 2018 08:58
Python style: function call vs. line lenght (PEP8, readability etc)
# style A
def create_local_id(self, item):
field_dict = OrderedDict(
[('developer', '-'),
('project', '-'),
('building', ''),
('number', '')])
return create_local_id(item, field_dict)
@itsx
itsx / python_style.py
Last active August 6, 2018 08:57
Python style: function call vs line lenght (PEP8 etc)
# style 1
def test_create_localID():
field_dict = OrderedDict([('developer', '-'), ('project', '-'), ('building', ''), ('number', '')])
item = create_item('Skanska', 'Přibyslavice', 'A', '505')
local_id = create_local_id(item, field_dict)
assert local_id == 'skanska_pribyslavice_a_505'
print(local_id)
# style 2
# Vim.gitignore
# ------------------------------------------
# Swap
[._]*.s[a-v][a-z]
[._]*.sw[a-p]
[._]s[a-v][a-z]
[._]sw[a-p]
# Session
Session.vim
@itsx
itsx / gist:6b063b89ed6a293929813c8cc9678f52
Created April 20, 2018 14:08
fetch new remote branch
git checkout --track origin/daves_branch