- follow the instruction https://devops.ionos.com/tutorials/deploy-a-flask-application-on-ubuntu-1404/
- if denied from clients, follow this instruction https://linux.101hacks.com/unix/client-denied-by-server-configuration/
- checkout my wsgi config
- be happy
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
# Put your text here | |
words = 'word-art' | |
n_special_characters = 0 | |
for w in words: | |
n_special_characters += w.isalpha() | |
n_special_characters = len(words) - n_special_characters | |
words = words.upper() |
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 cv2 | |
import numpy as np | |
import matplotlib.pyplot as plt | |
# Put your text here | |
words = 'word-art' | |
n_special_characters = 0 | |
for w in words: | |
n_special_characters += w.isalpha() |
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
#include <iostream> | |
#include <vector> | |
using namespace std; | |
int main() { | |
int N; | |
cin >> N; | |
vector<pair<int, int> > ps; |
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_time(**time): | |
time_now = datetime.now() | |
datetime_format = '%Y-%m-%d %H:%M' | |
time_now = datetime.strptime(time_now, datetime_format) | |
time_des = f"{time['year'] + time_now}-{time['month']}-{time['day']} {time['hour']}:{time['minute']}" | |
diff = time_now - datetime.strptime(time_des, datetime_format) | |
print("Difference:", diff) |