13 Aug '17, 3am

I made a Ruby program

require 'nokogiri' require 'open-uri' require 'Sanitize' require 'Upmark' Dir.glob("*.html") do |my_html_file| puts "working on: #{my_html_file}..." doc = Nokogiri::HTML(open(my_html_file)) post_body = doc.css('div.post-body') body_of_article = post_body.to_s post_title = doc.css('.post-title').text post_title = "# " + post_title.strip string_of_article = "" string_of_article << post_title string_of_article << body_of_article string_of_article = string_of_article.gsub(/(<\/?blockquote.*?>)/) { "\n" + $1 + "\n" } string_of_article = string_of_article.gsub(/<h3>(.*)<\/h3>/) {"\n" + "### " + $1 + "\n"} sanitized_article = Sanitize.clean(string_of_article, :elements => [ 'a', 'abbr', 'blockquote', 'br', 'cite', 'code', 'dd', 'dfn', 'dl', 'dt', 'kbd', 'li', 'mark', 'ol', 'p', 'pre', 'q', 's', 'samp', 'small', 'strike', 'sub', 'sup', 'time', 'ul', 'var', ], :attributes => { :all...

Full article: http://justinmallone.com/2017/08/justin-makes-a-ruby-prog...

Tweets

Membuat Program Ruby Pertamamu

Membuat Program Ruby Pertamamu

codepolitan.com 08 Aug '17, 9am

Tutorial pemrograman, biasanya diawali dengan membuat program sederhana Hello world yaitu suatu program yang hanya menampi...

Trump signs $3.9 billion VA funding bill to ave...

stripes.com 12 Aug '17, 10pm

WASHINGTON — President Donald Trump on Saturday signed a $3.9 billion funding deal for the Department of Veterans Affairs ...

Enhanced Ruby on Rails Architecture

rubyflow.com 13 Aug '17, 5pm

× The Ruby and Rails community linklog Made a library? Written a blog post? Found a useful tutorial? Share it with the Rub...

Story: Trump signs $3.9B VA funding bill for Ch...

stripes.com 12 Aug '17, 9pm

WASHINGTON — President Donald Trump on Saturday signed a $3.9 billion funding deal for the Department of Veterans Affairs ...

Rubyの死?開発者はどの言語を学ぶべきか?

Rubyの死?開発者はどの言語を学ぶべきか?

softantenna.com 10 Aug '17, 3am

The death of Ruby? Developers should learn these languages instead

Ruby Symbols - The Good and Bad Parts #ruby #rails

Ruby Symbols - The Good and Bad Parts #ruby #rails

medium.com 11 Aug '17, 5pm

Ruby Symbols, The Good and Bad Parts Ruby Symbols are all good and fun but if you’re not careful they can bite you in the ...

How learning Elixr made me better Ruby developer:

rubyflow.com 09 Aug '17, 6am

× The Ruby and Rails community linklog Made a library? Written a blog post? Found a useful tutorial? Share it with the Rub...

[United States] Software Engineer - Ruby on Rai...

wfh.io 11 Aug '17, 2am

Do you like working with a team who is passionate about innovative projects? Do you like the culture of a tech company, bu...

Software Engineer – Ruby on Rails @ Kotis Desig...

iotjobs.eu 11 Aug '17, 5am

Software Engineer – Ruby on Rails @ Kotis Design THE JOB Do you like working with a team who is passionate about innovativ...

Builder #design #pattern in Ruby #ruby #rails #...

rubyonrails.ba 09 Aug '17, 7pm

Builder pattern is useful when the algorithm how to build an object is something independent of the parts that makes the o...

Советы молодым (ruby/rails) программистам,

Советы молодым (ruby/rails) программистам,

macshifford.me 09 Aug '17, 7am

hEl|0 W0r1d exP3r7. Code artisan. Current: Ruby, Elixir, Swift, JS. Next: Clojure, Haskell. Main gopher - gophers.by Co-fo...

Use #ROR #RubyonRails for webapp development

Use #ROR #RubyonRails for webapp development

edeskhub.com 09 Aug '17, 7am

Ruby on Rails (ROR) is a web application development framework which is written in the Ruby language. It was released in 2...

Practical Linked List in Ruby

rubyflow.com 09 Aug '17, 1pm

× The Ruby and Rails community linklog Made a library? Written a blog post? Found a useful tutorial? Share it with the Rub...

Scraping websites with Ruby and Headless Chrome:

rubyflow.com 09 Aug '17, 2pm

× The Ruby and Rails community linklog Made a library? Written a blog post? Found a useful tutorial? Share it with the Rub...

Salesforce blesses San Francisco's clean energy...

greenbiz.com 07 Aug '17, 7pm

Software giant Salesforce, the largest employer in San Francisco, is switching two of its high-rise office buildings in th...