Skip to content

Instantly share code, notes, and snippets.

Nemec nemec

Block or report user

Report or block nemec

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View keybase.md

Keybase proof

I hereby claim:

  • I am nemec on github.
  • I am nemec (https://keybase.io/nemec) on keybase.
  • I have a public key ASCqm6e26k5vfpweED4KRb96LTVkUZHIzaMb6388G-rv0Qo

To claim this, I am signing this object:

@nemec
nemec / pathlib.cs
Last active Dec 28, 2015
PathLib Sample
View pathlib.cs
// Example showing the utility of
// https://github.com/nemec/pathlib
// 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!
View gist:1522706
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']
You can’t perform that action at this time.