Top-rated recipes by Tomas Nordin http://code.activestate.com/recipes/users/4189558/top/2016-09-18T20:39:20-07:00ActiveState Code RecipesDBF reader and writer -- selective fields and nullreplace (Python) 2016-09-18T20:39:20-07:00Tomas Nordinhttp://code.activestate.com/recipes/users/4189558/http://code.activestate.com/recipes/580696-dbf-reader-and-writer-selective-fields-and-nullrep/ <p style="color: grey"> Python recipe 580696 by <a href="/recipes/users/4189558/">Tomas Nordin</a> (<a href="/recipes/tags/database/">database</a>). </p> <p>This fork assumes a desire for limited selection of field names. With huge files this might be necessary on some machines.</p> <p>Also, assuming that the meaning of null in a dbf file means zero might be a mistake, so the fork adds an argument nullreplace as way to choose what to replace null with. Null is sometimes used to mean missing value. This change is decoupled from the selective names feature.</p> Spread sheet style column enumeration letter to number (Python) 2014-09-20T18:45:09-07:00Tomas Nordinhttp://code.activestate.com/recipes/users/4189558/http://code.activestate.com/recipes/578941-spread-sheet-style-column-enumeration-letter-to-nu/ <p style="color: grey"> Python recipe 578941 by <a href="/recipes/users/4189558/">Tomas Nordin</a> (<a href="/recipes/tags/conversion/">conversion</a>, <a href="/recipes/tags/excel/">excel</a>, <a href="/recipes/tags/libreoffice/">libreoffice</a>, <a href="/recipes/tags/python/">python</a>, <a href="/recipes/tags/spreadsheet/">spreadsheet</a>). </p> <p>A post-it suggestion on how to convert "Excel style" notation of columns to a number.</p> beep based alarm - command line utility (Python) 2014-10-25T22:29:10-07:00Tomas Nordinhttp://code.activestate.com/recipes/users/4189558/http://code.activestate.com/recipes/578953-beep-based-alarm-command-line-utility/ <p style="color: grey"> Python recipe 578953 by <a href="/recipes/users/4189558/">Tomas Nordin</a> (<a href="/recipes/tags/alarm/">alarm</a>, <a href="/recipes/tags/argparse/">argparse</a>, <a href="/recipes/tags/beep/">beep</a>, <a href="/recipes/tags/commandline/">commandline</a>). Revision 2. </p> <p>An alarm beeping on you when the eggs are boiled.</p> Odometer iterator (Python) 2014-09-27T22:35:47-07:00Tomas Nordinhttp://code.activestate.com/recipes/users/4189558/http://code.activestate.com/recipes/578944-odometer-iterator/ <p style="color: grey"> Python recipe 578944 by <a href="/recipes/users/4189558/">Tomas Nordin</a> (<a href="/recipes/tags/iterator/">iterator</a>, <a href="/recipes/tags/odometer/">odometer</a>, <a href="/recipes/tags/radix/">radix</a>). Revision 2. </p> <p>A suggestion of an odometer implementation. Each "roll" in the odometer is defined by the caller. It is a list holding any objects, only the length of the list is important.</p> <p>Can be good to have if something need to be tested in all possible combinations.</p> Cycling a sequence (Python) 2014-09-20T19:20:46-07:00Tomas Nordinhttp://code.activestate.com/recipes/users/4189558/http://code.activestate.com/recipes/578942-cycling-a-sequence/ <p style="color: grey"> Python recipe 578942 by <a href="/recipes/users/4189558/">Tomas Nordin</a> (<a href="/recipes/tags/cyclic_iterator/">cyclic_iterator</a>, <a href="/recipes/tags/generator/">generator</a>, <a href="/recipes/tags/iterable/">iterable</a>, <a href="/recipes/tags/iterator/">iterator</a>, <a href="/recipes/tags/python/">python</a>). </p> <p>A post-it function to cycle through some sequence. Better use itertools.cycle if for any iterable.</p> Pasting python data into a spread sheet (Python) 2014-09-16T15:49:07-07:00Tomas Nordinhttp://code.activestate.com/recipes/users/4189558/http://code.activestate.com/recipes/578933-pasting-python-data-into-a-spread-sheet/ <p style="color: grey"> Python recipe 578933 by <a href="/recipes/users/4189558/">Tomas Nordin</a> (<a href="/recipes/tags/clipboard/">clipboard</a>, <a href="/recipes/tags/spreadsheet/">spreadsheet</a>). Revision 3. </p> <p>A smooth way to paste data you are working with in python into a spreadsheet. Put into the system clipboard, select a cell and do ctrl-v (at least with ms office and libre-office).</p>