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
2021-07-06 12:54:27.602 7603-7631/? E/AndroidRuntime: FATAL EXCEPTION: mqt_native_modules | |
Process: com.townapp, PID: 7603 | |
com.facebook.react.common.JavascriptException: Error: Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons: | |
1. You might have mismatching versions of React and the renderer (such as React DOM) | |
2. You might be breaking the Rules of Hooks | |
3. You might have more than one copy of React in the same app | |
See https://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem., stack: | |
br@77:41412 | |
default@382:130 | |
onMessage@392:1497 |
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
{ | |
"fee": ["₹100"], | |
"prize": ["First Prize ₹2000", "Second Prize ₹1500"], | |
"img": "", | |
"date": 13, | |
"time": "10 AM to 2 PM", | |
"venue": "Stage 2 Indoor Stadium", | |
"contacts": [ | |
["Sneha Ak", "8884926668"], ["Prithviraj", "9814253617"] | |
], |
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
SELECT NAME, ADDRESS FROM EMPLOYEE, DEPARTMENT WHERE EMPLOYEE.DNO=DEPARTMENT.DNO AND DNAME='ADMIN'; | |
SELECT NAME FROM EMPLOYEE e, WORKS_ON w, DEPARTMENT d WHERE d.DNUMBER=5 AND e.DNO=d.DNO AND w.ESSN=e.SSN; | |
UPDATE EMPLOYEE SET SALARY=SALARY*1.1 WHERE DEPARTMENT.DNUMBER=EMPLOYEE.DNO AND DEPARTMENT.NAME='Research'; | |
UPDATE EMPLOYEE SET SALARY=SALARY*1.1 WHERE DNO=(SELECT DNUMBER FRON DEPARTMENT WHERE DNAME='Research'); |
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
CREATE DATABASE database_name; | |
CREATE TABLE table_name( | |
col1 data_type1, | |
col2 data_type2 | |
); | |
CREATE TABLE student( | |
USN char(10), | |
Name char(30) |
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
int getMax(int arr[], int n) | |
{ | |
int mx = arr[0]; | |
for (int i = 1; i < n; i++) | |
if (arr[i] > mx) | |
mx = arr[i]; | |
return mx; | |
} | |
void countSort(int arr[], int n, int exp) | |
{ |
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
void swap(int&a, int&b) { | |
int temp; | |
temp = a; | |
a = b; | |
b = temp; | |
} | |
void display(int a[], int n) { | |
for (int i = 0; i < n; i++) | |
printf("%d ", a[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
<?php | |
if(!isset($_SESSION)) | |
{ | |
session_start(); | |
} | |
$db = mysqli_connect('localhost', 'root', '', 'registration'); | |
if(isset($_GET['r'])){ | |
$query = "DELETE from sem_record WHERE id = '".$_GET['r']."'"; |
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> | |
struct node | |
{ | |
int data; | |
struct node *left; | |
struct node *right; | |
}; | |
typedef struct node * NODE; |
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
b = isprime(6); | |
c = isprime([0 1 2 3 4 5 6 7]); | |
disp(b); | |
disp(c); | |
>> mupad; | |
numlib::lincongruence(7,19,23); | |
[6] |
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> | |
#define MALLOC(P, N, T) P=(T *)malloc(N*sizeof(T)) | |
struct node { | |
int c; | |
int e; | |
struct node *link; | |
}; |
NewerOlder