Skip to content

Instantly share code, notes, and snippets.

View daniilgri's full-sized avatar
🚀

Danil Grishaev daniilgri

🚀
View GitHub Profile
<script setup lang="ts">
import { PropType, computed, ref, useSlots } from 'vue';
import {
TpButtonType,
TpButtonSize,
TpButtonVariant,
TpButtonTag,
TpButtonColor,
TP_BUTTON_EVENTS,
import Link from "next/link";
import { Wrapper, Box, Title, Menu, MenuItem } from "./styles";
const component = () => {
return (
<Wrapper>
<Box backgroundImageSrc="https://picsum.photos/1200/1300">
<Title>Man</Title>
<Menu>
<Link href="/catalog">
import { Wrapper, Content, Box, Title, List, Item } from "./styles";
const component = () => (
<Wrapper>
<Content>
<Box>
<Title>Clothes</Title>
<List>
<Item>Dresses</Item>
<Item>T-shirts</Item>
import React from "react";
import NextApp from "next/app";
import { ModalProvider } from "styled-react-modal";
import { StyleSheetManager } from "styled-components";
import store from "../store";
import { GlobalStyle } from "../styles/App/styles";
GlobalStyle;
static fetchBuff163Dota() {
return new Promise(async (resolve, reject) => {
try {
const browser = await puppeteer.launch();
const page = await browser.newPage();
await page.setViewport({
width: 1920,
height: 1080,
});
await page.goto(
import { handleActions } from "redux-actions";
import * as aboutFilmActions from "../actions/aboutFilmActions";
import { Record, List } from "immutable";
const FilmRecord = Record({
title: "",
year: 0,
ageRestriction: 0,
slug: "",
description: "",
case types.SEARCH:
const newState = state.filter(el => {
for (let prop in el) {
return el[prop].includes(action.query);
}
return false;
});
return newState;
import React, { useEffect } from "react";
import { connect } from "react-redux";
import Home from "../pages/Home";
import { initForm } from "../store/forms/actions";
import { FormsActionTypes } from "../store/forms/types";
export interface HomePageContainerProps {
onInitForm: FormsActionTypes;
}
@daniilgri
daniilgri / edison
Last active September 3, 2019 15:27
Томас Алва Эдисон — изобретатель, бизнесмен, получивший за свою жизнь 1093 патента.
1. Электрический счетчик голосов на выборах.
Это был первый патент Эдисона. Устройство позволяло избирателям нажимать кнопки «да» или «нет», вместо того чтобы писать на бумаге.
Медленно работал.
Парламент отказался от изобретения в пользу привычного письменного счета.
Img: https://bigpicture.ru/wp-content/uploads/2015/02/EdisonInventions01.jpg
2. Автоматический телеграф
Чтобы усовершенствовать телеграф, Эдисон создал еще один — на основе изобретенного им же перфорированного бора — для которого не нужен был человек, чтобы печатать сообщение на другом конце. Эта новая технология увеличила количество слов, передаваемых в минуту, с 25-40 до 1000! Эдисон также стал изобретателем «говорящего телеграфа».
<div className="towns">
<div className="towns-content">
<div className="towns-content_cards">
<div className="towns-content_cards__card">
<img src="/static/4screen/foto1.png" />
<div className="towns-content_cards__card_label">
<h3>Токио</h3>
<p>В Японии начинается сезон сакуры "блабла" lorem chick</p>
</div>
</div>