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
| def deep_dict_merge(a, b): | |
| """ | |
| Объединение словарей, которые могут содержать внутри | |
| себя другие словари. При совпадении ключей приоритет | |
| имеет словарь b (предполагается, что он содержит более актуальные данные). | |
| :param a: dict | |
| :param b: dict | |
| >>> a = {1: {'a': 'A'}, 2:{'b': 'B'}} | |
| >>> b = {2:{'c': 'C'}, 3: {'d': 'D'}} |
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
| from copy import copy | |
| class LazyDict(dict): | |
| """ | |
| A dict class with default value for unfound keys | |
| >>> ldict = LazyDict(0) | |
| >>> ldict | |
| {} |
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
| root@EVBYMINSD4C73:/# sudo /edx/bin/update edx-platform master | |
| /edx/app/edx_ansible/venvs/edx_ansible/bin/python: /usr/local/lib/libcrypto.so.1.0.0: no version information available (required by /edx/app/edx_ansible/venvs/edx_ansible/bin/python) | |
| /edx/app/edx_ansible/venvs/edx_ansible/bin/python: /usr/local/lib/libssl.so.1.0.0: no version information available (required by /edx/app/edx_ansible/venvs/edx_ansible/bin/python) | |
| [WARNING]: It is unneccessary to use '{{' in loops, leave variables in loop | |
| expressions bare. | |
| PLAY [Deploy edxapp] ********************************************************** | |
| GATHERING FACTS *************************************************************** |
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
| package ; | |
| import haxe.ds.StringMap; | |
| import haxe.macro.Context; | |
| import haxe.macro.Expr; | |
| import haxe.macro.Printer; | |
| import haxe.macro.Type.ClassType; | |
| import neko.Lib; | |
| using haxe.macro.ExprTools; |