Skip to content

Instantly share code, notes, and snippets.

View moaminsharifi's full-sized avatar
🎆
HARDCODE (not CORE)

Amin Sharifi moaminsharifi

🎆
HARDCODE (not CORE)
View GitHub Profile
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@moaminsharifi
moaminsharifi / persian-character-in-opencv.ipynb
Created April 8, 2021 13:57
persian-character-in-opencv
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@moaminsharifi
moaminsharifi / moby_dick_four_chapters.txt
Created December 26, 2020 13:00
moby_dick_four_chapters.txt dataset
Call me Ishmael. Some years ago--never mind how long
precisely--having little or no money in my purse, and nothing
particular to interest me on shore, I thought I would sail about a
little and see the watery part of the world. It is a way I have of
driving off the spleen and regulating the circulation. Whenever I
find myself growing grim about the mouth; whenever it is a damp,
drizzly November in my soul; whenever I find myself involuntarily
pausing before coffin warehouses, and bringing up the rear of every
funeral I meet; and especially whenever my hypos get such an upper
hand of me, that it requires a strong moral principle to prevent me
@moaminsharifi
moaminsharifi / separate.py
Created December 25, 2020 14:11
Dataset Train and Test split
def separate(X, y, train_percent = 70):
"""Separate Function: separate data set to train and test part
Which Each dataset have fair part of each class(or lable)
Parameters
----------
X : numpy array or list
features of dataset
y : numpy array or list
label of dataset
@moaminsharifi
moaminsharifi / ferdosi_all_ganjoor_db_verses.txt
Created November 19, 2020 15:47
Ferdosi All Verses From Ganjoor DB
This file has been truncated, but you can view the full file.
برخیز و بیا بتا برای دل ما حل کن به جمال خویشتن مشکل ما
یک کوزه شراب تا بهم نوش کنیم زان پیش که کوزه ها کنند از گل ما
چون عهده نمی شود کسی فردا را حالی خوش دار این دل پر سودا را
می نوش به ماهتاب ای ماه که ماه بسیار بتابد و نیابد ما را
قرآن که مهین کلام خوانند آن را گه گاه نه بر دوام خوانند آن را
بر گرد پیاله آیتی هست مقیم کاندر همه جا مدام خوانند آن را
گر می نخوری طعنه مزن مستانرا بنیاد مکن تو حیله و دستانرا
تو غره بدان مشو که می مینخوری صد لقمه خوری که می غلام ست آنرا
هر چند که رنگ و بوی زیباست مرا چون لاله رخ و چو سرو بالاست مرا
معلوم نشد که در طربخانه خاک نقاش ازل بهر چه آراست مرا
@moaminsharifi
moaminsharifi / spotify_ad_blocker.md
Created October 16, 2020 05:38
#spotify ad blocker /etc/hosts

#spotify ad blocker

edit /etc/hosts on linux

c:\windows\system32\drivers\etc\hosts

127.0.0.1 media-match.com
127.0.0.1 adclick.g.doublecklick.net
127.0.0.1 www.googleadservices.com
127.0.0.1 open.spotify.com
127.0.0.1 pagead2.googlesyndication.com
@moaminsharifi
moaminsharifi / half_adder.vhd
Created October 10, 2020 15:34
Half Adder Module in VHDL (from: www.nandland.com)
library ieee;
use ieee.std_logic_1164.all;
use ieee.numeric_std.all;
entity half_adder is
port (
i_bit1 : in std_logic;
i_bit2 : in std_logic;
--
o_sum : out std_logic;
@moaminsharifi
moaminsharifi / face_landmark_with_openCV.ipynb
Last active September 15, 2020 15:15
Simple Face Land Mark with OpenCV
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@moaminsharifi
moaminsharifi / table-en.md
Last active June 21, 2020 09:33
A Step-by-Step Introduction to the Basic Object Detection Algorithms (Part 1) RCNN - Fast RCNN - Faster RCNN ــ پیشنهاد شی زمان بر هست و سیستم های مختلف یکی پس از دیگری کار میکنند ( به صورت توالی) که این باعث میشود کارایی کلی سیستم وابسته به توالی بین لایه ها داشته باشد. https://bigm.ir/a-step-by-step-introduction-to-the-basic-object-detection-a…
CNN
Algorithm Features Prediction time / image Limitations
@moaminsharifi
moaminsharifi / hog.py
Created June 4, 2020 05:08 — forked from aishwarya-singh25/hog.py
HOG feature Descriptor
#creating hog features
fd, hog_image = hog(resized_img, orientations=9, pixels_per_cell=(8, 8),
cells_per_block=(2, 2), visualize=True, multichannel=True)