sudo apt install openjdk-8-jdk-headless
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 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 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
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 |
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
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(); |
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
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
""" | |
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 |
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 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 |
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
<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: |
Полезные ссылки изучающему анону
- Список рекомендаций с форчана:
- Ещё один список рекомендаций, на этот раз на русском языке:
- Лучший словарь для PC:
- Онлайн-словари:
- японо-русские:
NewerOlder