This file contains 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
Перед началом | |
============= | |
Скачай и установи Python 3 с официальной страницы. | |
Если ты пользуешься Windows, качай инсталлер [отсюда (32 bit)](https://www.python.org/ftp/python/3.5.1/python-3.5.1.exe) или же [отсюда (64 bit)](https://www.python.org/ftp/python/3.5.1/python-3.5.1-amd64.exe). | |
Если же у тебя linux-based дистрибутив, весьма вероятно что питон у тебя уже имеется - напиши `python3` в консоли и, если запустился интерпретатор, можно двигаться дальше. Если нет - делай `sudo apt-get install python3` (в случае debian-based дистра). | |
Убедись что запускается простейшая программа. Создай файл hello.py, напиши в него `print("Hello world!")` и далее в консоли из каталога с этим файлом `python hello.py` для винды (также можно просто запустить этот файл прямо из проводника) или, для линуксов `python3 hello.py` | |
Желательно полистать пару туториалов чтобы понять базовый синтаксис, но это не строго обязательно. |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains 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 TextMask from 'react-text-mask' | |
export default class CustomTextMask extends TextMask { | |
render() { | |
const {value, ...props} = this.props | |
return ( | |
<input | |
{...props} | |
onFocus={this.onFocus} |
This file contains 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
#!/bin/bash | |
if ! command -v adb &> /dev/null | |
then | |
echo "adb is not globally installed, using android sdk version" | |
#you can just set your path to android platform tools | |
export PATH="$PATH:~/Android/Sdk/platform-tools" | |
fi | |
adb disconnect |
This file contains 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
type Handlers = Record<string, (...args: any) => void> | |
const isPlugin = typeof figma !== 'undefined' | |
const res: Record<number, (t: any) => void> = {} | |
export function handlers<T extends Handlers>(methods: T): T { | |
const t = isPlugin ? figma.ui : window | |
t.onmessage = async (m: any) => { | |
const { method, args } = m.data ? m.data.pluginMessage.pluginMessage : m |