Popular recipes by Jason Friedman http://code.activestate.com/recipes/users/4183835/popular/2013-07-07T04:09:34-07:00ActiveState Code RecipesPoker Hands (Python) 2013-07-07T04:09:34-07:00Jason Friedmanhttp://code.activestate.com/recipes/users/4183835/http://code.activestate.com/recipes/578589-poker-hands/ <p style="color: grey"> Python recipe 578589 by <a href="/recipes/users/4183835/">Jason Friedman</a> (<a href="/recipes/tags/cards/">cards</a>, <a href="/recipes/tags/deck/">deck</a>, <a href="/recipes/tags/poker/">poker</a>, <a href="/recipes/tags/shuffle/">shuffle</a>). Revision 5. </p> <p>Deal random hands and categorize them. See also <a href="http://code.activestate.com/recipes/415504/">recipe 415504</a>.</p> Parse profile (Python) 2012-10-12T23:40:55-07:00Jason Friedmanhttp://code.activestate.com/recipes/users/4183835/http://code.activestate.com/recipes/578280-parse-profile/ <p style="color: grey"> Python recipe 578280 by <a href="/recipes/users/4183835/">Jason Friedman</a> (<a href="/recipes/tags/parse/">parse</a>, <a href="/recipes/tags/profile/">profile</a>, <a href="/recipes/tags/shell/">shell</a>). Revision 3. </p> <pre class="prettyprint"><code>export VAR1=foo export VAR2=bar export VAR3=$VAR1$VAR2 export VAR4=${VAR1}$VAR2 export VAR5=${VAR1}indent export VAR6="text${VAR1} " # With embedded spaces and a comment export VAR7='${VAR4}' # Leave text within tics as-is </code></pre> <p>will be read as:</p> <pre class="prettyprint"><code>{'VAR1': 'foo', 'VAR2': 'bar', 'VAR3': 'foobar', 'VAR4': 'foobar', 'VAR5': 'fooindent', 'VAR6': 'textfoo ', 'VAR7': '${VAR4}'} </code></pre>