Skip to content

Instantly share code, notes, and snippets.

View MinhasKamal's full-sized avatar

Minhas Kamal MinhasKamal

View GitHub Profile
@MinhasKamal
MinhasKamal / ImageConverter.m
Last active December 7, 2015 17:37
⤵️ A MATLAB program converts image type.
folderName = 'D:\Images\IMAGES_FOR_PROCESSING\lfwcrop_grey\faces';
imagefiles = dir(strcat(folderName, '\*.pgm'));
nfiles = length(imagefiles);
for i=1:nfiles
currentfilename=imagefiles(i).name;
I = imread(strcat(folderName, '\', currentfilename));
[pathstr,name,ext] = fileparts(currentfilename);
currentfilename = name;
@MinhasKamal
MinhasKamal / Pronouncer.vbs
Last active December 7, 2015 15:47
👄 Calls Windows' built-in pronouncer.
Dim message, sapi
message = InputBox("What do you want me to pronounce?")
set sapi = CreateObject("sapi.spvoice")
sapi.speak message
@MinhasKamal
MinhasKamal / BatchFileRename.bat
Last active December 7, 2015 15:38
🔨 Place the file in specific directory & run it.
@rename * *.txt
@MinhasKamal
MinhasKamal / UnHideAllFile.bat
Last active December 7, 2015 15:37
🔨 Place the file in specific directory & run it.
attrib -h -r -s *.*
@MinhasKamal
MinhasKamal / ShortcutFixer.bat
Last active December 7, 2015 15:39
🔨 Fixes pendrive attacked by shortcut virus.
@echo ---------------------------------------------------------------
@echo Shortcut Fixer
@echo ---------------------------------------------------------------
@echo Instructions:
@echo 1. insert your pendrive
@echo 2. input your pen drive letter [**be very carefull**]
@echo ---------------------------------------------------------------
@pause
@echo.
@echo Enter drive letter:
##Writer: Minhas Kamal
##Date: 03-March-2014
##Function: Finds the highest and lowest integer from a definite number of integers
##Technology: MIPS
#####**data**#####
.data
prompt1: .asciiz "\n\nEnter number of integers: "
##Writer: Minhas Kamal
##Date: 03-March-2014
##Function: Takes a char input and prints if it is a vowel or constant
##Technology: MIPS
#####data#####
.data
prompt: .asciiz "Enter your character: "
##Writer: Minhas Kamal
##Date: 02-MAY-2014
##Function: This program is a simple demonstration of stack.
##Technology: MIPS
#####**data**#####
.data
prompt: .asciiz "\n# What operation do you want to perform?\nPress-\t1.for push \n\t2.for pop \n\t3.for print all \n\t4.for exit \nSelection: "
prompt2: .asciiz "Enter the value: "
##Writer: Minhas Kamal
##Date: 01-MAY-2014
##Function: Finds prime numbers in a certain range.
##Technology: MIPS
#####**data**#####
.data
prompt: .asciiz "Enter your range: "
new_line: .asciiz "\n"
/**
* Name: Minhas Kamal
* Date: 02-Apr-2013
**/
#include <stdio.h>
float sqrt(int i);
int main()