Commit b86c7120 authored by SRIRAM YENAMANDRA's avatar SRIRAM YENAMANDRA

Merge remote-tracking branch 'origin/master'

parents e03df9b1 09f2e874
This is the homepage of Pranav V Rao, 160100021.
The html code id in the index.htm file and the styling elements are in the home.css file
The script uses bootstrap cdn links too.
The content of the script is mostly written by Pranav Rao, taking help from the individual examples from W3Schools CSS and Bootstrap tutorials.
body {
font: 20px Montserrat, sans-serif;
line-height: 1.8;
background-color: lightblue;
}
p{
font-size: 16px;
width: 80%;
}
a:visited, a:active{
color: white;
}
.container{
margin-top: 10px;
margin-bottom: 10px;
padding-top:70px;
padding-bottom: 70px;
}
.navbar {
padding-top: 5px;
padding-bottom: 8px;
border: 0;
border-radius: 0;
margin-bottom: 0;
font-size: 12px;
letter-spacing: 5px;
}
.navbar-nav li a:hover {
color: #1abc9c !important;
font-size: 18px;
}
.navbar-nav>.active>a {
color: white;
font-size: 18px
}
#About_me
{
background-color: rgb(31, 136, 229);
}
#Hobbies{
background-color: #1abc9c;
}
#Interests{
background-color: white;
}
#Contact_me{
background-color: #2f2f2f; /* Black Gray */
color: #fff;
}
<!DOCTYPE html>
<html lang="en">
<head>
<title>Pranav's Homepage</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
<link href="https://fonts.googleapis.com/css?family=Montserrat" rel="stylesheet">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
<link rel="stylesheet" type="text/css" href="home.css">
</head>
<body data-spy="scroll" data-target=".navbar" data-offset="50">
<nav class="navbar navbar-inverse navbar-fixed-top">
<div class="container-fluid">
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#myNavbar">
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="#">Pranav Rao</a>
</div>
<div>
<div class="collapse navbar-collapse" id="myNavbar">
<ul class="nav navbar-nav navbar-right">
<li><a href="#About_me">About Me</a></li>
<li><a href="#Hobbies">Hobbies</a></li>
<li><a href="#Interests">Interests</a></li>
<li><a href="#Contact_me">Contact Me</a></li>
</ul>
</div>
</div>
</div>
</nav>
<div id="About_me" class="container text-center">
<h2 class="margin text-center"> Who Am I? </h2>
<img src="profile_new.jpg" class=" img-responsive img-circle margin" style="display:inline" alt="This was me:)">
<br />
<p>
<ul style="list-style-type:none">
<li>
Hi guys! I am Pranav, a sophomore from <b>IIT Bombay</b> <a href="https://www.cse.iitb.ac.in" target="_blank">CSE Department</a>.
I am born and brought up in Mumbai, although my parents are from Manglore, Karnataka.I am currently at Hostel 5, IIT Bombay campus.
</li>
</p>
</div>
<div id="Hobbies" class="container">
<h2 class="margin text-center">What do I like?</h2>
<img src="pic_sameer.jpg" class="img-responsive img-circle margin text-center" style="display:inline" alt="This is what I do:)" >
<p>
<ul type="square">
<li>I am interested in a lot of things, some of them to list
<ol type="i">
<li> Musical Instruments, like Violin, Guitar, Casio
<li> Reading books
<li> Playing Badminton, swimming
<li> Watching anime. TED talks, ...
</ol>
</li>
<li>
I am interested in <i>mathematics</i>. I spend quite a time solving puzzles and problems on <a href="https://www.brilliant.org">Brilliant</a>.
</li>
<li>
I also like reading about random trivia on sites like Quora, Inshorts and Curiosity.
</li>
<li>
I love to learn new subjects like languages, more on philosophy, economics, etc.
</li>
</ul>
</p>
</div>
<div id="Interests" class="container text-center">
<h2 class="margin">What I want to become?</h2>
<div class="row">
<div class="col-md-6">
<div class="card" style="background-color:lightgrey">
<p>
<h3 align="center">What I want to do</h3>
I am interested in pursuing a career in a lot of things like artificial intelligence, machine learning,
computer vision and object identification, humanoid robots and even careers related to maths like
algorithms design, etc.
</p>
</div>
</div>
<div class "col-md-6">
<div class="card">
<p>
<h3 align="center">Experiences</h3>
I am currently a part of Autonomous Underwater Vehicle team at IIT Bombay in their Software Subdivision.
Apart from that I have some experience in Institute Summer Technical Project.
</p>
</div>
</div>
</div>
</div>
<footer id="Contact_me" class="container">
<div class="row">
<div class="col-md-4"></div>
<div class="col-md-4"></div>
<div class="col-md-4">
<p>
<h3>You can contact me using these links:</h3>
<hr />
<a href="https://www.facebook.com/pranav.rao.3975" target="_blank"><i class="fa fa-facebook-official" data-toggle="tooltip" title="FB" style="font-size:40px"></i></a>
<a href="https://github.com/pranavrao870" target="_blank"><i class="fa fa-github" style="font-size:40px" data-toggle="tooltip" title="GitHub"></i></a>
<a href="mailto: pranavrao870@gmail.com" target="_blank"><span class="glyphicon glyphicon-envelope" style="font-size:40px" data-toggle="tooltip" title="pranavrao870@gmail.com"></span></a>
</p>
</div>
</div>
</footer>
</body>
CodeGeeks
We have solved the 6 scripts and the extra questions and added the required files/pictures.
The contributions are as follows:
Script1 : 160100021 Pranav Rao
Script2 : 16D070017 Sriram Yenamandra
Script3 : 160100024 Deep Karkhanis
Script4 : 160100021 Pranav Rao
Script5 : 16D070017 Sriram Yenamandra
Script6 : 160100024 Deep Karkhanis
Extras : All have tried the exercises.
Outlab2-Bash 29-7-17
#!/bin/bash
function lineForm()
{
local teamName=$( echo $line | tr ' ' '<' | cut -d , -f 1 | tr '<' ' ')
iter=2
while [ 1 ]
do
local team_mem=$( echo $line | tr ' ' '<' | cut -d , -f $iter | tr '<' ' ')
(( iter++ ))
local team_mem_roll=$( echo $line | tr ' ' '<' | cut -d , -f $iter | tr '<' ' ')
(( iter++ ))
if [ -z "$team_mem" ]
then
break
fi
echo "$teamName,$team_mem,$team_mem_roll" >> output
done
}
>output #create the file where the output is going to be there
touch sorted_input
sort $1 > sorted_input
while read line;
do
# echo $line
lineForm
done<sorted_input #The input stream for read is from the input file The read will continue till the EOF
sed -i -e "s/\r//" output
rm sorted_input
#!/bin/bash
a=$(cat $2)
b=$(cat $1)
for i in $(echo $a)
do
b=$(echo "$b" | sed 's/'$i'/bleep/gI')
done
echo "$b" > output
#!/bin/bash
#The program looks at file recursively(use of r flag)
#using grep with -c flag counts the number of lines in each file with matching pattern.
output1=$(grep -rch "[^[:space:]\t]" $1)
cnt=0
for var in $output1
do
cnt=$((var+cnt))
done
echo $cnt
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment