Skip to content

Instantly share code, notes, and snippets.

View adw0rd's full-sized avatar
:octocat:
I may be slow to respond.

Mikhail Andreev adw0rd

:octocat:
I may be slow to respond.
View GitHub Profile
@adw0rd
adw0rd / report_analysis.py
Last active January 24, 2019 22:15
merge or not
def _make_shift_statistic(self):
"""Make result and persent statistic by shift.
"""
result = self._give_by_shift()
result.pop('rock_mass', None)
return self.statistic(
result,
'Повахтовый выход, %',
'Повахтовая добыча м\u00B3'
)
class Dad:
def print_shit(self, shit):
print(shit)
class Son(Dad):
def some_function(self):
def mini_function(word):
@adw0rd
adw0rd / grandpa.py
Last active November 22, 2018 19:44
Inherentsy issue
class Grandpa:
def print_some_shit(self, item):
print(item)
class Dad(Grandpa):
def __init__(self):
super().__init__()
self.shit = 'hello'
class Child(Dad):
#!/usr/bin/env python
#
# Copyright 2012 Patrick Hetu <patrick.hetu@gmail.com>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,