Deploying a FastAPI application on Ubuntu 22.04 for a real project involves several steps, including setting up the server, installing necessary software, configuring the application, and setting up a reverse proxy. Here's a step-by-step tutorial
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
def get_wb_url(nm): | |
vol = nm // 100000 | |
part = nm // 1000 | |
if (vol >= 0 and vol <= 143) : | |
host = "//basket-01.wb.ru" | |
if vol >= 144 and vol <= 287: | |
host = "//basket-02.wb.ru" | |
if vol >= 288 and vol <= 431: | |
host = "//basket-03.wb.ru" | |
if vol >= 432 and vol <= 719: |
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
public static class Helper | |
{ | |
public static string getMonthName ( DateTime dt ) { | |
string[] m = new string[]{ | |
"Январь", | |
"Февраль", | |
"Март", | |
"Апрель", | |
"Май", |
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
set number | |
set foldmethod=manual | |
set viminfo='1000,f1 | |
set showcmd | |
set incsearch | |
set hlsearch | |
set ruler | |
set showmatch | |
set cursorline |
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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8"> | |
<title>FETCH JS</title> | |
</head> | |
<body> | |
<h1>Authors</h1> | |
<ul id="authors"></ul> |
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
using System; | |
using System.IO; | |
using System.Text; | |
public class Script | |
{ | |
public static object Execute() | |
{ | |
using (var sw = new StreamWriter(@"C:\Users\shilgen\Documents\1.csv", false, Encoding.UTF8)) | |
{ |
NewerOlder