Skip to content

Instantly share code, notes, and snippets.

nemec /
Last active December 8, 2022 08:07
def __main__():
print("hello world")

Keybase proof

I hereby claim:

  • I am nemec on github.
  • I am nemec ( on keybase.
  • I have a public key ASCqm6e26k5vfpweED4KRb96LTVkUZHIzaMb6388G-rv0Qo

To claim this, I am signing this object:

nemec / pathlib.cs
Last active December 28, 2015 07:09
PathLib Sample
// Example showing the utility of
// Given an input and output directory, zip the input directory
// and drop it into the output directory. The zip file should
// have the same name as the input directory (plus .zip extension)
var dirToZip = new PureNtPath(@"C:\Users\Admin\MyPhotos");
// These work too, paths are normalized when created from strings!
def _as(var, ident):
import inspect
cur_frame = inspect.currentframe()
outer_locals = inspect.getouterframes(cur_frame)[1][0].f_locals
outer_locals[ident] = var
return var
if __name__ == "__main__":
d = ['a', 'b']