From c0ff77dc591db2d6091beec6ee8181e06e5b8cfc Mon Sep 17 00:00:00 2001 From: Sagar Vakkala Date: Sat, 1 Sep 2018 18:57:58 +0530 Subject: [PATCH 1/7] Upadated README Added maintainers --- README.md | 34 +++++++++++++++++++--------------- 1 file changed, 19 insertions(+), 15 deletions(-) diff --git a/README.md b/README.md index 5dec48f0..1feadeb0 100644 --- a/README.md +++ b/README.md @@ -1,38 +1,42 @@ # Scripts Dump! > Your goto place to find and dump any script you want. - - - +> > **This is one of the first projects of codezoned, Show your :heart:** - +> > **[Make sure you join our community by clicking on this beautiful sentence](http://talk.codezoned.com) ** - +> > or just visit http://talk.codezoned.com - - -ScriptsDump is a complete repository of all kind of scripts we and you can think of. Scripts written in any languages are welcomed but we at codezoned tend to lean towards **Python and Go** :wink:. +ScriptsDump is a complete repository of all kind of scripts we and you can think of. Scripts written in any languages are welcomed but we at codezoned tend to lean towards **Python and Go** :wink:. ## Structure + Simplified structure of *ScriptsDump* -* **[Sorting](/Arrays-Sorting/src)** +- **[Sorting](/Arrays-Sorting/src)** + +- **[Searching](/Arrays-searching/src)** + +- **[Automation](Automation/src)** -* **[Searching](/Arrays-searching/src)** +- **[Filters](Filters/src)** -* **[Automation](Automation/src)** +- **[FTP Stuff](/FTP_Stuff/src)** -* **[Filters](Filters/src)** +- **[Machine Learning](/Machine_Learning/src/)** -* **[FTP Stuff](/FTP_Stuff/src)** +- **[Json Parser](/Json_Parser/src)** -* **[Machine Learning](/Machine_Learning/src/)** +## Maintainers -* **[Json Parser](/Json_Parser/src)** +We're always looking out for people who're enthusiastic to work and collaborate with people. If you want to become a maintainer at ScriptsDump youu can contact us support@codezoned.com +**The current maintainers are:** +- [Manish Kumar (master-fury)] (https://github.com/master-fury) +- [Senthil Kumar (Rats12)] (https://github.com/Rats12) From dfede7d18d4980c98cf6432f3a79900952f2677a Mon Sep 17 00:00:00 2001 From: Sagar Vakkala Date: Sat, 1 Sep 2018 19:01:46 +0530 Subject: [PATCH 2/7] Some more changes --- README.md | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 1feadeb0..e23d3444 100644 --- a/README.md +++ b/README.md @@ -34,11 +34,9 @@ We're always looking out for people who're enthusiastic to work and collaborate **The current maintainers are:** -- [Manish Kumar (master-fury)] (https://github.com/master-fury) - -- [Senthil Kumar (Rats12)] (https://github.com/Rats12) - +- [Manish Kumar](https://github.com/master-fury) +- [Senthil Kumar (Rats12)]([https://github.com/Rats12](https://github.com/Rats12) ## Contributions From 0cb655bfbe7dba6135988e75315f215ebc3a7ccd Mon Sep 17 00:00:00 2001 From: Sagar Vakkala Date: Sat, 1 Sep 2018 19:02:34 +0530 Subject: [PATCH 3/7] stupidity --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index e23d3444..c3e052de 100644 --- a/README.md +++ b/README.md @@ -36,7 +36,7 @@ We're always looking out for people who're enthusiastic to work and collaborate - [Manish Kumar](https://github.com/master-fury) -- [Senthil Kumar (Rats12)]([https://github.com/Rats12](https://github.com/Rats12) +- [Senthil Kumar (Rats12)](https://github.com/Rats12) ## Contributions From e2f753357b23182c6c42e00edfcda12bab28065d Mon Sep 17 00:00:00 2001 From: Manish Kumar Date: Sat, 1 Sep 2018 19:07:45 +0530 Subject: [PATCH 4/7] Image Processing Binary Image --- Image_Processing/src/binary_image.m | 43 +++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 Image_Processing/src/binary_image.m diff --git a/Image_Processing/src/binary_image.m b/Image_Processing/src/binary_image.m new file mode 100644 index 00000000..110402ca --- /dev/null +++ b/Image_Processing/src/binary_image.m @@ -0,0 +1,43 @@ +%Binary Image by Master-Fury + +clear all; + +%Setting the directory +fpath1=fullfile('C:\Users\Manish (Master)\Desktop\images'); % Add your directory +addpath(fpath1); +basefile=sprintf('*.png'); % Add format of image +all_images=fullfile(fpath1,basefile); +fnames=dir(all_images); + + +% READING OF IMAGE +for i = 1:length(fnames) + all_images = fullfile(fnames(i).folder, fnames(i).name); + I = imread(all_images); % Image reading using imread + figure + imshow(I) % To see original image + title('Original Image'); + % The original image contains colors RGB (in matlab it stores in the format RBG) + % Conversion of image into gray-scale image can be done by removing any one color from image. + + Gray_Scale=I(:,:,2); % Green color removed. + figure + imshow(Gray_Scale) + title('Grey-Scale Version of Image') + + % Conversion of GRAY-SCALE to BINARY IMAGE + Binary_Image = imbinarize(Gray_Scale,'adaptive','ForegroundPolarity','dark','Sensitivity',0.4); + % You can use different methods like instead of adaptive you can use global(by defauult). + % Foreground Polarity can be dark or bright (refer documentaion for more info) + % Sensitivity can be from 0 to 1 , by default it is 0.5 + figure + imshow(Binary_Image) + title('Binary Version of Image') +end +% SPECIAL NOTE +% There is major difference between gray-scale image and binary image. The +% differnce is - binary images consists only 0 & 1 (refer workspace) matrix +% 1 represents white and 0 represents black. +% A binary image is a digital image that has only two possible values for each pixel. +% In the case of gray scale image, +% for example 8-bit gray scale image (2^8=256) pixel value may vary between 0 to 256. \ No newline at end of file From b0bc8dc93778e0eb376a6f2a4904ab78b990c223 Mon Sep 17 00:00:00 2001 From: Manish Kumar <33159194+master-fury@users.noreply.github.com> Date: Sat, 1 Sep 2018 19:12:22 +0530 Subject: [PATCH 5/7] Minor changes in comments --- Image_Processing/src/{binary_image.m => Binary_Image.m} | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) rename Image_Processing/src/{binary_image.m => Binary_Image.m} (95%) diff --git a/Image_Processing/src/binary_image.m b/Image_Processing/src/Binary_Image.m similarity index 95% rename from Image_Processing/src/binary_image.m rename to Image_Processing/src/Binary_Image.m index 110402ca..208d67f6 100644 --- a/Image_Processing/src/binary_image.m +++ b/Image_Processing/src/Binary_Image.m @@ -2,7 +2,7 @@ clear all; -%Setting the directory +%Setting up the directory fpath1=fullfile('C:\Users\Manish (Master)\Desktop\images'); % Add your directory addpath(fpath1); basefile=sprintf('*.png'); % Add format of image @@ -27,7 +27,7 @@ % Conversion of GRAY-SCALE to BINARY IMAGE Binary_Image = imbinarize(Gray_Scale,'adaptive','ForegroundPolarity','dark','Sensitivity',0.4); - % You can use different methods like instead of adaptive you can use global(by defauult). + % You can use different methods like instead of adaptive you can use global(by default). % Foreground Polarity can be dark or bright (refer documentaion for more info) % Sensitivity can be from 0 to 1 , by default it is 0.5 figure @@ -40,4 +40,4 @@ % 1 represents white and 0 represents black. % A binary image is a digital image that has only two possible values for each pixel. % In the case of gray scale image, -% for example 8-bit gray scale image (2^8=256) pixel value may vary between 0 to 256. \ No newline at end of file +% for example 8-bit gray scale image (2^8=256) pixel value may vary between 0 to 256. From 3ec8299004bcb61b9852e8a0df118be298db6199 Mon Sep 17 00:00:00 2001 From: Manish Kumar Date: Sat, 1 Sep 2018 19:20:13 +0530 Subject: [PATCH 6/7] Structure Change --- .../src/Filters}/src/gaussian_filter/gaussian_filter.py | 0 .../src/Filters}/src/median_filter/median_filter.py | 0 .../src/Armstrong_Number.py | 9 ++++----- 3 files changed, 4 insertions(+), 5 deletions(-) rename {Filters => Image_Processing/src/Filters}/src/gaussian_filter/gaussian_filter.py (100%) rename {Filters => Image_Processing/src/Filters}/src/median_filter/median_filter.py (100%) rename general_problems/armstrong.py => Mathematical_Algorithms/src/Armstrong_Number.py (52%) diff --git a/Filters/src/gaussian_filter/gaussian_filter.py b/Image_Processing/src/Filters/src/gaussian_filter/gaussian_filter.py similarity index 100% rename from Filters/src/gaussian_filter/gaussian_filter.py rename to Image_Processing/src/Filters/src/gaussian_filter/gaussian_filter.py diff --git a/Filters/src/median_filter/median_filter.py b/Image_Processing/src/Filters/src/median_filter/median_filter.py similarity index 100% rename from Filters/src/median_filter/median_filter.py rename to Image_Processing/src/Filters/src/median_filter/median_filter.py diff --git a/general_problems/armstrong.py b/Mathematical_Algorithms/src/Armstrong_Number.py similarity index 52% rename from general_problems/armstrong.py rename to Mathematical_Algorithms/src/Armstrong_Number.py index 6601e7f0..8523729b 100644 --- a/general_problems/armstrong.py +++ b/Mathematical_Algorithms/src/Armstrong_Number.py @@ -1,5 +1,4 @@ -#by: shashank -#armstrong number +# ARMSTRONG NUMBER BY SHASHANK num=int(input('Enter a Number:')) Sum=0 @@ -8,13 +7,13 @@ digit=temp%10 Sum+=digit**3 temp//=10 - # print(digit,temp,Sum) + if (num == Sum): - print('armstrong') + print('Hurray! It is a Armstrong Number') else: - print('not armstrong') + print('Sorry! Try again, Its not a Armstrong Number') From 1545757370dda27d6391e061d9a227a84ca358a8 Mon Sep 17 00:00:00 2001 From: Manish Kumar Date: Sun, 2 Sep 2018 22:48:55 +0530 Subject: [PATCH 7/7] Readme update --- README.md | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index c3e052de..b396cbcc 100644 --- a/README.md +++ b/README.md @@ -1,18 +1,18 @@ # Scripts Dump! > Your goto place to find and dump any script you want. -> +> > **This is one of the first projects of codezoned, Show your :heart:** -> +> > **[Make sure you join our community by clicking on this beautiful sentence](http://talk.codezoned.com) ** -> +> > or just visit http://talk.codezoned.com ScriptsDump is a complete repository of all kind of scripts we and you can think of. Scripts written in any languages are welcomed but we at codezoned tend to lean towards **Python and Go** :wink:. ## Structure -Simplified structure of *ScriptsDump* +>Simplified structure of *ScriptsDump* - **[Sorting](/Arrays-Sorting/src)** @@ -20,7 +20,7 @@ Simplified structure of *ScriptsDump* - **[Automation](Automation/src)** -- **[Filters](Filters/src)** +- **[Image Processing](/Image_Processing/src)** - **[FTP Stuff](/FTP_Stuff/src)** @@ -28,6 +28,8 @@ Simplified structure of *ScriptsDump* - **[Json Parser](/Json_Parser/src)** +- **[Mathematical Algorithms](/Mathematical_Algorithms/src)** + ## Maintainers We're always looking out for people who're enthusiastic to work and collaborate with people. If you want to become a maintainer at ScriptsDump youu can contact us support@codezoned.com