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
__author__ = "K.M. Tahsin Hassan Rahit" | |
__email__ = "[email protected]" | |
import pandas as pd | |
import statsmodels.api as sm | |
import matplotlib.pylab as plt | |
from matplotlib import * | |
from spectrum import * | |
from pylab import * | |
import spectrum.arma |
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
__author__ = "K.M. Tahsin Hassan Rahit" | |
__email__ = "[email protected]" | |
import cv2 | |
import numpy as np | |
def dilate(img, struct_element, origin): | |
h, w = img.shape | |
result = img[:,:] | |
add_y = struct_element.shape[0] - origin[0] |
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
""" | |
edges.py: Canny, Prewitt and Sobel Edge detection using opencv | |
""" | |
__author__ = "K.M. Tahsin Hassan Rahit" | |
__email__ = "[email protected]" | |
import cv2 | |
import numpy as np | |
img = cv2.imread('messi5.jpg') |
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
from myapp.models import Attribute, Item, ItemAttribute | |
from django.forms import ModelForm, HiddenInput, IntegerField, CharField | |
class ItemForm(ModelForm): | |
class Meta(): | |
model = Item | |
exclude = ['attributes'] |
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
# My project directory is /home/rahit/www/mysite. I am storing cache file in my project folder under cache folder. | |
# You can use any of your prefered location in system. may be: /tmp/nginx | |
# I am naming keys_zone name my_cache. You can give it yours. We will need it later on in proxy_cache. | |
# Just make sure you put same zone name there | |
proxy_cache_path /home/rahit/www/mysite/cache levels=1:2 keys_zone=my_cache:10m max_size=1G; | |
# This is our media server, which will be used to resize and crop. |
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
''' | |
Script to analyze log file and monitor changes | |
@Author: K.M. Tahsin Hassan Rahit <[email protected]> (12-21206-1) | |
''' | |
from Tkinter import * | |
from bsddb.dbtables import _columns_key | |
from difflib import Differ | |
from glob import glob |