Popular recipes tagged "meta:loc=207"http://code.activestate.com/recipes/tags/meta:loc=207/2014-12-24T23:24:09-08:00ActiveState Code RecipesHangman (Python)
2014-12-24T23:24:09-08:00Malcolm Jeremy Lewishttp://code.activestate.com/recipes/users/4191332/http://code.activestate.com/recipes/578990-hangman/
<p style="color: grey">
Python
recipe 578990
by <a href="/recipes/users/4191332/">Malcolm Jeremy Lewis</a>
.
</p>
<p>This is the finished version (No visuals though). First you'll want to create some words for you to play with. When playing with maximum memory, it can take a while to check, play, and exit in this application.</p>
Yet Another NamedTuple (Python)
2014-08-02T02:56:12-07:00Steven D'Apranohttp://code.activestate.com/recipes/users/4172944/http://code.activestate.com/recipes/578918-yet-another-namedtuple/
<p style="color: grey">
Python
recipe 578918
by <a href="/recipes/users/4172944/">Steven D'Aprano</a>
(<a href="/recipes/tags/shortcuts/">shortcuts</a>).
</p>
<p>Yet another look at Raymond Hettinger's excellent "namedtuple" factory. Unlike Raymond's version, this one minimizes the use of exec. In the original, the entire inner class is dynamically generated then exec'ed, leading to the bulk of the code being inside a giant string template. This version uses a regular inner class for everything except the __new__ method.</p>
Creating a daemon the Python way (Python)
2005-10-03T16:49:09-07:00Chad J. Schroederhttp://code.activestate.com/recipes/users/1760491/http://code.activestate.com/recipes/278731-creating-a-daemon-the-python-way/
<p style="color: grey">
Python
recipe 278731
by <a href="/recipes/users/1760491/">Chad J. Schroeder</a>
(<a href="/recipes/tags/threads/">threads</a>).
Revision 6.
</p>
<p>The Python way to detach a process from the controlling terminal and run it in the
background as a daemon.</p>
Pronouncable password generator (Tcl)
2008-02-03T15:35:46-08:00Rob Haeuslerhttp://code.activestate.com/recipes/users/4119868/http://code.activestate.com/recipes/544293-pronouncable-password-generator/
<p style="color: grey">
Tcl
recipe 544293
by <a href="/recipes/users/4119868/">Rob Haeusler</a>
.
</p>
<p>I wanted a GUI pronouncable password generator that was not Internet based, that would meet the password rules required by the various systems that I work with. I've used a basic python program (non-GUI) modified to tcl/tk.</p>
Boids Version 1.1 (Python)
2007-02-20T18:53:31-08:00Stephen Chappellhttp://code.activestate.com/recipes/users/2608421/http://code.activestate.com/recipes/502240-boids-version-11/
<p style="color: grey">
Python
recipe 502240
by <a href="/recipes/users/2608421/">Stephen Chappell</a>
(<a href="/recipes/tags/algorithms/">algorithms</a>).
</p>
<p>The code presented below is an update to the original
recipe presented on this web site. Several more
configuration options are presented at the top of
the file, and Rule 3 from the Boids algorithm is
correctly used in the update_velocity method.</p>
Povray for python (Python)
2003-06-13T21:22:18-07:00Simon Burtonhttp://code.activestate.com/recipes/users/860809/http://code.activestate.com/recipes/205451-povray-for-python/
<p style="color: grey">
Python
recipe 205451
by <a href="/recipes/users/860809/">Simon Burton</a>
(<a href="/recipes/tags/graphics/">graphics</a>).
</p>
<p>Here is a relatively simple framework for making povray files from your favourite programming language, python. It's good for creating structured/mathematical scenes and animations.</p>