Skip to content

Instantly share code, notes, and snippets.

View zyga's full-sized avatar
🏠
Working from home

Zygmunt Bazyli Krynicki zyga

🏠
Working from home
View GitHub Profile
@zyga
zyga / example.py
Created September 3, 2014 17:43
type() bug?
class NS:
PASSTHRU = frozenset(('__name__', '__qualname__', '__doc__', '__module__'))
def __init__(self, data=None):
if data is None:
data = {}
self.data = data
def __setitem__(self, name, value):
@zyga
zyga / keybase.md
Created August 22, 2014 16:35
keybase.md

Keybase proof

I hereby claim:

  • I am zyga on github.
  • I am zyga (https://keybase.io/zyga) on keybase.
  • I have a public key whose fingerprint is B76C ED9B 45CA F155 7D27 1A6A 2894 E93A 28C6 7B47

To claim this, I am signing this object:

@zyga
zyga / dir-scanner
Created June 4, 2014 19:56
Directory scanner / hash collector
#!/usr/bin/env python3
#
# Copyright (c) Zygmunt Krynicki
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
# 1. Redistributions of source code must retain the above copyright
# notice, this list of conditions and the following disclaimer.