qBittorrent 设置教程 - EvineDeng - 简书
#include <algorithm> | |
#include <string> | |
#include <iostream> | |
template<typename IntType> | |
class fraction { | |
IntType A; | |
IntType B; | |
public: | |
static IntType gcd(IntType x, IntType y) { |
from urllib.parse import urlparse, urljoin, parse_qsl, urlencode | |
class URLSearchParams: | |
def __init__(self, options: str = '', hook = None) -> None: | |
self.hook = hook | |
if type(options) is str: | |
if len(options) == 0: | |
self.l = list() | |
else: | |
self.l = parse_qsl(options[1:] if options[0] == '?' else options) |
#include <vector> | |
#include <string> | |
#include <numeric> | |
auto prettify(std::vector<std::string> const& v) { | |
return "[" | |
+ (v.empty() ? "" : ("'" + v.front() + "'" | |
+ std::accumulate( v.begin() + 1, v.end(), std::string(), | |
[](std::string& s, auto const & t){ return std::move(s) + ", '" + t + "'";} ))) | |
+ "]"; |
draw.io, available at https://app.diagrams.net, is an easy-to-use diagramming tool. However, the exporting of *.drawio
files needs to be taken care of most of the times.
As for PNG exporting, currently the default setting may generates blurring image. Fortunately, this can be fixed by scaling the diagram into a larger one. [^png-export]
As for the SVG, things become a bit complicated.
When user viewing the software exported SVG files in a web browser, everything seems just fine. But when they try importing these SVGs into softwares like Word or Inkscape, users may see a "Viewer does not support full SVG 1.1" (now changed to "Text is not SVG - cannot display") text on their image.
__pycache__/ |
The reason I built this was that I was unable to find a tool to convert Windows Terminal's output to SVG (not a animated SVG, just a screenshot).
Since one can copy Windows Terminal's output as HTML code, I tried to find some tools to convert HTML to SVG. But I can't find any either.
By the way, Asciinema can record CLI output in its own format, and it can save its recordings as 'raw' format, in which I guess are some escape sequences. Maybe one can choose to convert those sequence to SVG.
Update: I found something that might be seful:
C++ implementation: Solving a 9 × 9 Sudoku
GitHub Repo: https://github.com/tsagaanbar/sudoku-solve
R | opcode | rs | rt | rd | shamt |
package com.henry.net; | |
import java.io.IOException; | |
import java.io.ObjectInputStream; | |
import java.io.ObjectOutputStream; | |
import java.net.Socket; | |
import java.util.Arrays; | |
public class Client { | |
private Socket socket; |