-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Reworked code #4
Open
basilpbabu
wants to merge
8
commits into
talentspace:master
Choose a base branch
from
basilpbabu:master
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
e91a1e8
code for review
johnjsd 153750e
Reworked on Akshay's code
johnjsd 67861df
Reworked on Akshay's code
johnjsd c4db3de
Profile Picture
johnjsd 6fc861a
Style sheet File
johnjsd 4fd93aa
Index page
johnjsd 029df62
HTML file updated with trailer
johnjsd dbc3557
Trailer feature added
johnjsd File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
body { | ||
margin:0px; | ||
padding:0px; | ||
font-size:13px; | ||
line-height:21px; | ||
color:#2d1604; | ||
background-color:#78bbe6; | ||
font-family:Arial, Helvetica, sans-serif; | ||
} | ||
|
||
#wrapper { | ||
width:900px; | ||
margin:0 auto; | ||
padding:20px 0 10px 0; | ||
|
||
} | ||
|
||
.navigation{ | ||
margin:-10px 0px 10px; | ||
|
||
padding:15px 5px; | ||
|
||
|
||
} | ||
.hi | ||
{ | ||
margin:0px 0px 20px; | ||
padding:15px 5px; | ||
float:right; | ||
font-family: 'Open Sans'; | ||
|
||
} | ||
.new { | ||
margin:0px 0px 20px; | ||
padding:15px 5px; | ||
float:right; | ||
width:605; | ||
} | ||
|
||
|
||
|
||
|
||
#page_content{ | ||
padding:10px; | ||
background:url(http://3.bp.blogspot.com/-s_uJ9Kk_MD4/Vjp3nuxHqZI/AAAAAAAACHg/uzNsVZvjLkQ/s320/h.png) repeat; | ||
border-radius:25px; | ||
height: 770px; | ||
} | ||
|
||
#page_content .right_section{ | ||
width:625px; | ||
float:right; | ||
padding:15px; | ||
border-left:#d4d093 | ||
} | ||
a:hover { | ||
color: #86d8dc; | ||
} | ||
|
||
|
||
|
||
|
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
body { | ||
margin:0px; | ||
padding:0px; | ||
font-size:13px; | ||
line-height:21px; | ||
color:#2d1604; | ||
background-color:#78bbe6; | ||
font-family:Arial, Helvetica, sans-serif; | ||
} | ||
|
||
#wrapper { | ||
width:900px; | ||
margin:0 auto; | ||
padding:20px 0 10px 0; | ||
|
||
} | ||
|
||
.navigation{ | ||
margin:-10px 0px 10px; | ||
|
||
padding:15px 5px; | ||
|
||
|
||
} | ||
.hi | ||
{ | ||
margin:0px 0px 20px; | ||
padding:15px 5px; | ||
float:right; | ||
font-family: 'Open Sans', sans-serif; | ||
|
||
} | ||
.new { | ||
margin:0px 0px 20px; | ||
padding:15px 5px; | ||
float:right; | ||
width:605; | ||
} | ||
|
||
|
||
|
||
|
||
#page_content{ | ||
padding:10px; | ||
background:url(http://3.bp.blogspot.com/-s_uJ9Kk_MD4/Vjp3nuxHqZI/AAAAAAAACHg/uzNsVZvjLkQ/s320/h.png) repeat; | ||
border-radius:25px; | ||
height: 770px; | ||
} | ||
|
||
#page_content .right_section{ | ||
width:625px; | ||
float:right; | ||
padding:15px; | ||
border-left:#d4d093 | ||
} | ||
a:hover { | ||
color: #86d8dc; | ||
} | ||
|
||
|
||
|
||
|
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
<html> | ||
<head> | ||
<title>Basil </title> | ||
<link href="css/style.css" rel="stylesheet" type="text/css"> | ||
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.4.0/css/font-awesome.min.css"> | ||
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.4.0/css/font-awesome.min.css"> | ||
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.4.0/css/font-awesome.min.css"> | ||
<link href='https://fonts.googleapis.com/css?family=Open+Sans' rel='stylesheet' type='text/css'> | ||
</head> | ||
<body> | ||
<div id="wrapper"> | ||
<div id="page_content"> | ||
<div class="navigation"> | ||
<img src="http://3.bp.blogspot.com/-K232ZoYV2HU/Vjp3nXQmwHI/AAAAAAAACHc/NkQXtuxFyds/s1600/a.jpg"/> | ||
|
||
<div class="hi"> | ||
<a href="https://github.com/basilpbabu" target="_blank"><i id="1a" class="fa fa-github fa-3x" ></i></a> | ||
<a href="https://www.facebook.com/basil.pbabu" target="_blank"><i class="fa fa-facebook-square fa-3x"></i></a> | ||
<a href="https://twitter.com/basilpbabu" target="_blank"><i class="fa fa-twitter fa-3x"></i></a> | ||
</div> | ||
<div class="new"> | ||
<h1>Basil P Babu</h1> | ||
</div> | ||
</div> | ||
|
||
|
||
|
||
|
||
<div class="right_section"> | ||
|
||
<h1>Topics Covered</h1> | ||
<h3>1 Nov 2015 </h3> | ||
<p>We people had a dream in our mind and at last we found our guy who can guide us through the right way. | ||
The first day was so much fun and we learned a lot </p> | ||
<ul > | ||
<li><h4>Vim Basic Commands and Advantages</h4></li> | ||
<li><h4>Curl which is used to access files from websites</h4></li> | ||
<li><h4>wget filename is used to download files from web</h4></li> | ||
<li><h4>youtube-dl is used for downloaidng youtube videos</h4></li> | ||
<li><h4>grep is used to filter words and find the matching one</h4></li> | ||
</ul> | ||
</body> | ||
</html> |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
body { | ||
margin:0px; | ||
padding:0px; | ||
font-size:13px; | ||
line-height:21px; | ||
color:#2d1604; | ||
background-color:#78bbe6; | ||
font-family:Arial, Helvetica, sans-serif; | ||
} | ||
|
||
#wrapper { | ||
width:900px; | ||
margin:0 auto; | ||
padding:20px 0 10px 0; | ||
|
||
} | ||
|
||
.navigation{ | ||
margin:-10px 0px 10px; | ||
|
||
padding:15px 5px; | ||
|
||
|
||
} | ||
.hi | ||
{ | ||
margin:0px 0px 20px; | ||
padding:15px 5px; | ||
float:right; | ||
font-family: 'Open Sans'; | ||
|
||
} | ||
.new { | ||
margin:0px 0px 20px; | ||
padding:15px 5px; | ||
float:left; | ||
width:20px; | ||
} | ||
|
||
|
||
|
||
|
||
#page_content{ | ||
padding:10px; | ||
background:url(http://3.bp.blogspot.com/-s_uJ9Kk_MD4/Vjp3nuxHqZI/AAAAAAAACHg/uzNsVZvjLkQ/s320/h.png) repeat; | ||
border-radius:25px; | ||
height: 570px; | ||
} | ||
|
||
#page_content .right_section{ | ||
width:600px; | ||
float:right; | ||
padding:15px; | ||
border-left:#d4d093 | ||
} | ||
a:hover { | ||
color: #86d8dc; | ||
} | ||
|
||
|
||
|
||
|
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
body { | ||
margin:0px; | ||
padding:0px; | ||
font-size:13px; | ||
line-height:21px; | ||
color:#2d1604; | ||
background-color:#78bbe6; | ||
font-family:Arial, Helvetica, sans-serif; | ||
} | ||
|
||
#wrapper { | ||
width:900px; | ||
margin:0 auto; | ||
padding:20px 0 10px 0; | ||
|
||
} | ||
|
||
.navigation{ | ||
margin:-10px 0px 10px; | ||
|
||
padding:15px 5px; | ||
|
||
|
||
} | ||
.hi | ||
{ | ||
margin:0px 0px 20px; | ||
padding:15px 5px; | ||
float:right; | ||
font-family: 'Open Sans'; | ||
|
||
} | ||
.new { | ||
margin:0px 0px 20px; | ||
padding:15px 5px; | ||
float:left; | ||
width:20px; | ||
} | ||
|
||
|
||
|
||
|
||
#page_content{ | ||
padding:10px; | ||
background:url(http://3.bp.blogspot.com/-s_uJ9Kk_MD4/Vjp3nuxHqZI/AAAAAAAACHg/uzNsVZvjLkQ/s320/h.png) repeat; | ||
border-radius:25px; | ||
height: 970px; | ||
} | ||
|
||
#page_content .right_section{ | ||
width:600px; | ||
float:right; | ||
padding:15px; | ||
border-left:#d4d093 | ||
} | ||
a:hover { | ||
color: #86d8dc; | ||
} | ||
|
||
|
||
|
||
|
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
<html> | ||
<head> | ||
<title>Basil </title> | ||
<link href="css/style.css" rel="stylesheet" type="text/css"> | ||
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.4.0/css/font-awesome.min.css"> | ||
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.4.0/css/font-awesome.min.css"> | ||
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.4.0/css/font-awesome.min.css"> | ||
<link href='https://fonts.googleapis.com/css?family=Open+Sans' rel='stylesheet' type='text/css'> | ||
</head> | ||
<body> | ||
<div id="wrapper"> | ||
<div id="page_content"> | ||
<div class="navigation"> | ||
<h4><img src="http://1.bp.blogspot.com/-R4IlTr8LUBs/VkX5u6_vvJI/AAAAAAAACIc/jlyu6t5L3i8/s1600/cooltext148256034413733.png"/></h4> | ||
|
||
|
||
<div class="new"> | ||
<img height="317" width="214" style="padding-left:40%;padding-top:25px;padding-bottom:25px" src= {{Poster}} /> | ||
</div> | ||
</div> | ||
|
||
|
||
|
||
|
||
<div class="right_section"> | ||
|
||
|
||
<ul list-style-type: none; > | ||
<li><h2>Name: {{Title}} </h2></li> | ||
<li><h2>Released: {{Released}} </h2></li> | ||
<li><h2>Genre: {{Genre}} </h2></li> | ||
<li><h2>Plot: {{Plot}}</h2> </li> | ||
<li><h2>{{code}}</h2></li> | ||
</ul> | ||
<div id="youtubeDiv"></div> | ||
<script>ytEmbed.init({'block':'youtubeDiv','type':'search','q':'music video','results': 3});</script> | ||
</body> | ||
</html> |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
<html> | ||
<head> | ||
<title>Basil </title> | ||
<link href="css/style.css" rel="stylesheet" type="text/css"> | ||
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.4.0/css/font-awesome.min.css"> | ||
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.4.0/css/font-awesome.min.css"> | ||
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.4.0/css/font-awesome.min.css"> | ||
<link href='https://fonts.googleapis.com/css?family=Open+Sans' rel='stylesheet' type='text/css'> | ||
</head> | ||
<body> | ||
<div id="wrapper"> | ||
<div id="page_content"> | ||
<div class="navigation"> | ||
<h4><img src="http://1.bp.blogspot.com/-R4IlTr8LUBs/VkX5u6_vvJI/AAAAAAAACIc/jlyu6t5L3i8/s1600/cooltext148256034413733.png"/></h4> | ||
|
||
|
||
<div class="new"> | ||
<img height="317" width="214" style="padding-left:40%;padding-top:25px;padding-bottom:25px" src= http://ia.media-imdb.com/images/M/MV5BMjEyNDQwMTQ3OV5BMl5BanBnXkFtZTcwMTY5MzI0MQ@@._V1_SX300.jpg /> | ||
</div> | ||
</div> | ||
|
||
|
||
|
||
|
||
<div class="right_section"> | ||
|
||
|
||
<ul > | ||
<li><h2>Name: Dead Silence </h2></li> | ||
<li><h2>Released: 16 Mar 2007 </h2></li> | ||
<li><h2>Genre: Horror, Mystery, Thriller </h2></li> | ||
<li><h2>Plot: A widower returns to his hometown to search for answers to his wife's murder, which may be linked to the ghost of a murdered ventriloquist.</h2> </li> | ||
</ul> | ||
<div id="youtubeDiv"></div> | ||
<script>ytEmbed.init({'block':'youtubeDiv','type':'search','q':'music video','results': 3});</script> | ||
</body> | ||
</html> |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
require 'open-uri' | ||
require 'json' | ||
|
||
puts"Enter the Movie title:" | ||
movie_name=gets.chomp.split(" ").join("+") | ||
url= "http://www.omdbapi.com/?t=#{movie_name}&y=&plot=short&r=json" | ||
trailerurl="http://trailersapi.com/trailers.json?movie=#{movie_name}&limit=1&width=320" | ||
content1 = open(trailerurl).read | ||
trailer_hash=JSON.parse(content1) | ||
content = open(url).read | ||
content_hash=JSON.parse(content) | ||
html_file=File.new("movie.html","w") | ||
movie_details=File.read("index.html") | ||
n=Array['{{Poster}}','{{Title}}','{{Released}}','{{Genre}}','{{Plot}}'] | ||
p=Array['Poster','Title','Released','Genre','Plot'] | ||
movie_details=movie_details.gsub("{{code}}",trailer_hash[0]["code"]) | ||
for i in 0..4 | ||
movie_details=movie_details.gsub(n[i],content_hash[p[i]]) | ||
end | ||
html_file.puts(movie_details) |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@basilpbabu If you have the new version (with
Class
) handy, please update this file as well.