Skip to content

Instantly share code, notes, and snippets.

View ostrokach's full-sized avatar

Alexey Strokach ostrokach

View GitHub Profile
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCtT0QrCiTgJVfnysHTMqBXc1CQgilxKRK1gVcOkFDnlmfrMWQibshykpJv5/tzbW3gYwCYA1v4m+rNpgVnBwZviQlboZxOXiBNgZg0DOuSeTBi9IWy1Qbgz4VXfksOd3EfAYpo0c1FUqtAQNH2KLHpX6zwxNZPboQPgsUCq2FSJHy+L3VDuMSjgW56GI5AQumqY4hgn7erzlsoUH2FlIObZDRr+hGpyRdzZAHYOLUDNfAO8xbWps4GRmtcskCo/u6tbYo3o8EapKx6uUKm3xBrJ5iFoeSD/6s73RsWUEA1uSANtRZdIjRlh+/N6fg0o+PCoGJlhOmuKdjs99TchHBn
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
[style]
based_on_style = google
indent_width = 2
each_dict_entry_on_separate_line = false
split_complex_comprehension = true
split_before_expression_after_opening_paren = true
split_before_bitwise_operator = true
@ostrokach
ostrokach / profile_tests.py
Created July 10, 2019 21:06
Print run-time statistics for every test
import unittest
from cProfile import Profile
from pstats import Stats
def MyTest(unittest.TestCase):
def setUp(self):
"""init each test"""
self.pr = Profile()

Keybase proof

I hereby claim:

  • I am ostrokach on github.
  • I am ostrokach (https://keybase.io/ostrokach) on keybase.
  • I have a public key ASBp8rtdAewjz1m7cruevPdS7HKWwLKM1yDZFNAi0pOfdAo

To claim this, I am signing this object:

@ostrokach
ostrokach / syslog.py
Created January 9, 2016 03:26 — forked from nega0/syslog.py
a simple "syslog" lexer for pygments
## a simple "syslog" lexer for pygmentize
from pygments.lexer import RegexLexer, bygroups
from pygments.token import *
__all__ = ['SyslogLexer']
class SyslogLexer(RegexLexer):
name = 'Syslog'
aliases = ["syslog"]