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, { PureComponent } from 'react'; | |
| import { number, func, bool } from 'prop-types'; | |
| import { PinItem } from './style'; | |
| const BACKSPACE_KEY = 8; | |
| const LEFT_ARROW_KEY = 37; | |
| const UP_ARROW_KEY = 38; | |
| const RIGHT_ARROW_KEY = 39; | |
| const DOWN_ARROW_KEY = 40; |
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 styled from 'styled-components'; | |
| import { func, string, bool, shape, arrayOf } from 'prop-types'; | |
| import { ErrorMessage } from 'components/global/ErrorMessage'; | |
| import { SpinnerSvg } from 'components/global/Spinner'; | |
| import { Translation } from 'shame/translations'; | |
| import InfiniteOptions from './InfiniteOptions'; | |
| import { |
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 { string } from 'prop-types'; | |
| import { compose, setPropTypes, withHandlers } from 'recompose'; | |
| import animate from 'utils/animate'; | |
| import { ScrollDownButton } from './style'; | |
| const enhancer = compose( | |
| setPropTypes({ | |
| elementId: string.isRequired, |
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
| const handleScroll = ({ target }) => { | |
| if (target.scrollTop + target.clientHeight >= target.scrollHeight) { | |
| // loadMoreData(); | |
| } | |
| }; | |
| element.addEventListener('scroll', handleScroll) |
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
| const withClickOutside = ({ | |
| refHandlerName = 'registerRef', | |
| clickHandlerName = 'onClick', | |
| onClickOutside = () => {}, | |
| }) => WrappedComponent => | |
| class ClickOutside extends Component { | |
| constructor(props) { | |
| super(props); | |
| this.open = false; |
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
| export const SIZES = { | |
| small: 768, | |
| medium: 1024, | |
| large: 1200, | |
| }; |
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
| using System; | |
| using System.Collections.Generic; | |
| using System.Linq; | |
| using System.Text; | |
| namespace numbersTogather_2 | |
| { | |
| class Program | |
| { | |
| static int getAB(int a, int b) |
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
| // Необхідність стиску зображень | |
| //C:\Windows\Microsoft.NET\Framework\v3.5\csc.exe | |
| using System; | |
| using System.IO; | |
| using System.Linq; | |
| using System.Collections.Generic; | |
| namespace arithmeticCompession | |
| { |
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
| // 2.2.cpp : Defines the entry point for the console application. | |
| // | |
| #include "stdafx.h" | |
| #include <iostream> | |
| #include <string> | |
| #include <cstdlib> | |
| #include <algorithm> | |
| using namespace std; |