Skip to content

Instantly share code, notes, and snippets.

View hilmanski's full-sized avatar

Hilman Ramadhan hilmanski

View GitHub Profile
@hilmanski
hilmanski / 0_reuse_code.js
Last active August 29, 2015 14:23
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@hilmanski
hilmanski / gist:ebff52f14e5662481788814095e3eb77
Created September 20, 2023 22:24
Simple example web scraping with Ruby for beginner
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