Useful one liners - GitHub Gist
# log a command to console and to 2 files separately stdout and stderr ... # count how many times a string appears in a (source code) tree. $ grep -or ...
# log a command to console and to 2 files separately stdout and stderr ... # count how many times a string appears in a (source code) tree. $ grep -or ...
proc.py turns Python source files into readable, navigable documentation. Input files can be a mix of Markdown and Python, processed in the order given. When processing a Python file: Top-level string literals are rendered as prose via pandoc/markdown.
Python String API. GitHub Gist: instantly share code, notes, and snippets.
The code examples and direct quotes are all from Raymond's talk. I've reproduced them here for my own edification and the hopes that others will find them as handy as I have! Looping over a range of numbers.
yield token[1:4]. def get_comment_blocks(source):. """Parse Python source code and yield a tuple of comment string,. start and end for each comment. *source ...
The class file has been generated as bytecode, so there is no original Java source file. I'm used to seeing VerifyErrors when offsets don't line up, but in this case, they all look fine to me. I've tried using the ObjectWeb class verification tool - it doesn't report any problems.
Some useful functions for interacting with Java web services from Python. """ def make_file_java_byte_array_compatible(file_obj):. """ Reads in a file ...
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters.
Sep 18, 2021 ... python3 file.py for mac / linux (because python 2 exist in them) ... string course[:] # "python programming" | whole string. Escape ...
The following is actually a hexdump of the binary source code. c7 3c 2a ... documentID=cuj9505wittenbe&pgno=1">Listing 1</a>} @*A Simple Example. This ...
commands. GitHub Gist: instantly share code, notes, and snippets.