Email sending for Flask

Flask extension for Red Mail What is it? Flask Red Mail is a Flask extension for Red Mail.Red Mail is a powerful email sender library capable of includingattachments from various formats, embedding images, parametrizationwith Jinja etc. This library harness the power of Red Mail in order tomake it trivial to: Send verification emails to users Create email based forgot password functionality Create Flask based email news letters Handle other needs for sending emails from a web application Links: Installation Install […]

Read more

A sample project needed for a security course to connect web service to database

This is a sample project needed for a security course to “connect web service to database”. Why this project suits alignment purpose It connects to the PostgreSQL database with basic authentication.On this web server, you can make a gateway with Nginx It would be better if you do it in thedocker network without so web app would not have internet access, and it would be a true gateway.But easier is to send requests to localhost:8000 from Nginx. How to start […]

Read more

VRT: A Video Restoration Transformer

Jingyun Liang, Jiezhang Cao, Yuchen Fan, Kai Zhang, Rakesh Ranjan, Yawei Li, Radu Timofte, Luc Van Gool Computer Vision Lab, ETH Zurich & Meta Inc. arxiv|supplementary|pretrained models|visual results This repository is the official PyTorch implementation of “VRT: A Video Restoration Transformer”(arxiv, supp, pretrained models, visual results). VRT ahcieves state-of-the-art performance (up to 2.16dB) in video SR (REDS, Vimeo90K, Vid4 and UDM10) video deblurring (GoPro, DVD and REDS) video denoising (DAVIS and Set8)

Read more

Discovering Invariant Rationales for Graph Neural Networks

“Discovering Invariant Rationales for Graph Neural Networks” (ICLR 2022) aims to train intrinsic interpretable Graph Neural Networks that are generalizable to out-of-distribution datasets. The core of this work lies in the construction of environments, i.e., interventional distributions, and thus discovering the causal features for rationalization. Installation Main packages: PyTorch >= 1.5.0, Pytorch Geometric >= 1.7.0, OGB >= 1.3.0. See requirements.txt for other packages. Data download Spurious-Motif: this dataset can be generated via spmotif_gen/spmotif.ipynb. Graph-SST2: this dataset can be downloaded here. […]

Read more

Can Wikipedia Help Offline RL?

Machel Reid, Yutaro Yamada and Shixiang Shane Gu. Our paper is up on arXiv. Overview Official codebase for Can Wikipedia Help Offline Reinforcement Learning?.Contains scripts to reproduce experiments. (This codebase is based on that of https://github.com/kzl/decision-transformer) Instructions We provide code our code directory containing code for our experiments. Installation Experiments require MuJoCo.Follow the instructions in the mujoco-py repo to install.Then, dependencies can be installed with the following command: conda env create -f conda_env.yml Downloading datasets Datasets are stored in the […]

Read more

Density – open-sourced multi-purpose tool for ROBLOX

Density is a open-sourced multi-purpose tool for ROBLOX with some cool minor features including: Follow Bot Group Join Bot Cookie Generator Cookie Checker Model Buyer Visit Bot Friend Bot Favorite Bot Proxy Checker http, socks5, socks4 support UPC and C support Density is a small powerful tool designed for people who don’t have enough money for (2captcha) or paid tools, density comes in not for profitablility but for the fun of it. Thanks to ssl#0001 for developing this tool. GitHub […]

Read more

A small subset of Python Requests

a small subset of Python Requests a few years ago, when I was first learning Python and looking for http functionality, i found the batteries-included urllib — part of the Python std lib https://docs.python.org/3/library/urllib.request.html and it said The Requests package is recommended for a higher-level HTTP client interface. so i decided to try requests instead. the requests page links to a gist that makes urllib seem very complicated (and requests so much easier) import urllib2 gh_url = ‘https://api.github.com’ req = […]

Read more

Advancing AI trustworthiness: Updates on responsible AI research

Editor’s note: This year in review of responsible AI research was compiled by Aether, a Microsoft cross-company initiative on AI Ethics and Effects in Engineering and Research, as outreach from their commitment to advancing the practice of human-centered responsible AI. Although many of the papers’ authors are participants in Aether, the research presented here expands beyond, encompassing work from across Microsoft, as well as  

Read more

Python’s len() Function

In many situations, you’ll need to find the number of items stored in a data structure. Python’s built-in function len() is the tool that will help you with this task. There are some cases in which the use of len() is straightforward. However, there are other times when you’ll need to understand how this function works in more detail and how to apply it to different data types. In this course, you’ll learn how to: Find the length of built-in […]

Read more

A simple telegram bot that takes a list of files sent by the user and returns them zipped

A simple telegram bot that takes a list of files sent by the user and returns them zipped. To be able to run the code you need to rename config.sample.ini to config.ini and fill out the needed credentials. session_dsn is the session name wanted. The bot uses dictionaries to save states so it’s not persistent between runs. The bot uses https://github.com/ukinti/garnet/ as the FSM. The storage type can be changed there. The bot saves files in a temp directory. The […]

Read more
1 281 282 283 284 285 977