Skip to content

Instantly share code, notes, and snippets.

View paramsingh's full-sized avatar

param paramsingh

View GitHub Profile
1
2
6
24
120
720
5040
40320
362880
3628800
#!/usr/bin/env python3
import requests
from bs4 import BeautifulSoup
import datetime
import sys
if __name__ == "__main__":
try:
date, month, year = sys.argv[1:]
123
9831 6414 7115 2900 1990 2633 9922 5866 3584 1984 6572 6324 3677 7336 9816 399 5312 2132 721 9547 8060 5786 5274 9770 3185 1077 2250 3321 4349 7142 2345 403 1284 8405 6872 3653 6167 1 4863 8205 9386 4726 7886 322 3921 2638 633 73 823 2381 509 1359 6568 9218 3273 2718 2892 6533 5635 4951 1932 6692 2970 4030 3058 6510 9224 108 7705 8546 8856 7821 610 9327 6738 2385 4778 4095 7843 3463 1040 9849 3928 8068 5441 1457 9770 5214 8631 2020 704 9123 1212 6698 3066 9981 559 7156 3685 6584 4795 102 3433 6056 4044 2434 3333 3445 4152 5865 9622 9318 3598 5377 8147 6841 2398 1580 8937 7678 3799 2005 1186
217
49 100
42 77
1 91
34 101
11 44
28 99
106 110
// Implementation of the Cohen Sutherland line clipping algorithm
#include <stdio.h>
#include <graphics.h>
#define INSIDE 0
#define LEFT 1
#define RIGHT 2
#define BOTTOM 4
#define TOP 8
Coding competition
<Poster will be done by Tripathi>
Event layout:
* A coding competition not for the first year.
* Standard short competition rules apply.
* 5 questions, 3 hours.
* Wrong answers will be given a penalty.
Vertica: Clearing the national entrance after class 12th, working 4 years,
students do all that with one objective in mind, getting a hefty
package. Placement matters more than most people let on. So, how does it
feel getting placed early in the year and so handsomely?
Kalra: Getting placed early is a big relief. Though I wasn't stressed much. But it
is a big relief for everybody. You can do whatever you want, study want you
want and you can relax, bunk classes and go to sleep and don't give a shit
about anything. And getting placed handsomely is even better. The first
thing was making your parents happy after the AIEEE rank and the rest was

By year

Averages

Average of year 11: 7.09

Average of year 12: 7.07

Average of year 13: 7.19

@paramsingh
paramsingh / cs.py
Created December 28, 2014 05:10
Scraping NITH using Python and BeautifulSoup
from bs4 import BeautifulSoup
def find_innermost(tag):
# This function keeps going inside the first tag of the element passed
# until it finds a string. The string found is then returned after some
# cleaning up.
tag.contents = [a for a in tag.contents if a != '\n']
while not tag.contents[0].string:
tag = tag.contents[0]
tag.contents = [a for a in tag.contents if a != '\n']
import java.util.Scanner;
public class BaseConversion {
//global string because it is used in two methods
static final String encodings = "0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ+/";
public static void main(String[] args){
Scanner in = new Scanner( System.in );
//input
System.out.println("Enter the number and the base");
String input = in.nextLine();
String number = input.split(" ")[0];
@paramsingh
paramsingh / tint2rc
Created September 24, 2013 09:14
tint2rc - Tint2 Config file
#---------------------------------------------
# TINT2 CONFIG FILE
#---------------------------------------------
# For more information about tint2, see:
# http://code.google.com/p/tint2/wiki/Welcome
#
# For more config file examples, see:
# http://crunchbanglinux.org/forums/topic/3232/my-tint2-config/
# Background definitions