Popular recipes tagged "meta:loc=160"http://code.activestate.com/recipes/tags/meta:loc=160/2011-08-19T01:39:03-07:00ActiveState Code RecipesPython Gpa and Cgpa Calculator (Python)
2011-07-20T19:28:27-07:00abhijeet vaidyahttp://code.activestate.com/recipes/users/4178141/http://code.activestate.com/recipes/577800-python-gpa-and-cgpa-calculator/
<p style="color: grey">
Python
recipe 577800
by <a href="/recipes/users/4178141/">abhijeet vaidya</a>
(<a href="/recipes/tags/calculator/">calculator</a>, <a href="/recipes/tags/cgpa/">cgpa</a>, <a href="/recipes/tags/gpa/">gpa</a>, <a href="/recipes/tags/python/">python</a>).
</p>
<p>This is a python code to calculate the gpa and cgpa by abhijeet vaidya</p>
Volume Slicer (C++)
2011-08-19T01:39:03-07:00Zahari Dichevhttp://code.activestate.com/recipes/users/4179021/http://code.activestate.com/recipes/577849-volume-slicer/
<p style="color: grey">
C++
recipe 577849
by <a href="/recipes/users/4179021/">Zahari Dichev</a>
.
</p>
<p>This code reads volume data from a file and puts it into a scalar data structure for further use , it can also save out different slices as png files</p>
LRU and LFU cache decorators (Python)
2010-08-01T01:19:23-07:00Raymond Hettingerhttp://code.activestate.com/recipes/users/178123/http://code.activestate.com/recipes/498245-lru-and-lfu-cache-decorators/
<p style="color: grey">
Python
recipe 498245
by <a href="/recipes/users/178123/">Raymond Hettinger</a>
(<a href="/recipes/tags/shortcuts/">shortcuts</a>).
Revision 6.
</p>
<p>One-line decorator call adds caching to functions with hashable arguments and no keyword arguments. When the maximum size is reached, the least recently used entry or least frequently used entry is discarded -- appropriate for long-running processes which cannot allow caches to grow without bound. Includes built-in performance instrumentation.</p>
Dependency Injection The Python Way (Python)
2007-03-10T11:26:16-08:00Zoran Isailovskihttp://code.activestate.com/recipes/users/2400454/http://code.activestate.com/recipes/413268-dependency-injection-the-python-way/
<p style="color: grey">
Python
recipe 413268
by <a href="/recipes/users/2400454/">Zoran Isailovski</a>
(<a href="/recipes/tags/oop/">oop</a>).
Revision 9.
</p>
<p>Sample Pythonic Inversion-of-Control Pseudo-Container.</p>
Dependency Injection The Python Way (Python)
2006-04-16T06:50:16-07:00Zoran Isailovskihttp://code.activestate.com/recipes/users/2400454/http://code.activestate.com/recipes/413267-dependency-injection-the-python-way/
<p style="color: grey">
Python
recipe 413267
by <a href="/recipes/users/2400454/">Zoran Isailovski</a>
(<a href="/recipes/tags/oop/">oop</a>).
Revision 3.
</p>
<p>:( Somehow this recipe arived twice. Please go to <a href="http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/413268" rel="nofollow">http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/413268</a> :o Dear editors, please remove this one</p>
Turing Machine Simulator (Python)
2003-12-03T16:12:17-08:00Ryan Phillipshttp://code.activestate.com/recipes/users/99373/http://code.activestate.com/recipes/252486-turing-machine-simulator/
<p style="color: grey">
Python
recipe 252486
by <a href="/recipes/users/99373/">Ryan Phillips</a>
(<a href="/recipes/tags/algorithms/">algorithms</a>).
</p>
<p>A Turing Machine Simulator that allows an arbitrary machine to be loaded. Words (represented as strings) can be ran against the simulator producing a response: Accept or Crash.</p>
Converting a list of equal length lists into XML (Python)
2002-07-21T11:35:13-07:00Julius Welbyhttp://code.activestate.com/recipes/users/118679/http://code.activestate.com/recipes/66003-converting-a-list-of-equal-length-lists-into-xml/
<p style="color: grey">
Python
recipe 66003
by <a href="/recipes/users/118679/">Julius Welby</a>
(<a href="/recipes/tags/xml/">xml</a>).
Revision 10.
</p>
<p>This module takes a list of equal length lists and converts it into XML.</p>
<p>If the first sublist is a list of headings, these are used to form the element names of the rest of the data, or these can be defined in the function call. Root and "row" elements can be named if required.</p>