Skip to content

Instantly share code, notes, and snippets.

View iamvee's full-sized avatar
🐝
let it 🐝

Vahid Naeini iamvee

🐝
let it 🐝
  • Texas, USA
  • 06:44 (UTC -05:00)
View GitHub Profile
@iamvee
iamvee / xmlrpc_numpy_server.py
Created October 27, 2022 14:20
Serialize matrix computations to another machine or python instance which using numpy.
#!/usr/bin/env python
@iamvee
iamvee / README.md
Created October 21, 2022 07:21 — forked from mahmoud-eskandari/README.md
Install v2ray on Bridge:(Ubuntu +18 via systemd) - Upstream (Ubuntu +18/CentOS +7 via docker)

برای شروع میتوانید یک دایرکتوری در سرور خارجی ایجاد کنید و وارد آن شوید.

mkdir vmess
cd vmess
import random
def miller_rabin(n, k):
if n == 2:
return True
if n % 2 == 0:
return False
@iamvee
iamvee / main.py
Last active October 30, 2021 15:22
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 ''}م"
@iamvee
iamvee / notebook.ipynb
Last active October 29, 2021 07:08
repr and str and repr_html
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@iamvee
iamvee / config
Last active June 29, 2021 12:01
copy ssh key
# sample ssh config file
# $HOME/.ssh/config
Host folan-computer-e-remote
HostName 123.45.67.89
Port 12345
User mammad
@iamvee
iamvee / template.ipynb
Last active January 31, 2021 21:51
tweets
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@iamvee
iamvee / gist:b310d70e47cb180104a9ff6a7940f775
Last active November 21, 2021 16:37
facial landmarks detection
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
import setuptools
setuptools.setup(
name="jalinux",
version="0.0.2",
author="Vahid Naeini",
install_requires=['docutils>=0.3'],
author_email="naeini.v@gmail.com",
description="A small example package",