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
function getData() | |
{ | |
return ` | |
<div> | |
<ol class="row"> | |
<li class="col-xs-6 col-sm-4 col-md-3 col-lg-3"> | |
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
require 'net/http' | |
require 'nokogiri' | |
# HTTP Client | |
url = 'https://www.w3schools.com' | |
response = Net::HTTP.get_response(URI(url)) | |
if response.code != "200" | |
puts "Error: #{response.code}" | |
exit |
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
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |