Skip to content

Instantly share code, notes, and snippets.

View ronhornbaker's full-sized avatar

Ron Hornbaker ronhornbaker

View GitHub Profile
@terraboops
terraboops / Gemfile
Last active May 27, 2020 21:02
Simple Mechanize Scraper
source 'https://rubygems.org'
gem 'mechanize'
@ronhornbaker
ronhornbaker / twitter-friends.rb
Last active May 25, 2017 00:21
Get list of friends of a Twitter user, using the Twitter gem v5 (https://github.com/sferik/twitter), the Twitter APIv1.1, and Ruby.
require 'rubygems'
require 'twitter'
# see https://github.com/sferik/twitter
def twitter_client
Twitter::REST::Client.new do |config|
config.consumer_key = "XXXXXX"
config.consumer_secret = "XXXXXX"
config.access_token = "XXXXXX"
//
// Regular Expression for URL validation
//
// Author: Diego Perini
// Created: 2010/12/05
// Updated: 2018/09/12
// License: MIT
//
// Copyright (c) 2010-2018 Diego Perini (http://www.iport.it)
//