Frontend Engineer
ะะพะฝัะฐะบัั:
- ะขะตะปะตัะพะฝ: +7 (925) 834-55-30
- Email: [email protected]
- Telegram: mrbzzz
- GitHub: ivan-hilckov
- Instagram: helios_m42
| import { BotContext } from '../../types/bot.types'; | |
| /** | |
| * Deletes all previous messages stored in session and the triggering message | |
| */ | |
| export async function deletePreviousMessages(ctx: BotContext): Promise<void> { | |
| try { | |
| // Delete the triggering message (works for both commands and callback queries) | |
| if (ctx.callbackQuery?.message) { | |
| // For callback queries, use hydrate method |
Frontend Engineer
ะะพะฝัะฐะบัั:
After setting up docker to generate React app without installing node js in https://gist.github.com/przbadu/4a62a5fc5f117cda1ed5dc5409bd4ac1 It was confusing to some of the devs, how to run react app, so I am creating this as second step to the configuration.
cd my-react-app
touch Dockerfile Dockerfile.dev docker-compose.yml .dockerignore| import React, { useState } from 'react' | |
| import ReactMapGL, { Marker, WebMercatorViewport } from 'react-map-gl' | |
| const applyToArray = (func, array) => func.apply(Math, array) | |
| const getBoundsForPoints = (points) => { | |
| // Calculate corner values of bounds | |
| const pointsLong = points.map(point => point.coordinates._long) | |
| const pointsLat = points.map(point => point.coordinates._lat) | |
| const cornersLongLat = [ |
//ะงัะพ ะฒัะฒะตะดะตั ะบะพะด ะฝะธะถะต?
let promise = new Promise(function(resolve, reject) {
resolve(1);
| var emojis = [ | |
| '๐','๐','๐','๐','โบ','๐','๐','๐','๐','๐','๐','๐','๐','๐','๐ณ','๐','๐','๐','๐','๐','๐ฃ','๐ข','๐','๐ญ','๐ช','๐ฅ','๐ฐ','๐ ','๐','๐ฉ','๐ซ','๐จ','๐ฑ','๐ ','๐ก','๐ค','๐','๐','๐','๐ท','๐','๐ด','๐ต','๐ฒ','๐','๐ฆ','๐ง','๐','๐ฟ','๐ฎ','๐ฌ','๐','๐','๐ฏ','๐ถ','๐','๐','๐','๐ฒ','๐ณ','๐ฎ','๐ท','๐','๐ถ','๐ฆ','๐ง','๐จ','๐ฉ','๐ด','๐ต','๐ฑ','๐ผ','๐ธ','๐บ','๐ธ','๐ป','๐ฝ','๐ผ','๐','๐ฟ','๐น','๐พ','๐น','๐บ','๐','๐','๐','๐','๐ฝ','๐ฉ','๐ฅ','โจ','๐','๐ซ','๐ฅ','๐ข','๐ฆ','๐ง','๐ค','๐จ','๐','๐','๐','๐ ','๐','๐','๐','๐','๐','โ','โ','๐','โ','๐','๐','๐','๐','๐','๐','๐','โ','๐','๐ช','๐ถ','๐','๐','๐ซ','๐ช','๐ฌ','๐ญ','๐','๐','๐ฏ','๐','๐ ','๐','๐','๐','๐','๐ ','๐ฐ','๐','๐','๐','๐ฉ','๐','๐','๐','๐','๐ก','๐ ','๐ข','๐','๐','๐','๐','๐ฝ','๐','๐','๐','๐ผ','๐','๐','๐','๐','๐','๐','๐','๐','๐','๐','๐','โค','๐','๐','๐','๐','๐','๐','๐','๐','๐','๐','๐','๐ค','๐ฅ','๐ฌ','๐ฃ','๐ญ','๐ถ','๐บ','๐ฑ','๐ญ','๐น','๐ฐ','๐ธ','๐ฏ','๐จ','๐ป','๐ท','๐ฝ','๐ฎ','๐','๐ต','๐','๐ด','๐','๐','๐ผ','๐ง','๐ฆ','๐ค','๐ฅ','๐ฃ','๐','๐','๐ข','๐','๐','๐','๐','๐','๐','๐','๐ ','๐','๐ฌ','๐ณ','๐','๐','๐','๐','๐','๐ ','๐','๐','๐','๐','๐','๐','๐','๐','๐','๐ฒ','๐ก','๐','๐ซ','๐ช','๐','๐','๐ฉ','๐พ', |
| import axios, { AxiosError } from 'axios' | |
| import { CANCEL, END } from 'redux-saga' | |
| class DataError extends Error { | |
| constructor(status: number, statusText: string, data?: any) { | |
| super(`${status} ${statusText}`) | |
| Object.setPrototypeOf(this, Object.assign({}, DataError.prototype, { status, statusText, data })) | |
| } | |
| } |
| const user = { id: 100, name: 'Howard Moon' } | |
| const password = 'Password!' | |
| const userWithPassword = { | |
| ...user, | |
| id: 100, | |
| ...(password && { password }) | |
| } | |
| userWithPassword //=> { id: 100, name: 'Howard Moon', password: 'Password!' } |
| #!/usr/bin/env bash | |
| # http://papers.ch/speeding-up-your-mac-osx-terminal-input/ | |
| #echo "Disable press-and-hold for keys in favor of key repeat" | |
| #defaults write NSGlobalDomain ApplePressAndHoldEnabled -bool false | |
| echo "Set a blazingly fast keyboard repeat rate" | |
| defaults write NSGlobalDomain KeyRepeat -int 0.02 |
| import React, { useMemo } from "react"; | |
| import useSubscription from "./useSubscription"; | |
| // In this example, "source" is an event dispatcher (e.g. an HTMLInputElement) | |
| // but it could be anything that emits an event and has a readable current value. | |
| function Example({ source }) { | |
| // In order to avoid removing and re-adding subscriptions each time this hook is called, | |
| // the parameters passed to this hook should be memoized. | |
| const subscription = useMemo( | |
| () => ({ |