diff --git a/batch-1/html-page/a.jpg b/batch-1/html-page/a.jpg new file mode 100644 index 0000000..1060322 Binary files /dev/null and b/batch-1/html-page/a.jpg differ diff --git a/batch-1/html-page/css/style.css b/batch-1/html-page/css/style.css new file mode 100644 index 0000000..effbabc --- /dev/null +++ b/batch-1/html-page/css/style.css @@ -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; +} + + + + diff --git a/batch-1/html-page/css/style.css~ b/batch-1/html-page/css/style.css~ new file mode 100644 index 0000000..816cb28 --- /dev/null +++ b/batch-1/html-page/css/style.css~ @@ -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; +} + + + + diff --git a/batch-1/html-page/index.html b/batch-1/html-page/index.html new file mode 100644 index 0000000..8608583 --- /dev/null +++ b/batch-1/html-page/index.html @@ -0,0 +1,43 @@ + + +Basil + + + + + + + +
+
+ + + + + +
+ +

Topics Covered

+

1 Nov 2015

+

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

+
    +
  • Vim Basic Commands and Advantages

  • +
  • Curl which is used to access files from websites

  • +
  • wget filename is used to download files from web

  • +
  • youtube-dl is used for downloaidng youtube videos

  • +
  • grep is used to filter words and find the matching one

  • +
+ + diff --git a/batch-1/movie-info/basil/css/style.css b/batch-1/movie-info/basil/css/style.css new file mode 100644 index 0000000..e2de2dd --- /dev/null +++ b/batch-1/movie-info/basil/css/style.css @@ -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; +} + + + + diff --git a/batch-1/movie-info/basil/css/style.css~ b/batch-1/movie-info/basil/css/style.css~ new file mode 100644 index 0000000..3f1438f --- /dev/null +++ b/batch-1/movie-info/basil/css/style.css~ @@ -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; +} + + + + diff --git a/batch-1/movie-info/basil/index.html b/batch-1/movie-info/basil/index.html new file mode 100644 index 0000000..dc9c99a --- /dev/null +++ b/batch-1/movie-info/basil/index.html @@ -0,0 +1,38 @@ + + +Basil + + + + + + + +
+
+ + + + + +
+ + +
    +
  • Name: {{Title}}

  • +
  • Released: {{Released}}

  • +
  • Genre: {{Genre}}

  • +
  • Plot: {{Plot}}

  • +
  • {{code}}

  • +
+
+ + + diff --git a/batch-1/movie-info/basil/movie.html b/batch-1/movie-info/basil/movie.html new file mode 100644 index 0000000..7f0b373 --- /dev/null +++ b/batch-1/movie-info/basil/movie.html @@ -0,0 +1,37 @@ + + +Basil + + + + + + + +
+
+ + + + + +
+ + +
    +
  • Name: Dead Silence

  • +
  • Released: 16 Mar 2007

  • +
  • Genre: Horror, Mystery, Thriller

  • +
  • 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.

  • +
+
+ + + diff --git a/batch-1/movie-info/basil/new.rb b/batch-1/movie-info/basil/new.rb new file mode 100644 index 0000000..46336ad --- /dev/null +++ b/batch-1/movie-info/basil/new.rb @@ -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)