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
| const info = {}; | |
| info.name = document.querySelector( | |
| 'div.n-product-summary__headline div.n-title__text h1' | |
| ).innerText; | |
| info.features = Array.prototype.map.call( | |
| document.querySelectorAll('.n-product-spec-list li'), | |
| child => { | |
| const [name, quantity] = child.innerText.split(':'); | |
| return { name, quantity }; | |
| } |
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
| { | |
| "files.autoSave": "onFocusChange", | |
| "editor.formatOnSave": true, | |
| "vetur.format.defaultFormatterOptions": { | |
| "js-beautify-html": { | |
| "wrap_attributes": "force-expand-multiline" | |
| } | |
| }, | |
| "terminal.integrated.shell.windows": "C:\\Windows\\System32\\cmd.exe", | |
| "git.autofetch": true, |
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
| { | |
| "swagger":"2.0", | |
| "info":{ | |
| "version":"1.0.0", | |
| "title":"Swagger Sample App" | |
| }, | |
| "host":"localhost:8069", | |
| "basePath":"/api/v1/test", | |
| "schemes":[ | |
| "http" |
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
| { | |
| "swagger":"2.0", | |
| "info":{ | |
| "version":"1.0.0", | |
| "title":"Swagger Sample App" | |
| }, | |
| "host":"localhost:8069", | |
| "basePath":"/api/v1/test", | |
| "schemes":[ | |
| "http" |
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
| @classmethod | |
| def binary_content(cls, xmlid=None, model='ir.attachment', id=None, field='datas', | |
| unique=False, filename=None, filename_field='datas_fname', download=False, | |
| mimetype=None, default_mimetype='application/octet-stream', | |
| access_token=None, env=None): | |
| """ Get file, attachment or downloadable content | |
| If the ``xmlid`` and ``id`` parameter is omitted, fetches the default value for the | |
| binary field (via ``default_get``), otherwise fetches the field for | |
| that precise record. | |
| :param str xmlid: xmlid of the record |
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
| @classmethod | |
| def binary_content(cls, xmlid=None, model='ir.attachment', id=None, field='datas', | |
| unique=False, filename=None, filename_field='datas_fname', download=False, | |
| mimetype=None, default_mimetype='application/octet-stream', | |
| access_token=None, related_id=None, access_mode=None, env=None): | |
| """ Get file, attachment or downloadable content | |
| If the ``xmlid`` and ``id`` parameter is omitted, fetches the default value for the | |
| binary field (via ``default_get``), otherwise fetches the field for | |
| that precise record. | |
| :param str xmlid: xmlid of the record |
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
| { | |
| "error": { | |
| "data": { | |
| "name": "werkzeug.exceptions.BadRequest", | |
| "exception_type": "internal_error", | |
| "arguments": [], | |
| "debug": "Traceback (most recent call last):\n File \"/mnt/odoo-source/odoo/http.py\", line 653, in _handle_exception\n return super(JsonRequest, self)._handle_exception(exception)\n File \"/mnt/odoo-source/odoo/http.py\", line 312, in _handle_exception\n raise pycompat.reraise(type(exception), exception, sys.exc_info()[2])\n File \"/mnt/odoo-source/odoo/tools/pycompat.py\", line 87, in reraise\n raise value\n File \"/mnt/odoo-source/odoo/http.py\", line 695, in dispatch\n result = self._call_function(**self.params)\n File \"/mnt/odoo-source/odoo/http.py\", line 320, in _call_function\n raise werkzeug.exceptions.BadRequest(msg % params)\nwerkzeug.exceptions.BadRequest: 400: Bad Request\n", | |
| "message": "400: Bad Request" | |
| }, | |
| "message": "Odoo Server Error", |
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
| img = 'PCFET0NUWVBFIGh0bWw+CjxodG1sIGxhbmc9ImVuIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94aHRtbCI+CjxoZWFkPgo8bGluayByZWw9InN0eWxlc2hlZXQiIGhyZWY9Imh0dHBzOi8vY2RuLnN1Y3VyaS5uZXQvc3VjdXJpLWZpcmV3YWxsLWJsb2NrLmNzcyIgLz4KPHNlY3Rpb24gY2xhc3M9ImNlbnRlciBjbGVhcmZpeCI+CjxtZXRhIG5hbWU9InZpZXdwb3J0IiBjb250ZW50PSJ3aWR0aD1kZXZpY2Utd2lkdGgsIGluaXRpYWwtc2NhbGU9MS4wIiAvPgo8dGl0bGU+U3VjdXJpIFdlYlNpdGUgRmlyZXdhbGwgLSBBY2Nlc3MgRGVuaWVkPC90aXRsZT4KPGxpbmsgaHJlZj0iaHR0cHM6Ly9mb250cy5nb29nbGVhcGlzLmNvbS9jc3M/ZmFtaWx5PU9wZW4rU2Fuczo0MDAsMzAwLDYwMCw3MDAiIHJlbD0ic3R5bGVzaGVldCIgdHlwZT0idGV4dC9jc3MiPgo8L2hlYWQ+Cjxib2R5Pgo8ZGl2IGlkPSJtYWluLWNvbnRhaW5lciI+CjxoZWFkZXIgY2xhc3M9ImFwcC1oZWFkZXIgY2xlYXJmaXgiPgo8ZGl2IGNsYXNzPSJ3cmFwIj4KPGEgaHJlZj0iaHR0cHM6Ly93d3cuc3VjdXJpLm5ldC8/dXRtX3NvdXJjZT1maXJld2FsbF9ibG9jayIgY2xhc3M9ImxvZ28iPjwvYT4KPHNwYW4gY2xhc3M9ImxvZ28tbmVhcnRleHQiPldlYnNpdGUgRmlyZXdhbGw8L3NwYW4+CjxhIGhyZWY9Imh0dHBzOi8vc3VjdXJpLm5ldC8/dXRtX3NvdXJjZT1maXJld2FsbF9ibG9jayIgY2xhc3M9InNpdGUtbGluayI+QmFjayB0byBzdWN1cmkubmV0PC9hPgo8L2Rpd |
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
| <template> | |
| <table border="1" width="100%"> | |
| <tr v-for="(value, key) in (typeof object === 'object' ? object : [object])" :key="key"> | |
| <td>{{ key }}</td> | |
| <td v-if="Array.isArray(value)"> | |
| <table border="1" width="100%"> | |
| <tr v-for="(item, index) in value" :key="index"> | |
| <td>{{ index }}</td> | |
| <td> | |
| <recursive-table :object="item" /> |
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
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <meta charset="utf-8"> | |
| <title>Pushkinmuseum Donate Widget</title> | |
| </head> | |
| <body> | |
| <!--<script src="https://unpkg.com/vue"></script>--> | |
| <script src="https://cdn.jsdelivr.net/npm/vue"></script> | |
| <script src="https://dev.id.art/pushkinmuseum/pushkinmuseumDonateWidget.umd.js"></script> |
OlderNewer