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 | |
| $con=mysql_connect("localhost","root",""); | |
| mysql_select_db("project",$con); | |
| $allQues = $_POST['ques']; | |
| $individualQues = explode(',', $allQues); | |
| foreach($individualQues as $key => $quesToInsert) | |
| { |
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 DEPARTMENT | |
| ( | |
| DEPT_NO VARCHAR2(2) PRIMARY KEY, | |
| DEPT_NAME VARCHAR2(25), | |
| DEPT_DESCRIPTION VARCHAR2(100) | |
| ); | |
| ----- | |
| CREATE TABLE CATEGORY |
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
| -------- JNTU LAB ANSWERS ----- PRUTHVI, SRIT -- ANANTAPUR -- 17-FEB-2015------- | |
| CREATE TABLE DEPARTMENT | |
| ( | |
| DEPTNO NUMBER(2) PRIMARY KEY, | |
| DEPTNAME VARCHAR2(4) NOT NULL, | |
| DESCRIPTION VARCHAR(50) | |
| ); | |
| CREATE TABLE EMPLOYEE |
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
| import java.util.Scanner; | |
| class Complex | |
| { | |
| private float real; | |
| private float imaginary; | |
| public void display() | |
| { | |
| if(imaginary > 0) | |
| System.out.println(real + "+" + imaginary + "i"); | |
| else |
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 | |
| //$a is the Array with final result that we gathered after traversing through all the words in the question | |
| $a = array( | |
| "Synthesize" => 3, | |
| "Evaluate" => 3, | |
| "Applying" => 3 | |
| ); | |
| //$priorities is just a array with constants that shouldn't be replaced which are ordered a/c to booles's taxonomy thing | |
| $priorities = array( | |
| "Synthesize" => 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
| package apples; | |
| import java.awt.*; | |
| import java.awt.event.ActionEvent; | |
| import java.awt.event.ActionListener; | |
| import javax.swing.*; | |
| import javax.script.ScriptEngineManager; | |
| import javax.script.ScriptEngine; | |
| import javax.script.ScriptException; |
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
| // Use Gists to store code you would like to remember later on | |
| console.log(window); // log the "window" object to the console |
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
| ### A program to download wallpapers from alphacoders.com | |
| ###Author: N.V.Pruthvi Raj, Anantapur, India. | |
| ###Date: 23/12/2014 | |
| import requests | |
| import shutil | |
| import re | |
| import os | |
| from bs4 import BeautifulSoup | |
| url = 'http://wall.alphacoders.com/by_sub_category.php?id=173173&name=Naruto&page=1' | |
| baseurl = url[0:url.find('page=')+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> | |
| #define SIZE 100 | |
| using namespace std; | |
| class node | |
| { | |
| public: | |
| 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
| import pygame, sys | |
| from pygame.locals import * | |
| FPS = 4 | |
| csize = 10 | |
| wwidth = int(input("Enter width of the table: "))*csize | |
| wheight = int(input("Enter size of the table: "))*csize | |
| cwidth = wwidth / csize |