Popular recipes tagged "meta:loc=171"http://code.activestate.com/recipes/tags/meta:loc=171/2014-12-22T23:38:38-08:00ActiveState Code RecipesMoney Game (Python)
2014-12-22T23:38:38-08:00Lance Spencehttp://code.activestate.com/recipes/users/4191386/http://code.activestate.com/recipes/578988-money-game/
<p style="color: grey">
Python
recipe 578988
by <a href="/recipes/users/4191386/">Lance Spence</a>
(<a href="/recipes/tags/classes/">classes</a>, <a href="/recipes/tags/games/">games</a>).
</p>
<p>I created this simple program as a possible start to something larger while I continue to learn Python. It's a simple program that can be used to help young kids learn to count change in US currency.</p>
Samuel F. B. Morse's Code (Python)
2012-12-06T04:20:31-08:00Stephen Chappellhttp://code.activestate.com/recipes/users/2608421/http://code.activestate.com/recipes/578364-samuel-f-b-morses-code/
<p style="color: grey">
Python
recipe 578364
by <a href="/recipes/users/2608421/">Stephen Chappell</a>
(<a href="/recipes/tags/code/">code</a>, <a href="/recipes/tags/demonstration/">demonstration</a>, <a href="/recipes/tags/morse/">morse</a>, <a href="/recipes/tags/morse_code/">morse_code</a>, <a href="/recipes/tags/morse_practice_oscillator/">morse_practice_oscillator</a>, <a href="/recipes/tags/sound/">sound</a>).
</p>
<p>Many people have heard of Morse['s] Code, and it still is a helpful skill to have in certain context, as advanced as technology has become. The following recipe shows two sample ways that it can be implemented and shows some diversity in how problems can be solved in Python or many other languages for that matter.</p>
Random Number Game (C)
2012-03-29T03:47:52-07:00Jacob A. Bridgeshttp://code.activestate.com/recipes/users/4181498/http://code.activestate.com/recipes/578088-random-number-game/
<p style="color: grey">
C
recipe 578088
by <a href="/recipes/users/4181498/">Jacob A. Bridges</a>
(<a href="/recipes/tags/c/">c</a>, <a href="/recipes/tags/game/">game</a>, <a href="/recipes/tags/guessing/">guessing</a>, <a href="/recipes/tags/number/">number</a>).
</p>
<p>An old game I created freshman year of college. For use on Windows OS only. (The code contains a few Windows system calls.)</p>
Bunch class created from attributes in class (Python)
2011-12-31T18:03:02-08:00Fabio Zadroznyhttp://code.activestate.com/recipes/users/4180406/http://code.activestate.com/recipes/577999-bunch-class-created-from-attributes-in-class/
<p style="color: grey">
Python
recipe 577999
by <a href="/recipes/users/4180406/">Fabio Zadrozny</a>
(<a href="/recipes/tags/attributes/">attributes</a>, <a href="/recipes/tags/bunch/">bunch</a>, <a href="/recipes/tags/metaclass/">metaclass</a>).
Revision 3.
</p>
<p>Provide a way to construct class __init__, __slots__, __eq__, __ne__, __repr__ for the class and makes explicit which attributes each instance will have (and providing defaults).</p>
<p>The __main__ session shows an example of how it should be used.</p>
tor socket monkeypatch (Python)
2007-06-21T08:10:06-07:00Andrew Moffathttp://code.activestate.com/recipes/users/2979564/http://code.activestate.com/recipes/521921-tor-socket-monkeypatch/
<p style="color: grey">
Python
recipe 521921
by <a href="/recipes/users/2979564/">Andrew Moffat</a>
(<a href="/recipes/tags/network/">network</a>).
Revision 2.
</p>
<p>patches socket to tunnel through a tor server either by socks4a or socks5 (tor-resolve required for socks5), being careful not to leak dns requests</p>
<p>pyconstruct required, <a href="http://construct.wikispaces.com/" rel="nofollow">http://construct.wikispaces.com/</a></p>