MkDocs plugin to export content pages as PDF files

An MkDocs plugin to export content pages as PDF files The pdf-export plugin will export all markdown pages in your MkDocs repository as PDF files using WeasyPrint. The exported documents support many advanced features missing in most other PDF exports, such as a PDF Index and support for CSS paged media module. Requirements This package requires MkDocs version 1.0 or higher (0.17 works as well) Python 3.4 3.5 or higher WeasyPrint depends on cairo, Pango and GDK-PixBuf which need to […]

Read more

MkDocs plugin that simplifies configuring page titles and their order

An MkDocs plugin that simplifies configuring page titles and their order The awesome-pages plugin allows you to customize how your pages show up the navigation of your MkDocs without having to configure the full structure in your mkdocs.yml. It gives you detailed control using a small configuration file directly placed in the relevant directory of your documentation. Note: This plugin won’t do anything if your mkdocs.yml defines a nav or pages entry. To make use of the features listed below, […]

Read more

Run black on python code blocks in documentation files

Run black on python code blocks in documentation files. install pip install blacken-docs usage blacken-docs provides a single executable (blacken-docs) which will modify .rst / .md / .tex files in place. It currently supports the following black options: -l / –line-length -t / –target-version -S / –skip-string-normalization Following additional parameters can be used: blacken-docs will format code in the following block types: (markdown) “`python def hello(): print(“hello world”) “` (rst)    

Read more

Shitty DDoS Script With Python

This is a bad ddos tool script i made, there are tons of tools 100 times better but i’ll try to improve this and make it public here Just change Target Ip Port and choose the thread numbers Script 1 The first script just realizes the attack but there’s no way to know if it worked Script 2 This script realizes the attack and prints the amount of packets sent to the attacked Script 3 Script 2 but improved so […]

Read more

CONFIDENT SEMANTIC RANKING LOSS FOR PART PARSING

If training from scratch, simply run. If not, customize the dir in /experiments/CSR config.py. @inproceedings{tan2021confident, title={Confident Semantic Ranking Loss for Part Parsing}, author={Tan, Xin and Xu, Jiachen and Ye, Zhou and Hao, Jinkun and Ma, Lizhuang}, booktitle={2021 IEEE International Conference on Multimedia and Expo (ICME)}, pages={1–6}, year={2021}, organization={IEEE} }    

Read more

Aspect Sentiment Quad Prediction (ASQP)

We highly recommend you to install the specified version of the following packages to avoid unnecessary troubles: If the code is used in your research, please star our repo and cite our paper as follows: @inproceedings{zhang-etal-2021-aspect-sentiment, title = “Aspect Sentiment Quad Prediction as Paraphrase Generation”, author = “Zhang, Wenxuan and Deng, Yang and Li, Xin and Yuan, Yifei and Bing, Lidong and Lam, Wai”, booktitle =    

Read more

Distributed Arcface Training in Pytorch

This is a deep learning library that makes face recognition efficient, and effective, which can train tens of millionsidentity on a single server. Requirements How to Training To train a model, run train.py with the path to the configs: 1. Single node, 8 GPUs: python -m torch.distributed.launch –nproc_per_node=8 –nnodes=1 –node_rank=0 –master_addr=”127.0.0.1″ –master_port=1234 train.py configs/ms1mv3_r50 2. Multiple nodes, each node 8 GPUs: Node 0: python -m torch.distributed.launch –nproc_per_node=8 –nnodes=2 –node_rank=0 –master_addr=

Read more

Python Service for MISP Feed Management

Python Service for MISP Feed Management This set of scripts is designed to offer better reliability and more control over the fetching of feeds into MISP. For the moment, the schedule is broken up into multiple components, at the top of each plugin and in config.py: MISP_TIMES: An array of times (24hr format) when enabled MISP feeds will be fetched and cached. TEXT_TIMES: An array of times (24hr format) when enabled plaintext and CSV feeds will be fetched and cached. […]

Read more

A Powerful HTML white space remover for Django

HTML Whitespace remover for Django Introduction : A powerful tool to optimize Django rendered templates Why use “django_stip_whitespace” ? Adds line break to InlineJS. It can automagically minify inline CSS, JS. Removes from HTML. It speeds up website by reducing the HTML size. Drop in replacement for django.gzip.GzipMiddleware. It compiles regex at runtime. So it’s blazing fast. Its mostly based on C ( gzip ) and Rust ( minify-html ) libraries. Significantly    

Read more
1 489 490 491 492 493 1,076