Siafoo – the intersection of pastebin, help desk, version control, and social networking
Join Siafoo Now
or
Learn More
|
|
iCapsid
|
Articles
|
|
|
tricks | (4) |
|
|
tips | (3) |
|
|
classes | (2) |
|
|
decorators | (2) |
|
|
Firefox | (2) |
|
|
MooTools | (2) |
|
|
functions | (2) |
|
|
dictionaries | (1) |
|
|
python | (1) |
|
|
truthfulness | (1) |
|
|
tab focus | (1) |
|
|
select box | (1) |
|
|
substrings | (1) |
|
|
iterate | (1) |
|
|
MooTools 1.2 | (1) |
|
|
events | (1) |
|
|
how-to | (1) |
|
|
command-line option | (1) |
|
|
list operators | (1) |
|
|
lambda functions | (1) |
|
|
zip | (1) |
|
|
switch statements | (1) |
|
|
quotes | (1) |
|
|
list comprehensions | (1) |
|
|
nose | (1) |
|
|
backwards compatibility | (1) |
|
|
dictionary comprehensions | (1) |
|
|
generator expressions | (1) |
|
|
beforeunload | (1) |
|
|
reduce | (1) |
|
|
strings | (1) |
|
|
nosetests | (1) |
|
|
console | (1) |
|
|
underscore methods | (1) |
|
|
caching | (1) |
|
|
map | (1) |
|
|
filter | (1) |
|
|
reload | (1) |
|
|
debug | (1) |
|
|
browser compatibility | (1) |
|
|
type checking | (1) |
|
|
Python | (1) |
|
|
upgrade | (1) |
|
|
operator overloading | (1) |
|
|
python tricks | (1) |
Languages
|
|
HTML | (1) |
|
|
JavaScript | (2) |
|
|
Python | (6) |
| Showing 1 - 10 of 11 |
|
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.
Upgrading to MooTools 1.2 - Tips, Tricks, and Backwards Compatibility
about
JavaScript
from
David Isaacson
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 |
|
Showing 1 - 10 of 11 |