This file contains hidden or 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
class UsersController < ApplicationController | |
before_action :set_user, only: [:show, :edit, :update, :destroy] | |
after_action :slack_notify, only: [:create, :update, :destroy] | |
def index | |
@users = User.all | |
end | |
def show | |
end |
This file contains hidden or 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
class UrlParser | |
attr_accessor :website, :parsed, :scheme, :domain, :port, :path, :query_string, :fragment_id | |
def initialize(website) | |
@website = website | |
end | |
def scheme | |
scheme = @website.partition(':') | |
scheme[0] |
This file contains hidden or 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 "httparty" | |
require 'nokogiri' | |
homepage_url = "https://miami.craigslist.org/" | |
response1 = HTTParty.get homepage_url | |
home_page = Nokogiri::HTML(response1.body) | |
cats = [] | |
url_tag = [] | |
jobs = [] |
This file contains hidden or 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 "httparty" | |
require 'nokogiri' | |
url1 = "https://miami.craigslist.org/" | |
response1 = HTTParty.get url1 | |
home_page = Nokogiri::HTML(response1.body) |
This file contains hidden or 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
puts "" | |
puts "" | |
puts "ⓢ ⓤ ⓡ ⓥ ⓘ ⓥ ⓐ ⓛ " | |
puts "by Lewis Jones" | |
puts "" | |
puts " | |
☠️☠️☠️☠️☠️ ☠️☠️☠️☠️☠️ |