Popular recipes by Muhammad Alkarouri http://code.activestate.com/recipes/users/4049383/2010-10-09T22:29:42-07:00ActiveState Code RecipesConvert a transcript with Ansi escape sequences to HTML (Python) 2010-10-09T22:29:42-07:00Muhammad Alkarourihttp://code.activestate.com/recipes/users/4049383/http://code.activestate.com/recipes/577349-convert-a-transcript-with-ansi-escape-sequences-to/ <p style="color: grey"> Python recipe 577349 by <a href="/recipes/users/4049383/">Muhammad Alkarouri</a> (<a href="/recipes/tags/ansi/">ansi</a>, <a href="/recipes/tags/conversion/">conversion</a>, <a href="/recipes/tags/text/">text</a>). Revision 2. </p> <p>This is a stab at converting a transcript generated by the Unix <code>script</code> command that uses ANSI escape sequences, used to colour the terminal, to HTML.</p> Run function in separate process (Python) 2008-05-04T12:48:23-07:00Muhammad Alkarourihttp://code.activestate.com/recipes/users/4049383/http://code.activestate.com/recipes/511474-run-function-in-separate-process/ <p style="color: grey"> Python recipe 511474 by <a href="/recipes/users/4049383/">Muhammad Alkarouri</a> . Revision 3. </p> <p>This is a simple function that runs another function in a different process by forking a new process which runs the function and waiting for the result in the parent. This can be useful for releasing resources used by the function such as memory.</p>