Most viewed recipes tagged "counter"http://code.activestate.com/recipes/tags/counter/views/2013-08-02T03:15:12-07:00ActiveState Code RecipesSelf Counter (Python) 2013-08-02T03:15:12-07:00Stephen Chappellhttp://code.activestate.com/recipes/users/2608421/http://code.activestate.com/recipes/578621-self-counter/ <p style="color: grey"> Python recipe 578621 by <a href="/recipes/users/2608421/">Stephen Chappell</a> (<a href="/recipes/tags/counter/">counter</a>). </p> <p>This script was written as a revision of <a href="http://code.activestate.com/recipes/577456/">recipe 577456</a> as a variation on a theme.</p> A DEMO Frequency Counter With A Difference - Text Mode Python. (Python) 2011-11-21T18:00:43-08:00Barry Walkerhttp://code.activestate.com/recipes/users/4177147/http://code.activestate.com/recipes/577955-a-demo-frequency-counter-with-a-difference-text-mo/ <p style="color: grey"> Python recipe 577955 by <a href="/recipes/users/4177147/">Barry Walker</a> (<a href="/recipes/tags/audio/">audio</a>, <a href="/recipes/tags/counter/">counter</a>, <a href="/recipes/tags/demo/">demo</a>, <a href="/recipes/tags/frequency/">frequency</a>, <a href="/recipes/tags/linux/">linux</a>, <a href="/recipes/tags/sound/">sound</a>). </p> <p>Hi experts...</p> <p>I think that this is a first... ;o)</p> <p>Another kids level project to do for yourselves...</p> <p>This is yet another Python DEMO to show the power of the sound card using Linux as an audio frequency counter.</p> <p>It is a kids level project that uses the sound card as an input through the microphone socket to measure up to &gt;3500Hz from a symmetrical waveform, sine square or triangle. See the comments inside the code for more details...</p> <p>The only external hardware required is a test lead; oh my, this is technical stuff... ;o)</p> <p>This is for Python 2.x.x, (probably even down to 1.5.2) but it would be just as easy to make it work on 3.x.x. I've already done it......</p> <p>......But I'll let the big guns do that for you...</p> <p>Enjoy finding simple solutions to often VERY difficult problems...</p> <p>Be aware of word wrapping etc...</p> <p>Bazza, G0LCU...</p> Extension to Python 3 Counter class (Python) 2010-08-18T21:02:41-07:00Paddy McCarthyhttp://code.activestate.com/recipes/users/398009/http://code.activestate.com/recipes/577362-extension-to-python-3-counter-class/ <p style="color: grey"> Python recipe 577362 by <a href="/recipes/users/398009/">Paddy McCarthy</a> (<a href="/recipes/tags/bag/">bag</a>, <a href="/recipes/tags/counter/">counter</a>, <a href="/recipes/tags/multiset/">multiset</a>, <a href="/recipes/tags/python/">python</a>). Revision 3. </p> <p>Adds symmetric difference and cartesian product to the Counter class. I had a use case for the former and Raymond H. asked about the latter so I coded the latter from its Wikipedia description.</p> External Counter (Python) 2010-11-07T03:25:34-08:00Stephen Chappellhttp://code.activestate.com/recipes/users/2608421/http://code.activestate.com/recipes/577456-external-counter/ <p style="color: grey"> Python recipe 577456 by <a href="/recipes/users/2608421/">Stephen Chappell</a> (<a href="/recipes/tags/counter/">counter</a>). </p> <p>Written as a tribute to <a href="http://code.activestate.com/recipes/440636/">recipe 440636</a>, this newest version is considerably reworked.</p> Page Counter (Python) 2012-07-02T22:41:43-07:00Stephen Chappellhttp://code.activestate.com/recipes/users/2608421/http://code.activestate.com/recipes/578184-page-counter/ <p style="color: grey"> Python recipe 578184 by <a href="/recipes/users/2608421/">Stephen Chappell</a> (<a href="/recipes/tags/achive/">achive</a>, <a href="/recipes/tags/cgi/">cgi</a>, <a href="/recipes/tags/counter/">counter</a>, <a href="/recipes/tags/old/">old</a>, <a href="/recipes/tags/page/">page</a>). </p> <p>This page counter was a CGI experiment in what it would take to implement such a simple concept. This is committed for archival to be run under Python 2.5 or later versions.</p>