Skip to content

Instantly share code, notes, and snippets.

View RomanHood's full-sized avatar

Roman Hood RomanHood

  • Roman Hood LLC
  • Miami, FL
View GitHub Profile
require 'nokogiri'
require 'open-uri'
EPISODE_PAGE = 'https://scotthorton.org/all-interviews-2/'
html = Nokogiri::HTML(open(EPISODE_PAGE).read)
links = html.css('div[id=content]').css('a')
class Episode
attr_accessor :guest_name, :date, :url, :description, :mp3
version: '2'
services:
scala: &scala
image: williamyeh/scala
object HelloWorld {
def main(args: Array[String]): Unit = {
println("Hello, world!")
}
}
HelloWorld.main(Array())
var board = document.createElement('div');
board.style.height = '500px';
board.style.width = '500px';
board.style.border = '1px solid black';
document.getElementsByTagName('body')[0].appendChild(board);
for (var i = 0; i < 64; i++) {
var square = document.createElement('div');
square.style.float = 'left';
square.style.height = (500 / 8) + 'px';
square.style.width = (500 / 8) + 'px';
@RomanHood
RomanHood / camaro.rb
Last active January 18, 2017 05:00
consistent formatting
################################################################################
# ruby >= 2.0 required
#
# To run tests:
# rspec camaro.rb --format documentation
#
# To get requested output from command line:
# ruby camaro.rb
#
# To interact with code: