Skip to content

Instantly share code, notes, and snippets.

View mciszczon's full-sized avatar

Mateusz Ciszczoń mciszczon

View GitHub Profile
@leocristofani
leocristofani / RFReactSelect.js
Last active June 8, 2020 14:59
How to integrate React Select with Redux Form
import React, { PropTypes } from 'react';
import Select from 'react-select';
import 'react-select/dist/react-select.css';
RFReactSelect.defaultProps = {
multi: false,
className: ""
};
RFReactSelect.propTypes = {
def LongestCommonSubstring(string1, string2):
max_length = max(len(string1),len(string2))
min_length = min(len(string1),len(string2))
# sprawdzenie które słowo jest krótsze
if len(string1)>=len(string2):
long_str = string1
short_str = string2
else:
long_str = string2