Install as a separate pkg for now checkinstall not working, installing simply from netatalk3.make install.
But do not try to install it with standart netatalk package at the same time.
sudo apt-get remove netatalk| # nosetests --with-isolation isolation.py | |
| class T1(unittest.TestCase): | |
| def a_test_set_global_val(self): | |
| import math | |
| math.abbb = 12 | |
| self.assertTrue(math.abbb == 12) | |
| def b_test_get_global_val_in_same_testcase(self): | |
| import math |
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <title>CORS test</title> | |
| <script src="//ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script> | |
| <style type="text/css"> | |
| body { | |
| font-family: Lucida, sans-serif; | |
| } | |
| form.options, |
| <?xml version="1.0" encoding="UTF-8"?> | |
| <scheme name="Monokai-maizy-edition" version="1" parent_scheme="Default"> | |
| <option name="LINE_SPACING" value="1.0" /> | |
| <option name="EDITOR_FONT_SIZE" value="16" /> | |
| <option name="CONSOLE_FONT_NAME" value="Monaco" /> | |
| <option name="CONSOLE_FONT_SIZE" value="12" /> | |
| <option name="EDITOR_FONT_NAME" value="Lucida Sans Typewriter" /> | |
| <colors> | |
| <option name="CARET_COLOR" value="f8f8f0" /> | |
| <option name="CARET_ROW_COLOR" value="25241a" /> |
| # _*_ coding: utf-8 _*_ | |
| from copy import deepcopy | |
| import json | |
| from lxml import etree | |
| from frontik import make_qs | |
| class QueryStringDict(dict): | |
| """ | |
| dict-like object for url query string building. |
| # coding: utf-8 | |
| from cStringIO import StringIO | |
| def test_buf(i): | |
| buf = StringIO() | |
| for v in i: | |
| buf.write(v) | |
| return buf.getvalue() | |
| def test_join(i): |
| # python 2.6, 2.7, ... 3.3 ... | |
| def __a(p): | |
| print('a ' + p) | |
| class A(object): | |
| def __b(self): | |
| print('A.__b') |
| # coding: utf-8 | |
| # задача: | |
| # создать список сумматоров (функций одного параметра x), возвращающих: | |
| # x + 10 + i | |
| # где i от 1 до 4 | |
| # lambda | |
| rlambda = [] | |
| for i in range(5): |
| var i = 7 | |
| def infStream(): Stream[Int] = i #:: infStream() | |
| val stream = infStream() | |
| println(stream.head) | |
| // 7 |
| # _*_ coding: utf-8 _*_ | |
| from collections import OrderedDict | |
| class LimitedDict(OrderedDict): | |
| def __init__(self, limit): | |
| super(LimitedDict, self).__init__() | |
| self.limit = limit |