Popular recipes tagged "meta:loc=334"http://code.activestate.com/recipes/tags/meta:loc=334/2010-12-20T06:57:29-08:00ActiveState Code RecipesCommand Line Options and Args Hate'em? Me Too! (Python)
2010-06-03T19:16:43-07:00AJ. Mayorgahttp://code.activestate.com/recipes/users/4173476/http://code.activestate.com/recipes/577238-command-line-options-and-args-hateem-me-too/
<p style="color: grey">
Python
recipe 577238
by <a href="/recipes/users/4173476/">AJ. Mayorga</a>
(<a href="/recipes/tags/option/">option</a>, <a href="/recipes/tags/optionparser/">optionparser</a>, <a href="/recipes/tags/option_parsing/">option_parsing</a>).
Revision 5.
</p>
<p>I am all about trying to make development easier and reduce mundane tasks, especially
dealing with commandline args and getopt, OptParse, argparse sorry just not a fan. Argparse-cli
is really cool if you want low level control. I just got tired of writing tons of conditionals, labels, limited type handling, and having to do all of it over and over for every commandline project so help end the madness I wrote PyOpts. </p>
backtrace2line - stack traces with source file name and line numbers (Python)
2010-12-20T06:57:29-08:00Jean Brouwershttp://code.activestate.com/recipes/users/2984142/http://code.activestate.com/recipes/534147-backtrace2line-stack-traces-with-source-file-name-/
<p style="color: grey">
Python
recipe 534147
by <a href="/recipes/users/2984142/">Jean Brouwers</a>
(<a href="/recipes/tags/backtrace/">backtrace</a>, <a href="/recipes/tags/backtrace_symbols_fd/">backtrace_symbols_fd</a>, <a href="/recipes/tags/files/">files</a>, <a href="/recipes/tags/linux/">linux</a>, <a href="/recipes/tags/stack/">stack</a>, <a href="/recipes/tags/stacktrace/">stacktrace</a>).
Revision 3.
</p>
<p>This recipe reads a file containing stack traces from Linux' backtrace functions and extends each stack frame line with the source file name and line number. Usage and an example are included.</p>
Octabug, 3D to 2D transformation (Tcl)
2002-06-17T15:37:20-07:00andreas kuprieshttp://code.activestate.com/recipes/users/117230/http://code.activestate.com/recipes/133526-octabug-3d-to-2d-transformation/
<p style="color: grey">
Tcl
recipe 133526
by <a href="/recipes/users/117230/">andreas kupries</a>
(<a href="/recipes/tags/graphics/">graphics</a>, <a href="/recipes/tags/math/">math</a>).
</p>
<p>Origin: <a href="http://wiki.tcl.tk/3494" rel="nofollow">http://wiki.tcl.tk/3494</a>
Author: Keith Vetter</p>
<p>This is a fun little graphical animation which morphs an octahedron into an open cuboctahedron and back. Hidden within this code is actually a simple 3-d to 2-d transformation package.</p>