This file contains 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 el = __context__; | |
if (el instanceof com.intellij.lang.javascript.psi.JSReferenceExpression) { | |
while (true) { | |
el = el.getParent() | |
if (el == null) return false | |
if (el instanceof com.intellij.lang.javascript.psi.JSFunction) { | |
return __context__.getReferenceName().equals(el.getName()) |
This file contains 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
version: '3' | |
services: | |
# MongoDB: https://hub.docker.com/_/mongo/ | |
mongo: | |
image: mongo:3 | |
networks: | |
- graylog | |
# Elasticsearch: https://www.elastic.co/guide/en/elasticsearch/reference/6.x/docker.html | |
elasticsearch: | |
image: docker.elastic.co/elasticsearch/elasticsearch-oss:6.8.5 |
This file contains 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
ARG DEPS_IMAGE=deps-installer:latest | |
FROM $DEPS_IMAGE as deps-installer | |
FROM node:8.15.0-alpine | |
WORKDIR /app | |
COPY ./ ./ | |
COPY --from=deps-installer /deps/node_modules ./node_modules |
This file contains 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
/** | |
* model - `Item` | |
* order property — `order` | |
*/ | |
const changeOrder = async (req, res) => { | |
try { | |
const { itemId } = req.params | |
const orderOnClient = Number(req.body.order) |
This file contains 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
{ | |
"test-e2e": "start-test run-api-server-and-wait-webpack-dev-server http-get://127.0.0.1:8888/ jest-e2e", | |
"run-api-server-and-wait-webpack-dev-server": "start-test api-server-e2e http-get://127.0.0.1:3030/ app-webpack-dev-server", | |
"jest-e2e": "better-npm-run jest-e2e" | |
} |
This file contains 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 h1DomObject = { | |
accessKey: "" | |
align: "" | |
assignedSlot: null | |
attributeStyleMap: "StylePropertyMap {size: 0}" | |
attributes: NamedNodeMap {0: class, class: class, length: 1} | |
autocapitalize: "" | |
baseURI: "https://jkzed.codesandbox.io/" | |
childElementCount: 0 | |
childNodes: "NodeList [text]" |
This file contains 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
{ | |
"data": { | |
"site": { | |
"siteMetadata": { | |
"title": "Dustin Schau - Blog", | |
"author": "Dustin Schau" | |
} | |
}, | |
"markdownRemark": { | |
"id": "e5350e68-b55f-5bc3-bd2e-a2ea609762fe", |
This file contains 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
[ ADD ] https://web-standards.ru/ | |
[ ADD ] https://web-standards.ru/articles/path-of-tutor/ | |
[ ADD ] https://web-standards.ru/articles/web-font-loading-patterns/ | |
[ ADD ] https://web-standards.ru/articles/stop-breaking-the-web/ | |
[ ADD ] https://web-standards.ru/articles/check-it-before-you-wreck-it/ | |
[ ADD ] https://web-standards.ru/category/articles/ | |
[ ADD ] https://web-standards.ru/category/news/ | |
[ ADD ] https://web-standards.ru/category/news/feed/ | |
[ ADD ] https://web-standards.ru/news/983/ | |
[ ADD ] https://web-standards.ru/news/973/ |
This file contains 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"> | |
<meta name="viewport" content="width=device-width"> | |
<title>JS Bin</title> | |
<style id="jsbin-css"> | |
div { | |
margin: 2px; | |
padding: 5px 10px; |
This file contains 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
/* Node+Express+MongoDB(mongoose) | |
Интернет магазин. Сохраняю заказ (Order) в БД | |
Одновременно с его сохранением в БД, нужно массив с данными (Order) отправить в 1С по API | |
post API через AXIOS | |
не могу сообразить как это сделать одновременно и в БД записать и через API постом отправить | |
*/ | |
app.post('/api/orders/', (req, res) => { | |
let cart = req.param.cart; |