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 '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 |
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
version: '2' | |
services: | |
scala: &scala | |
image: williamyeh/scala |
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
object HelloWorld { | |
def main(args: Array[String]): Unit = { | |
println("Hello, world!") | |
} | |
} | |
HelloWorld.main(Array()) |
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
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'; |
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
################################################################################ | |
# 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: |