Skip to content

Instantly share code, notes, and snippets.

View nikonov91-dev's full-sized avatar

Alex Nikonov nikonov91-dev

View GitHub Profile
удаление Idea на линуксе
~/.intellij...
~./local/share/jetBrains
./etc/
~/.java/.userPrefs/jetBrains
на маке:
удалить из программ
проверить пути: ~/Library/Preferences/, ~/Library/Application Support/ and ~/Library/Caches/
проверить пути: ~user/Library/Preferences/, ~/user/Library/Application Support/ and ~/user/Library/Caches/
@nikonov91-dev
nikonov91-dev / git gist
Created July 10, 2019 14:04
gist of git tips on russian. Полезные комманды git с описанием
hello git
commit - that snapshot
working directory
checkout - процесс когда файлы скопированы из репозитория в рабочую папку
staging area/index - файл-таблица содержащая список файлов загруженных в порядке по времени записи в репозиторий
poise - держать/висеть/ быть готовым к действию
SHA - ID номер коммитов состоящий из 40 символов /SHA - secure hash algorithm
branch - ответвление проекта от основного проекта без изменения второго.
consistency - непротиворечивость
topic branch - это ответвление коммитнутых и внесенных изменений и подтверждение их добалвлений в первоисточник проекта (в ситуации pull requesta)
@nikonov91-dev
nikonov91-dev / field-text.jsx
Created July 1, 2019 14:24
how return value from PROMISE to another function and proceed it with RETURN
var FlexTextInput = function (
parendID = 'non-unique-par-id',
childID = 'non-unique-child-id',
parsedJson = []
) {
const attrs = parsedJson.map(e => e)
class FlexTextInputComp extends React.Component {
state = {
value: '',
@nikonov91-dev
nikonov91-dev / intellij_filewatcher_sass
Last active January 3, 2020 09:23
Intellij Idea File Watcher for Sass
the last workable settings:
$FileName$:$FileNameWithoutExtension$.css
$FileNameWithoutExtension$.css:$FileNameWithoutExtension$.css.map
last non workable
$FileName$:$ProjectFileDir$/src/main/resources/static/css/build/$FileNameWithoutExtension$.css
$ProjectFileDir$/src/main/resources/static/css/build/$FileNameWithoutExtension$.css:$ProjectFileDir$/src/main/resources/static/css/build/$FileNameWithoutExtension$.css.map
@nikonov91-dev
nikonov91-dev / javascriptreact.json
Last active June 14, 2019 10:16
js react gist snippet for vscode
{
"createStatelessComponent": {
"prefix": "import-stateless",
"body": [
"import React from 'react';",
"",
"export default ({}) => (",
" <$1>",
" ",
" </$2>",
// Place your key bindings in this file to override the defaultsauto[]
[
{
"key": "ctrl+shift+`",
"command": "workbench.action.terminal.new"
},
{
"key": "ctrl+shift+`",
"command": "-workbench.action.terminal.new"
},
{
"key": "ctrl+e",
"command": "workbench.view.explorer"
},
{
"key": "ctrl+t",
"command": "workbench.action.terminal.toggleTerminal"
}
@nikonov91-dev
nikonov91-dev / vs code extentions
Created May 31, 2019 08:10
vscode extentions
debugger for chrome
eslint
scss formatter
{
"emmet.triggerExpansionOnTab": true,
"emmet.includeLanguages": {
"javascript": "javascriptreact"
},
"editor.renderWhitespace": "all",
"workbench.activityBar.visible": true,
"editor.minimap.enabled": false,
"editor.tabSize": 2,
"editor.detectIndentation": true,
@nikonov91-dev
nikonov91-dev / server side render video
Created January 29, 2019 11:55
gist about server side render explained really simple work
https://www.youtube.com/watch?v=gpGoxdVspx4&index=17&list=PLcCp4mjO-z98WAu4sd0eVha1g-NMfzHZk
"This video walks you through a server setup for a React SSR app with Material-UI. Using our exercise database SPA as a base, we will build up an Express server to render the app server-side and serve up an HTML payload along with critical CSS. As soon as the client loads up the HTML document, it will quickly display the webpage delivering that sweet and speedy first meaningful paint.
Once the app is viewable to the user, the browser will load up the JS bundle asynchronously behind the scenes without ever blocking the page render. Lastly, React will hydrate the server markup and attach event listeners to DOM nodes with no extraneous re-renders. That's when the user can finally start interacting with the app.
Learn the theory first (a must watch) https://youtu.be/8_RzRQXSHcg
Get the starter code from GitHub https://www.youtube.com/redirect?q=https%3A%2F%2Fgithub.com%2Falex996%2Freact-exercises%2Ftree%2Fssr%2Fstarte