-
Инсталирате нужните пакети:
pip install pyquery
или в някои версии на Ubuntu:
sudo apt-get install python-pyquery
| <iframe width="100%" height="520" frameborder="0" src="http://alekandreev.cartodb.com/viz/4db10ea8-dd27-11e4-8070-0e0c41326911/embed_map" allowfullscreen webkitallowfullscreen mozallowfullscreen oallowfullscreen msallowfullscreen></iframe> |
| <iframe src="https://www.google.com/maps/d/embed?mid=z4QiSwLUxGWI.kezVbbMc4oi0" width="100%" height="480"></iframe> |
| <iframe width="100%" height="520" frameborder="0" src="http://alekandreev.cartodb.com/viz/40eb2a54-dc5b-11e4-96f6-0e4fddd5de28/embed_map" allowfullscreen webkitallowfullscreen mozallowfullscreen oallowfullscreen msallowfullscreen></iframe> |
| blink { | |
| text-decoration: none; | |
| animation: fade-in-out 1s steps(1,end) infinite alternate; | |
| -webkit-animation: fade-in-out 1s steps(1,end) infinite alternate; | |
| } |
| import inspect | |
| def aspectize(arg): | |
| def decorate_method(func): | |
| func.__before = [] | |
| func.__after = [] | |
| def decorated(*args, **kwargs): | |
| for f in func.__before: | |
| res = f(*args, **kwargs) |
| /* | |
| A dynamic version for the 960.gs CSS grid framework. | |
| Usage: | |
| .mydiv { | |
| .grid(4); // 4 column box | |
| .grid(4, -2); // 4 column box, 2 column pull (negative left margin) | |
| .grid(8, 0, 2); // 8 column box, 2 column prefix (left padding) | |
| .gird(8, 0, 0, 3); // 8 column box, 3 column suffix (right badding) | |
| } |
| import json | |
| class Banjo: | |
| """ | |
| jQuery proxy for Python | |
| >>> from banjo import b, js | |
| >>> b('#home').toggle() | |
| $("#home").toggle() | |
| >>> b.map(b('p.blue'), js.myJsMapFunc) |
| function showUser(str) { | |
| // clear highlights | |
| $('.highlight').removeClass('highlight'); | |
| $('#txtHint').load('author-ajax.php?q=' + str, function() { | |
| $('#authors .' + str).addClass('highlight'); | |
| }); | |
| } | |
| /* |
| ====================================================================== | |
| ERROR: test_editing (pages.tests.PageEditorTest) | |
| ---------------------------------------------------------------------- | |
| Traceback (most recent call last): | |
| File "/Library/Python/2.6/site-packages/django/test/testcases.py", line 256, in __call__ | |
| self._pre_setup() | |
| File "/Library/Python/2.6/site-packages/django/test/testcases.py", line 223, in _pre_setup | |
| self._fixture_setup() | |
| File "/Library/Python/2.6/site-packages/django/test/testcases.py", line 502, in _fixture_setup | |
| Site.objects.clear_cache() |