Skip to content

Instantly share code, notes, and snippets.

View amalaugustinejose's full-sized avatar
🎯
Focusing

Amal Augustine Jose amalaugustinejose

🎯
Focusing
  • Paingottoor, Kothamangalam, Cochin, Kerala, India
View GitHub Profile
import urllib2, urllib, os
print "Result Downloader"
count = 0
sta_no = int(raw_input("Enter First Reg Number : "))
end_no = int(raw_input("Enter Last Reg Number : "))
for i in xrange(int(sta_no), int(end_no)):
data = urllib.urlencode({'exam': '59', 'prn': i})
req = urllib2.Request('http://projects.mgu.ac.in/bTech/btechresult/index.php?module=public&attrib=result&page=result', data)
if (req == urllib2.URLError):
continue
@amalaugustinejose
amalaugustinejose / circlerest.c
Created January 26, 2017 17:26
C program to restrict mouse in a circle.
#include<graphics.h>
#include<conio.h>
#include<dos.h>
#include<stdlib.h>
#include<math.h>
union REGS i, o;
int initmouse()
{
@amalaugustinejose
amalaugustinejose / dirop.c
Created January 26, 2017 14:52
C program create and remove a directory.
#include<stdio.h>
#include<conio.h>
#include<process.h>
#include<dos.h>
void main() {
int opr, gate = 1;
union REGS inreg, outreg;
char dname[20];
clrscr();
@amalaugustinejose
amalaugustinejose / fileop.c
Created January 26, 2017 14:48
C program to create, delete and rename a file.
#include<stdio.h>
#include<process.h>
#include<dos.h>
void main() {
char loc[50], filename[50], oldname[50], ch;
int opr, gate = 1;
long int attr;
union REGS inreg, outreg;
clrscr();
@amalaugustinejose
amalaugustinejose / polygon.c
Last active January 26, 2017 14:15
Draw a polygon using mouse clicks
#include<stdio.h>
#include<graphics.h>
#include<dos.h>
void main() {
int gd = DETECT, gm, gate, fx, fy, ax, ay, bx, by;
union REGS i, o;
initgraph(&gd, &gm, "C:\\TurboC3\\BGI");
i.x.ax = 0;
int86(0x33, &i, &o);
@amalaugustinejose
amalaugustinejose / failtrigger2.sql
Created January 18, 2017 18:14
Fail Trigger [after trigger], MACE
create table mark (sid number(5) primary key, m1 number(3), m2 number(3), m3 number(3));
create table fail (sid number(5) primary key, m1 number(3), m2 number(3), m3 number(3));
create or replace trigger failtrigger
after insert on mark
for each row
declare
v_total number(3);
begin
@amalaugustinejose
amalaugustinejose / failtrigger.sql
Created January 18, 2017 17:53
Fail Trigger, MACE
create table mark (sid number(5) primary key, m1 number(3), m2 number(3), m3 number(3));
create table fail (sid number(5) primary key, m1 number(3), m2 number(3), m3 number(3));
create or replace trigger failtrigger
before insert on mark
for each row
declare
v_total number(3);
begin