png file added to comments here
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 numpy as np | |
import matplotlib.pyplot as plt | |
import scipy.stats as stats | |
# source: https://asriran.com/fa/news/922435 | |
income_max_values = [30, 64, 92, 116, 141, 165, 192, 225, 280, 429, 450] | |
percentiles = [0, 10, 20, 30, 40, 50, 60, 70, 80, 90, 99, 100] | |
conversion_rate = 58850 | |
monthly_income_max_values = [value / 12 for value in income_max_values] | |
usd_monthly_income_max_values = [(value * 1_000_000) / 12 / conversion_rate for value in income_max_values] |
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
#!/usr/bin/env python |
برای شروع میتوانید یک دایرکتوری در سرور خارجی ایجاد کنید و وارد آن شوید.
mkdir vmess
cd vmess
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 random | |
def miller_rabin(n, k): | |
if n == 2: | |
return True | |
if n % 2 == 0: | |
return False |
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 re | |
from urllib.request import urlopen | |
url = "https://raw.githubusercontent.com/shahind/Persian-Words-Database/master/distinct_words.txt" | |
with urlopen(url) as f: | |
words = f.read().decode('utf-8').split('\n') | |
output = lambda w: f"به {w[:2]} نگو {w[2:]}، {w} تو نیست{'ی' if w[:2]=='ما' else ''}م" |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
# sample ssh config file | |
# $HOME/.ssh/config | |
Host folan-computer-e-remote | |
HostName 123.45.67.89 | |
Port 12345 | |
User mammad |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
NewerOlder