Skip to content

Instantly share code, notes, and snippets.

View pasoroki's full-sized avatar

Pavel Sorokin pasoroki

  • Microsoft
  • China, Suzhou
View GitHub Profile
@pasoroki
pasoroki / main.py
Last active September 3, 2017 09:08
Singleton sandbox
import logging
import types
from modules import module_helloworld
#####################################
# Bad
# from proxy_lib import ProxySingleton
# Good
from proxies.proxy_lib import ProxySingleton, get_modules, get_path, get_fake_module
@pasoroki
pasoroki / main.py
Last active September 3, 2017 08:50
singleton issues: main.py
import logging
import types
from modules import module_helloworld
#####################################
# Bad
# from proxy_lib import ProxySingleton
# Good
from proxies.proxy_lib import ProxySingleton, get_modules, get_path

Keybase proof

I hereby claim:

  • I am pasoroki on github.
  • I am pasoroki (https://keybase.io/pasoroki) on keybase.
  • I have a public key whose fingerprint is 740B 44FC 0AD9 2F80 2198 E849 C10C 5D1E 5AE2 5B69

To claim this, I am signing this object: