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 requests | |
import re | |
from win10toast import ToastNotifier | |
import pyperclip | |
import time | |
def get_translation(word): | |
url = f'https://pl.pons.com/t%C5%82umaczenie/angielski-polski/{word}' | |
try: |
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
void sendAJAXresponse(WiFiClient client, String message){ | |
String content_length_header = "Content-Length:"+String(message.length())+"\r\n"; | |
String answer = message + "\r\n"; | |
client.write("HTTP/1.1 200 OK\r\n"); | |
client.write("Content-Type:text/plain\r\n"); | |
client.write("Access-Control-Allow-Origin:*\r\n"); | |
client.write("Access-Control-Max-Age:600\r\n"); | |
client.write("Access-Control-Allow-Methods:PUT,POST,GET,OPTIONS\r\n"); | |
client.write("Access-Control-Allow-Headers:*\r\n"); |
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 pytube | |
import clipboard | |
import time | |
import sys | |
class DownTube: | |
def __init__ (self, mode="listen"): | |
mode = sys.argv[1][1:] | |
if mode=="listen": |
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
### config.js ### | |
import { configure, addDecorator } from '@storybook/react'; | |
import themeDecorator from './themeDecorator'; | |
addDecorator(themeDecorator); | |
const loaderFn = () => { | |
const req = require.context('../src/components', true, /\.stories\.js$/); | |
req.keys().forEach(fname => req(fname)); | |
}; |
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
npm i -D @babel/core babel-loader @babel/preset-env @babel/preset-react babel-plugin-transform-class-properties | |
npm i react react-dom | |
npm i webpack webpack-cli | |
.babelrc: | |
{ | |
"presets": ["@babel/preset-env", "@babel/preset-react"], | |
"plugins": ["transform-class-properties"] | |
} |