-
Скачайте бесплатный Visual Studio Code с официального сайта: Скачать VS Code
-
Выберите Windows — User Installer x64, запустите файл и установите программу с настройками по умолчанию. Microsoft рекомендует User Installer большинству пользователей Windows.
-
Запустите VS Code и нажмите
Ctrl+Shift+X. -
Найдите и установите расширение Python от Microsoft:
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
| bpmn LR | |
| layout elk | |
| pool payment_process "Payment process" | |
| lane saga "Payment Saga" | |
| message start payment_initiated "Payment initiated" | |
| service task debit_payer "DEBIT_PAYER_FUNDS\ Debit payer funds" | |
| error boundary debit_failed "Debit failed" | |
| subprocess transaction_checks "PERFORM_FRAUD_CHECK\ Perform transaction\ checks" | |
| parallel gate checks_fork |
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
| 'use strict'; | |
| import fs from 'node:fs/promises'; | |
| import path from 'node:path'; | |
| import { Parser, fromFile } from '@asyncapi/parser'; | |
| import { PropertyKeyContext, TypeScriptGenerator } from '@asyncapi/modelina'; | |
| /** | |
| * Modelina by default transforms payload properties' names into `camelCase`. This custom sctript | |
| * retirns the property names as-is keeping your `snake_case` naming in place. |
in case you haven't docker installed, please follow this instruction https://docs.docker.com/engine/install/ubuntu/
Create daemon.json file in /etc/docker, with content:
{"hosts": ["tcp://0.0.0.0:2375", "unix:///var/run/docker.sock"]}
Second way suggested by @maireadmccabe-fire
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
| 'use strict'; | |
| import fastify, { FastifyReply, FastifyRequest, RawReplyDefaultExpression, RawServerBase, RequestGenericInterface } from 'fastify'; | |
| import proxy from '@fastify/http-proxy'; | |
| const server = fastify(); | |
| server.register(proxy, { | |
| upstream: 'http://proxied.tld', | |
| prefix: '/proxied', |
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
| { | |
| "type": "module", | |
| "test": "tap", | |
| "devDependencies": { | |
| "@esbuild-kit/esm-loader": "^2.5.5", | |
| "@swc/core": "^1.3.77", | |
| "@tsconfig/node18": "^18.2.0", | |
| "@types/node": "^20.5.0", | |
| "@types/tap": "^15.0.8", | |
| "tap": "^16.3.8", |
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
| // ...some entries | |
| "require": { | |
| "illuminate/validation": "^8.25", | |
| "illuminate/translation": "^8.25" | |
| } | |
| // ...some more entries |
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
| // See the issue here https://github.com/opencart/opencart/issues/8103# | |
| 2021-01-16 13:57:24 - MOD: Modification Default | |
| FILE: system/engine/action.php | |
| REGEX: ~(require|include)(_once)?\(([^)]+)~ | |
| LINE: 69 | |
| FILE: system/engine/loader.php | |
| REGEX: ~(require|include)(_once)?\(([^)]+)~ |
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
| // The issue solved with this config is `twig-loader` and Webpack process the image assets | |
| // referenced in `.twig` templates the correct way. | |
| // Namely as a build process result, the images are copied to `.dist` folder with hashed names, | |
| // the `src` images' attributes in the output HTML file produced from the Twig templates | |
| // are updated with the respective hashed names. | |
| module.exports = { | |
| runtimeCompiler: true, | |
| outputDir: '.dist', |
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 fact can be used for every web project that needs live reload for dev environment. | |
| // The accompanying guide is here: | |
| // https://github.com/adonisjs/core/issues/1234#issuecomment-633937899 | |
| 'use strict'; | |
| const gulp = require('gulp'), | |
| browserSync = require('browser-sync').create(); | |
| const config = { |
NewerOlder