WSL 2, Oh-My-Zsh, Windows Terminal, Git, VS Code, and VcXsrv!
The Operating System: WSL 2
Ensure you are running Windows 10, Version 2004, Build 19041 or higher
<template> | |
<b-modal :active="true" :onCancel="close"> | |
<div class="modal-card"> | |
<section class="modal-card-body"> | |
<nav class="level"> | |
<div class="level-left"> | |
<el-tooltip v-if="errorFiles.length" placement="bottom" effect="light"> | |
<div slot="content"> | |
<div> | |
Alguns arquivos não puderam ser enviados: |
import platform | |
import unittest | |
from http import HTTPStatus | |
from urllib.parse import urlencode, unquote | |
import aiohttp | |
import asynctest | |
from aiohttp import web | |
from aiohttp.test_utils import TestClient | |
from multidict import MultiDict |
""" | |
Temporary module to allow for sqlite databases during development. Remove once | |
we get an actual database. | |
""" | |
import peewee | |
from peewee_async import AsyncDatabase | |
import playhouse.sqlite_ext as sqlite_ext | |
try: | |
import aiosqlite |
WSL 2, Oh-My-Zsh, Windows Terminal, Git, VS Code, and VcXsrv!
Ensure you are running Windows 10, Version 2004, Build 19041 or higher
const sharp = require('sharp'); | |
async function findImageWithinImage(outer, inner, max = 1) // max is the maximum occurences to find | |
{ | |
let file_o = sharp(outer); | |
let file_i = sharp(inner); | |
let buff_o = await file_o.raw().toBuffer(); | |
let buff_i = await file_i.raw().toBuffer(); | |
let meta_o = await file_o.metadata(); | |
let meta_i = await file_i.metadata(); |
const TELEGRAM_BOT_TOKEN = '110201543:AAHdqTcvCH1vGWJxfSeofSAs0K5PALDsaw'; // https://core.telegram.org/bots#creating-a-new-bot | |
export const verifyTelegramWebAppData = async (telegramInitData: string): boolean => { | |
// The data is a query string, which is composed of a series of field-value pairs. | |
const encoded = decodeURIComponent(telegramInitData); | |
// HMAC-SHA-256 signature of the bot's token with the constant string WebAppData used as a key. | |
const secret = crypto |
import numpy as np | |
import cvxpy as cp | |
import itertools | |
# Problem data | |
global_indices = list(range(4)) | |
# 0 = TOKEN-0 | |
# 1 = TOKEN-1 | |
# 2 = TOKEN-2 |
This prompt helps you add background process management scripts to any Node.js project with a development server (Expo, Next.js, Vite, etc.).