Skip to content

Instantly share code, notes, and snippets.

View ckomop0x's full-sized avatar
:octocat:
Life developer

Pavel Klochkov ckomop0x

:octocat:
Life developer
View GitHub Profile
@ckomop0x
ckomop0x / App.js
Last active June 13, 2019 14:26
import refactored functions
import multiply from '../utils/multiply';
import sum from '../utils/sum';
import calculateSomethingSpecial from '../utils/calculateSomethingSpecial';
@ckomop0x
ckomop0x / calculateSomethingSpecial.js
Created June 13, 2019 14:23
calculateSomethingSpecial.js refactored to a file
import sum from "./sum";
export default function calculateSomethingSpecial(data) {
return data.map(
dataItem => sum(dataItem.param1, dataItem.param2));
}
@ckomop0x
ckomop0x / sum.js
Created June 13, 2019 14:22
sum.js refactored to a file
export default function sum (a, b) {
return a + b;
}
@ckomop0x
ckomop0x / multiply.js
Last active January 24, 2020 09:32
multiply.js refactored to a file
export default function multiply (a, b) {
return a * b;
}
// or
const multiply (a, b) => a * b;
export default multiply;
// Whatever you prefer – this article is not about syntax.
@ckomop0x
ckomop0x / utils.js
Last active June 13, 2019 14:20
Old file with utils
// Old, old function that lives here from the scratch
function multiply (a, b) {
return a * b;
}
function sum (a, b) {
return a + b;
}
function calculateSomethingSpecial(data) {
return data.map(
dataItem => sum(dataItem.param1, dataItem.param2)
@ckomop0x
ckomop0x / features&keys.md
Created December 9, 2016 09:02 — forked from ArtDanshin/features&keys.md
Как перестать бояться и начать использовать WebStorm - Клавиши и фичи

Ссылка на вебинар: JetBrains: https://youtu.be/Ozt8pBq9Mys

##Навигация:

  • cmd + e - Список последний табов/окон, в которых производились действия. Если начать вбивать название, то будут находиться совпадения
  • cmd + вверх - Бар с навигацией по пути файла в проекте
    • При хождении по навигации можно нажимать комбинации, например cmd + n для создания файла

##Отображение