Skip to content

Instantly share code, notes, and snippets.

View devpruthvi's full-sized avatar
🎯
Focusing

Pruthvi Raj devpruthvi

🎯
Focusing
View GitHub Profile
@devpruthvi
devpruthvi / upload.php
Last active August 29, 2015 14:17
project help for varma bro inserting multiple questions at once
<?php
$con=mysql_connect("localhost","root","");
mysql_select_db("project",$con);
$allQues = $_POST['ques'];
$individualQues = explode(',', $allQues);
foreach($individualQues as $key => $quesToInsert)
{
CREATE TABLE DEPARTMENT
(
DEPT_NO VARCHAR2(2) PRIMARY KEY,
DEPT_NAME VARCHAR2(25),
DEPT_DESCRIPTION VARCHAR2(100)
);
-----
CREATE TABLE CATEGORY
@devpruthvi
devpruthvi / lab1.sql
Created February 17, 2015 12:51
jntu lab work
-------- 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
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
@devpruthvi
devpruthvi / Boolestaxonomy.php
Created February 1, 2015 15:10
Project Help for varma bro
<?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,
@devpruthvi
devpruthvi / 11(a).java
Created January 26, 2015 11:36
Calculator program
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;
@devpruthvi
devpruthvi / 0_reuse_code.js
Last active August 29, 2015 14:14
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
### 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]
@devpruthvi
devpruthvi / CQLL
Last active April 29, 2021 19:00
Circular Queue using Linked List C++
#include<iostream>
#define SIZE 100
using namespace std;
class node
{
public:
node()
@devpruthvi
devpruthvi / Conway's game of life
Last active August 29, 2015 14:07
Conway's Game of Life
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