- Импортим к себе в файлик
src/commons/recommendator.js - Описываем шаблончик на Mustache, например
const myTemplate = `<h2>Total count: {{ total }}</h2>
{{ #documents }}
{{ name }}
| docker run --restart=always --name=sftp \ | |
| -v D:/docker_pub:/home/fnnzzz/upload \ | |
| -p 22:22 -d atmoz/sftp \ | |
| foo:pass:1001 |
| # find deleted file full path | |
| git log --diff-filter=D --summary --name-only | grep Step1.ascx.en.resx | |
| # find commit where file was deleted by its full path | |
| git log --all --full-history --no-merges -- Rabota2.WebUI/Controls/Service/App_LocalResources/SocialNetworkLogin.ascx.en.resx | |
| # recover deleted file | |
| git checkout 4a23be713e084b53149d2ba6bac441b26e20bdff~1 Rabota2.WebUI/Controls/Service/App_LocalResources/SocialNetworkLogin.ascx.en.resx |
| const isInViewPort = (el) => { | |
| const win = $(window) | |
| const viewport = { | |
| top : win.scrollTop(), | |
| left : win.scrollLeft() | |
| } | |
| viewport.right = viewport.left + win.width() | |
| viewport.bottom = viewport.top + win.height() |
| const classOf = (object) => Object.prototype.toString.call(object).slice(8, -1) |
| fadeOut(el) { | |
| el.style.opacity = 1; | |
| (function fade() { | |
| if ((el.style.opacity -= 0.03) < 0) { | |
| el.style.display = "none"; | |
| } else { | |
| requestAnimationFrame(fade); | |
| } | |
| })(); |
| <TaskOptions> | |
| <TaskOptions> | |
| <option name="arguments" value="$FilePathRelativeToProjectRoot$ --out-dir dist --source-maps --presets es2015" /> | |
| <option name="checkSyntaxErrors" value="true" /> | |
| <option name="description" /> | |
| <option name="exitCodeBehavior" value="ERROR" /> | |
| <option name="fileExtension" value="js" /> | |
| <option name="immediateSync" value="true" /> | |
| <option name="name" value="Babel" /> | |
| <option name="output" value="dist\$FileDirRelativeToProjectRoot$\$FileNameWithoutExtension$.js:dist\$FileDirRelativeToProjectRoot$\$FileNameWithoutExtension$.js.map" /> |
| const rabotauaAutoRegistration = (function() { | |
| function init() { | |
| if( location.pathname == '/employer/register' || location.pathname == '/ua/employer/register' ) { | |
| loadFaker() | |
| } | |
| else { | |
| console.error('Aha got you! This isn`t a page of employer registration') | |
| } | |
| } |
https://www.jetbrains.com/webstorm/documentation/WebStorm_ReferenceCard.pdf
A-j Add next occurence
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <title>React cdn</title> | |
| </head> | |
| <body> | |
| <div id="root"></div> | |
| <script src="https://cdnjs.cloudflare.com/ajax/libs/react/15.4.2/react.min.js"></script> | |
| <script src="https://cdnjs.cloudflare.com/ajax/libs/react/15.4.2/react-dom.min.js"></script> | |
| <script src="https://unpkg.com/babel-standalone@6/babel.js"></script> |