Skip to content

Instantly share code, notes, and snippets.

import { DetailedHTMLProps, forwardRef, SelectHTMLAttributes } from 'react'
export const Select = forwardRef<
HTMLSelectElement,
DetailedHTMLProps<SelectHTMLAttributes<HTMLSelectElement>, HTMLSelectElement>
>(({ children, ...rest }, ref) => {
return (
<select
ref={ref}
className="block w-full px-3 py-2 bg-white border border-gray-300 rounded-md shadow-sm focus:outline-none focus:ring-dodger-blue focus:border-dodger-blue sm:text-sm"
/interface wireless channels
add band=2ghz-b/g/n width=20 list=2GHz/20MHz frequency=2412 name=ch1
add band=2ghz-b/g/n width=20 list=2GHz/20MHz frequency=2437 name=ch6
add band=2ghz-b/g/n width=20 list=2GHz/20MHz frequency=2462 name=ch11
add band=5ghz-onlyac width=20 list=5GHz/80MHz extension-channel=Ceee frequency=5180 name=ch36/38/42
add band=5ghz-onlyac width=20 list=5GHz/80MHz extension-channel=eCee frequency=5200 name=ch40/38/42
add band=5ghz-onlyac width=20 list=5GHz/80MHz extension-channel=eeCe frequency=5220 name=ch44/46/42
add band=5ghz-onlyac width=20 list=5GHz/80MHz extension-channel=eeeC frequency=5240 name=ch48/46/42
[tool.poetry]
name = "test"
version = "0.1.0"
description = ""
authors = ["Nikolay Galkin <mr.galkin@gmail.com>"]
[tool.poetry.dependencies]
python = "^3.6"
scrapy = "^1.5"
python-dotenv = "^0.10.1"
import React, { Component } from 'react';
import classNames from 'classnames';
import FilterItem from './item';
export default class Filter extends Component {
state = {
isOpen: false,
categories: [
'JavaScript',
import React, {Component} from 'react';
import classNames from 'classnames';
import FilterItem from './item';
class Filter extends Component {
state = {
isOpen: false,
isApply: false,
categories: [
class App extends Component {
componentWillMount() {
this.classes = this.props.location.pathname === '/' ?
'page-container background-blue mobile-fix-height':
'page-container';
}
render() {
return (
<div className={this.classes}>
import { bindActionCreators } from 'redux';
import { connect } from 'react-redux';
import * as actionCreators from '../actions/index';
import Main from './Main';
function mapStateToProps(state) {
return {
repos: state.repos
}
const router = (
<Provider store={store}>
<Router history={history}>
<Route path='/' component={App}>
<IndexRoute component={Home} />
<Route path='/recipes/add' component={AddRecipe} />
<Route path='/recipes/:id' component={SingleRecipe} />
<Route path='/signup' component={SignupPage} />
<Route path='/login' component={LoginPage} />
</Route>
import { fork, call, put, takeEvery } from 'redux-saga/effects';
import { getRecentRecipes } from '../services/api';
function* fetchRecentRecipes(featherApp) {
const recipes = yield call(getRecentRecipes, featherApp);
yield put({ type: 'RECENT_RECIPES_SUCCEEDED', recipes });
}
function* recentRecipesSaga(featherApp) {
yield takeEvery('RECENT_RECIPES_REQUESTED', fetchRecentRecipes, featherApp);
import { createStore, applyMiddleware } from 'redux';
import { browserHistory } from 'react-router';
import { syncHistoryWithStore } from 'react-router-redux';
import createSagaMiddleware from 'redux-saga';
import mySaga from './sagas/sagas';
import rootReducer from './reducers/index';
import superagent from 'superagent';