Skip to content

Instantly share code, notes, and snippets.

View kne42's full-sized avatar
👩‍💻
doing a thing

Kira Evans kne42

👩‍💻
doing a thing
View GitHub Profile
@kne42
kne42 / verbatim.md
Created August 27, 2017 20:18
Getting Full Command Line with Bash

Preface

Sometimes you need the input exactly as written - for example if you want to be able to tell the difference between bar and b"a"r.

The following is a workaround/hack to retrieve the full command that executed your script.

Step 1

Rename your script to add a leading underscore to it. For example, foo becomes _foo.

Step 2

Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@kne42
kne42 / README.md
Last active August 6, 2018 23:10
Import Interception
# test/__init__.py
import numpy
# test/numpy/__init__.py
from . import mymodule
@kne42
kne42 / Scratch.ipynb
Last active December 10, 2018 03:04
delayed updates
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@kne42
kne42 / List.ipynb
Last active February 26, 2019 19:19
fancy lists
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@kne42
kne42 / undo_redo.ipynb
Created August 2, 2019 23:31
undo/redo
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.