This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| "************************************************************************** | |
| * Allowable characters: * | |
| * - a-z * | |
| * - A-Z * | |
| * - 0-9 * | |
| * - .+/\*~<>@%|&? * | |
| * - blank, tab, cr, ff, lf * | |
| * * | |
| * Variables: * | |
| * - variables must be declared before use * |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| |= in=@ | |
| ^- @p | |
| `@p`in |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| for c in Category.objects.all(): | |
| print "{cname}: {num_items} items".format(cname=c.name, num_items=c.annotate(num_items=Count('item'))[0].num_items) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // ========================== KeySnail Init File =========================== // | |
| // You can preserve your code in this area when generating the init file using GUI. | |
| // Put all your code except special key, set*key, hook, blacklist. | |
| // ========================================================================= // | |
| //{{%PRESERVE% | |
| plugins.options["tanything_opt.keymap"] = { | |
| "C-z" : "prompt-toggle-edit-mode", | |
| "SPC" : "prompt-next-page", | |
| "b" : "prompt-previous-page", |