Popular recipes tagged "checker"http://code.activestate.com/recipes/tags/checker/2014-09-16T22:27:04-07:00ActiveState Code RecipesPerfect Square Checker (Python) 2014-09-10T02:21:27-07:00Ethan Hannhttp://code.activestate.com/recipes/users/4190746/http://code.activestate.com/recipes/578931-perfect-square-checker/ <p style="color: grey"> Python recipe 578931 by <a href="/recipes/users/4190746/">Ethan Hann</a> (<a href="/recipes/tags/check/">check</a>, <a href="/recipes/tags/checker/">checker</a>, <a href="/recipes/tags/math/">math</a>, <a href="/recipes/tags/mathematics/">mathematics</a>, <a href="/recipes/tags/root/">root</a>, <a href="/recipes/tags/square/">square</a>). </p> <p>This program will take input from the user and either check if a number is a perfect square or square a number, depending on user's choice.</p> A Fun Perfect Square Checker Using Integer Arithmetic Only... ;o) (Bash) 2014-09-16T22:27:04-07:00Barry Walkerhttp://code.activestate.com/recipes/users/4177147/http://code.activestate.com/recipes/578934-a-fun-perfect-square-checker-using-integer-arithme/ <p style="color: grey"> Bash recipe 578934 by <a href="/recipes/users/4177147/">Barry Walker</a> (<a href="/recipes/tags/arithmetic/">arithmetic</a>, <a href="/recipes/tags/bash/">bash</a>, <a href="/recipes/tags/check/">check</a>, <a href="/recipes/tags/checker/">checker</a>, <a href="/recipes/tags/cygwin/">cygwin</a>, <a href="/recipes/tags/macbook_pro/">macbook_pro</a>, <a href="/recipes/tags/math/">math</a>, <a href="/recipes/tags/mathematics/">mathematics</a>, <a href="/recipes/tags/perfect/">perfect</a>, <a href="/recipes/tags/root/">root</a>, <a href="/recipes/tags/square/">square</a>). </p> <p>A recent Python upload here gave me the inspiration to do a bash version... This is a little tongue-in-cheek but an enjoyable bit of fun.</p> <p>It took around 11 seconds to prove 90000000000 had a perfect square of 300000...</p> <p>It is a stand alone program and has a degree of INPUT error correction...</p> <p>It was done on a MacBook Pro, OSX 10.7.5, default bash terminal and should work on Linux flavours but it is untested...</p> <p>Enjoy finding simple solutions to often very difficult problems...</p> <p>Bazza...</p> Simple Python Checker (Python) 2012-01-24T21:37:33-08:00Thomas Lehmannhttp://code.activestate.com/recipes/users/4174477/http://code.activestate.com/recipes/578023-simple-python-checker/ <p style="color: grey"> Python recipe 578023 by <a href="/recipes/users/4174477/">Thomas Lehmann</a> (<a href="/recipes/tags/analyse/">analyse</a>, <a href="/recipes/tags/analyze/">analyze</a>, <a href="/recipes/tags/checker/">checker</a>, <a href="/recipes/tags/code/">code</a>, <a href="/recipes/tags/python/">python</a>, <a href="/recipes/tags/simple/">simple</a>). Revision 2. </p> <p><strong>Why this recipe?</strong>:</p> <ul> <li>pylint is great but I does not support newer python versions.</li> <li>I intended to write an own more simple parser recognizing that Python is doing the job for me and so I started to learn - a little - how to use AST.</li> </ul> <p><strong>In scope (for this recipe)</strong>:</p> <ul> <li>scanning a single python file displaying warnings and errors when breaking rules.</li> <li>easy to maintain and easy extensible.</li> <li>reporting messages in a way - when displayed in an editor - you can click on them to jump to the location for the relating message.</li> <li>Lines of code means: without blanks (later: also without comments)</li> </ul> <p><strong>Out of scope (for this recipe)</strong>:</p> <ul> <li>For the recipe the folder/path support would break my limits. This include also the possible limits for this.</li> <li>Checking for comments (SIngle line comments, block comments, checking for parameter documentation)</li> </ul> <p><strong>Future:</strong></p> <ul> <li>I'm thinking about putting this on a project base location (issue tracker, versioning, ...).</li> <li>Of course same free license.</li> <li>Providing a link here.</li> <li>Checking for comments to handle further limits (LOC/COM, COM, checking for tags vs. parameters).</li> <li>Allow to handle a path/folder with Python files (another statistic output)</li> </ul> TCP Port Checker (Python) 2011-06-24T09:53:28-07:00Boubakrhttp://code.activestate.com/recipes/users/4176416/http://code.activestate.com/recipes/577769-tcp-port-checker/ <p style="color: grey"> Python recipe 577769 by <a href="/recipes/users/4176416/">Boubakr</a> (<a href="/recipes/tags/checker/">checker</a>, <a href="/recipes/tags/port/">port</a>, <a href="/recipes/tags/tcp/">tcp</a>). </p> <p>a simple TCP Port Checker using socket !</p> Configurable password generator/checker (Python) 2008-11-10T01:50:54-08:00Dario Lopez-Kästenhttp://code.activestate.com/recipes/users/4167913/http://code.activestate.com/recipes/576561-configurable-password-generatorchecker/ <p style="color: grey"> Python recipe 576561 by <a href="/recipes/users/4167913/">Dario Lopez-Kästen</a> (<a href="/recipes/tags/checker/">checker</a>, <a href="/recipes/tags/generator/">generator</a>, <a href="/recipes/tags/pasword/">pasword</a>, <a href="/recipes/tags/policy/">policy</a>). Revision 2. </p> <p>Yet another password generator module. This module contains utility functions for both generating and checking passwords in accordance to a (policy).</p> <p>Default Password Properties Policy:</p> <ul> <li>Minimum Password lenght is 8 tokens</li> <li>At least four unique tokens</li> <li>At least four character tokens</li> <li>At least one number token</li> <li>At least one special character token</li> </ul>