Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 hidden or 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
Dervative is rate of change. | |
`Hello` |
This file contains hidden or 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
echo $"Script Written by $(tput setaf 5)Bikram Hanzra$(tput sgr 0) ([email protected])"$ | |
if [ "$#" == 0 ] ; then | |
echo "$(tput setaf 1)We need at least 2 arguments" | |
echo "SYNTAX ./remove <file-name> <text-to-be-removed>" | |
echo "<text-to-be-removed> by default = www.it-ebooks.info$(tput sgr 0)" | |
exit | |
fi | |
if [ "$#" == 1 ] ; then |
This file contains hidden or 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
# Question 1 | |
# http://progexercise.dev.indeed.net/progcontest/problems/1 | |
input = "RUNNINGWITHSCISSORS" | |
list = list(input) | |
dic = {} | |
count = len(list); |
This file contains hidden or 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
# zip([iterable, ...]) | |
# This function returns a list of tuples, | |
# where the i-th tuple contains the i-th | |
# element from each of the argument sequ- | |
# ences or iterables. | |
a = [1, 2, 3, 4, 5, 6]; | |
b = [6, 5, 4, 3, 2, 1]; | |
c = [cA*cB for cA, cB in zip(a, b)]; # c = [6, 10, 12, 12, 10, 6] | |
# Sorting using keys |
This file contains hidden or 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 argparse | |
# Download the image used for this tutorial from here. | |
# http://goo.gl/jsYXl8 | |
# Read the image | |
ap = argparse.ArgumentParser(); | |
ap.add_argument("-i", "--image", required = True, help = "path to the image file"); | |
args = vars(ap.parse_args()); |
This file contains hidden or 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
# This python script demonstrates how we can use a 3D | |
# histogram in OpenCV to sort the colors and find the | |
# max color in a image | |
import cv2 | |
import numpy as np | |
# Read the image | |
image = cv2.imread("/home/bikz05/Desktop/dataset/0.png"); |
This file contains hidden or 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
### colormath is needed to run the script | |
### Ubuntu users can get it by typing the 2 command below - | |
### `sudo apt-get install python-pip` | |
### `sudo pip install colormath` | |
from colormath.color_objects import sRGBColor, LabColor | |
from colormath.color_conversions import convert_color | |
from colormath.color_diff import delta_e_cie2000 | |
# Red Color |