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
@echo off | |
adb shell screencap -p /sdcard/screen.png | |
adb pull /sdcard/screen.png | |
adb shell rm /sdcard/screen.png | |
mspaint "screen.png" |
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
#include <stdio.h> | |
#include<string.h> | |
#include<ctype.h> | |
#define MAX_SIZE 100 | |
char expr[MAX_SIZE] = {0}; | |
char STACK[MAX_SIZE] = {0}, POST[MAX_SIZE] = {0}; | |
int top=-1; | |
int rear=-1,front=-1; |
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
#include<stdio.h> | |
#include<string.h> | |
/*******/ | |
// row 1 : no of rules | |
// rows>1: production rules | |
/*******/ | |
int p; | |
char NTERM[20]; | |
char LHS[20]; | |
char RHS[20][10]; |
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
#include<stdlib.h> | |
#include<stdio.h> | |
#include<ctype.h> | |
#include<string.h> | |
char buff[255]; | |
FILE *fpout; | |
int i; | |
void append(char ch){buff[i++]=ch;buff[i]='\0';} | |
int identify(){ | |
char keywords[32][8] = {"auto","break","case","char","const","continue","default", |
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
#include<stdio.h> | |
#define MAXSIZE 10 | |
int iS,iC; | |
char closure[MAXSIZE],stack[MAXSIZE]; | |
void stackPush(char arg){ | |
if(iS==MAXSIZE){ | |
printf("Stack overflow"); | |
return; | |
} | |
stack[iS++]=arg; |
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
#include <stdio.h> | |
/* input format | |
row 1: input symbols | |
row 2: non-final states | |
row 3: final states | |
rows>3: transition table | |
*/ | |
int table[10][10]; | |
int matrix[10][10]={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
import cv2 | |
import numpy as np | |
#import image | |
image = cv2.imread('1.png') | |
# image = cv2.imread('malayalam.jpg') | |
# image = cv2.imread('medium.png') | |
#cv2.imshow('orig',image) | |
#cv2.waitKey(0) | |
#grayscale |
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
#include<stdio.h> | |
#include<malloc.h> | |
/****************/ | |
//Author: Amal Jossy | |
//Description: Convert given E-NFA to NFA | |
//input format - | |
//row 1 : no of transitions | |
//rows>1: transitions "qi input qj" | |
/*****************/ | |
typedef struct trans TRANS; |
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
#include<stdio.h> | |
/****************************/ | |
// input: row 1: Length of language | |
// row 2: Input symbols | |
// row 3: No of Transitions | |
// row >3: "qi input qj" | |
/****************************/ | |
typedef struct trans TRANS; |