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
| const decryptFile = (filePath, sKey) => { | |
| fs.readFile(filePath, 'utf8', (err, data) => { | |
| if (err) throw err; | |
| let hash = computeSHA256(sKey); | |
| let buffer = Buffer.from(hash.toString(CryptoJS.enc.Hex), 'hex'); | |
| let key = new Uint8Array(buffer); | |
| buffer = Buffer.from(data.toString(CryptoJS.enc.Hex), 'hex'); | |
| let encryptedData = new Uint8Array(buffer); |
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
| // 1 | |
| DECLARE | |
| eno emp.empno%TYPE; | |
| ename emp.ename%TYPE; | |
| salary emp.salary%TYPE; | |
| CURSOR c_emp is | |
| SELECT empno,ename,salary FROM emp where rownum < 6 order by salary desc; | |
| BEGIN | |
| OPEN c_emp; | |
| LOOP |
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
| DO $$ | |
| DECLARE | |
| rec RECORD; | |
| BEGIN | |
| FOR rec IN SELECT * FROM transaction_status WHERE transaction_id = 31 | |
| LOOP | |
| RAISE NOTICE '%', rec.status_msg; | |
| END LOOP; | |
| END; | |
| $$ LANGUAGE plpgsql; |
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 table sales ( | |
| id number(5) primary key, | |
| customer_id number(10), | |
| product_id number(5), | |
| quantity number(5) | |
| ) | |
| drop table sales; | |
| drop table products; |
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
| user_type | |
| id int primary key | |
| type varchar | |
| doctors | |
| id int primary key | |
| name varchar | |
| designation varchar |
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<iostream> | |
| #include<thread> | |
| #include<fstream> | |
| using namespace std; | |
| /*input | |
| 4 //number of matrix | |
| 2 2 //dimension | |
| 1 2 | |
| 4 5 |
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<iostream> | |
| #include<fstream> | |
| #include<deque> | |
| #include <algorithm> | |
| using namespace std; | |
| //input | |
| /* | |
| 6 2 //totalProcess timeQuantum |
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<iostream> | |
| #include <GL/gl.h> | |
| #include <GL/glut.h> | |
| using namespace std; | |
| int R; | |
| int h, k; | |
| int startX, startY; | |
| void drawAxes(){ |
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
| describe emp; | |
| describe dept; | |
| select emp.empno from emp; | |
| -- 1 | |
| DECLARE | |
| e_no emp.empno % TYPE := :input_no; | |
| ename emp.ename % TYPE; |
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<iostream> | |
| #include <GL/gl.h> | |
| #include <GL/glut.h> | |
| using namespace std; | |
| double x1 = 0; | |
| double y1 = 0; | |
| double x2 = 0; | |
| double y2 = 0; |