JSHint is a community-driven tool to detect errors and potential problems in JavaScript code and to enforce your team's coding conventions. It is very flexible so you can easily adjust it to your particular coding guidelines and the environment you expect your code to execute in.
JSHint is an open-source project that is supported and maintained by the JavaScript developer community. The source code is available on GitHub.
(thing,) = stuff
codepad.org is an online compiler/interpreter, and a simple collaboration tool.
Paste your code below, and codepad will run it and give you a short URL you can use to share it in chat or email.
This tutorial discusses various techniques for using generator functions and generator expressions in the context of systems programming. This topic loosely includes files, file systems, text parsing, network programming, and programming with threads.
You can make a more compact implementations with help of the reduce builtin function:
def rec_getattr(obj, attr):
return reduce(getattr, attr.split(”.”), obj)
I think I'd agree with most of the points.
Lightweight code search for perfectionists with deadlines
Interesting point. I guess I'm only using about 5% of Python's standard library on a daily basis.
What's a good Python code base?
worked for me. use at your own risk.
base class for contact forms that notifiy admins/staff after submission
use str.partition() instead of str.split()[0]