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
#! /usr/bin/expect -f | |
spawn telnet 192.168.1.1 | |
expect "Login:" | |
send "username\r" | |
expect "Password:" | |
send "password\r" | |
sleep 1 | |
send "?\r" | |
interact |
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
%Dialog Box to browse and select image | |
[name path]=uigetfile({'*.jpg','IMAGE Files (*.jpg)'},'Choose Image for Thresholding'); | |
A=imread(strcat(path,name)); | |
%converting rgb to gray | |
A=rgb2gray(A); | |
for i=1:255 | |
figure(1),imshow(A,[i 255-i]); | |
pause(0.01); | |
end |
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
#include<stdio.h> | |
#include<stdlib.h> | |
/*Struct flood require 256*4=1Kb */ | |
struct flood{ | |
long int a[256]; | |
}*temp; | |
void main() |
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
#include<stdio.h> | |
#include<io.h> | |
void create_folder(int n) | |
{ | |
int i; | |
char name[256]; | |
for(i=0;i<n;i++) | |
{ |
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
#include<stdio.h> | |
#include<stdlib.h> | |
void polynomial_insert(int *poly,int poly_size); | |
void polynomial_add(int *poly_1,int *poly_2,int *add,int poly_1_size,int poly_2_size); | |
void polynomial_display(int *poly,int poly_size); | |
int main() | |
{ | |
int p1_size,p2_size,size,i; |
NewerOlder