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
#!/usr/bin/env python | |
import json | |
import pprint | |
d = json.JSONDecoder().decode(raw_input()) | |
l = sorted(d, key=lambda x: d.get(x)['cgpa'], reverse=True) | |
for idx,rollno in enumerate(l:( |
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
#!/usr/bin/env python | |
import urllib | |
from multiprocessing import Pool | |
def fetch_result(regno): | |
try: | |
data = urllib.urlencode({'curyear':'2012', 'rndno':'2988624', 'curregno':regno, 'prevyear':'2011', 'prevregno':'', 'qdeg':'E2', 'qdisc':'ECS', 'mcat':'GN', 'mpd':'N'}) | |
result = urllib.urlopen("http://mtechadm.iitm.ac.in/gform2.php", data) | |
s = result.read() |
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> | |
#include <pty.h> | |
#include <unistd.h> | |
#include <fcntl.h> | |
#include <termios.h> | |
#include <sys/select.h> | |
#define BUF_SIZE 80 |
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
#!/usr/bin/env perl | |
use warnings; | |
use strict; | |
use Data::Dumper; | |
use WWW::Mechanize; | |
use Compress::Zlib; | |
my $mech = WWW::Mechanize->new(); | |
my $username = "9038090380"; |
NewerOlder