Hide
Siafoo – the intersection of pastebin, help desk, version control, and social networking Join Siafoo Now or Learn More
iCapsid
Home Items (28) Blog
Articles
Showing 1 - 10 of 11 Next Showing 1 - 10 of 11
Want to write shorter, cleaner code? Have an unfortunate situation where you need to fit as much as you can in one expression? Prefer a quick dose of hacks to spending the rest of your life...
You shouldn't type-check in Python, but if you do, know what method is best. We discuss the pros and cons of built-in functions 'type' and 'isinstance' and property '__class__'.
Need to override an operator in your Python class? Ever wonder what all those double-underscore class methods do? Here's your answer. Note that this is a work in progress, feel free to add to it...
Decorators modify functions. Beginning with the basics, learn how to use decorators in a variety of ways. Execute code when a function is parsed or called. Conditionally call functions and...
Using Nose to run unittests? Want to run the tests under different conditions? Learn how to add your own command-line options to nosetests with nose plugins.
MooTools is an awesome, lightweight Javascript library. The second major version (1.2) just came out and you want to upgrade, but the backwards-compatibility sucks. I've created a custom...
Use the javascript window.beforeunload event to warn your users before they navigate away from a page. You'll need to make sure that a 'legitimate' link (like a submit button) wasn't pressed and...
Learn the best ways to debug your Python code, or share tips that you've learned. Too lazy to write something? That's cool... at least give us some ideas at the bottom : )
Is your Firefox not allowing you to tab between all form fields or all elements? Or would you rather it didn't allow you to? The solution is to change the 'accessibility.tabfocus' preference.
Helped out by a site no one's ever heard of? Share it here.
Showing 1 - 10 of 11 Next Showing 1 - 10 of 11