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
| import React, { Component, Fragment } from 'react'; | |
| import Media from "react-media"; | |
| import './index.css'; | |
| import BackgroundDesktop from './../backgroundDesktop'; | |
| import BackgroundTablet from './../backgroundTablet'; | |
| import BackgroundMobile from './../backgroundMobile'; | |
| class Background extends Component { | |
| renderBackground = () => { |
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
| import React from 'react'; | |
| import PropTypes from 'prop-types'; | |
| import './index.css'; | |
| import alertIcon from '../../img/icons/alert.png'; | |
| const loader = | |
| <div className="loading-dots"> | |
| <div className="loading-dots--dot" /> | |
| <div className="loading-dots--dot" /> | |
| <div className="loading-dots--dot" /> |
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
| // how to call function 1 inside function 2? | |
| // 1 | |
| bot.on('message', (msg) => { | |
| const chatId = msg.chat.id; | |
| bot.sendMessage(chatId, msg.text); | |
| console.log('msg === ', msg); | |
| }); | |
| // 2 |
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
| Если во время диспатча одного redux-action-а нужно диспатчнуть еще несколько используем миделварку. |
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
| В небольших проектах я создаю себе модули и с ними работаю. Обычно это какой-то файл с массивом объектов который я после импортирую в нужный компонент и после работаю с его данными. |
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
| Идея функционального программирования - использование иммутабельных данных (данные которые не меняются не мутируются). | |
| В первом случае изменение метода по ссылке. Так делать нельзя потому что может быть на него кто-то где-то ссылается. | |
| Во втором случае, функция не имеет side effect-ов поэтому её можно считать чистой функцией. |
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
| function parent() { | |
| var multiplier = 3; | |
| return [33, 77, 99, 81, 55].map(function(I) { return I * multiplier}); | |
| } |
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
| function(names) { | |
| console.log(names.toString()); | |
| } |
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
| <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> | |
| <!-- saved from url=(0019)https://agroru.com/ --> | |
| <html class="bx-core bx-mac bx-no-touch bx-no-retina bx-chrome"> | |
| <head> | |
| <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> | |
| <title>АГРОРУ.ком - аграрная торговая система.</title> | |
| <meta name="keywords" content=""> | |
| <meta name="description" content="АГРОРУ.ком - аграрная торговая система АГРОРУ.ком"> | |
| <link rel="shortcut icon" href="https://agroru.com/favicon.ico"> | |
| <link rel="apple-touch-icon-precomposed" sizes="144x144" href="https://agroru.com/i/touch/apple-touch-icon-144x144-pr.png"> |
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
| <style> | |
| .wrap-col-l > a { | |
| position: fixed; | |
| top: 0; | |
| left: 0; | |
| } | |
| .wrap-col-r > a { | |
| position: fixed; | |
| top: 0; | |
| right: 0; |