My resume

Pavel, Karenda

my pass photo

Contact E-mail:korendos@gmail.com

I want to be a web-developer because I like this profession.
It corresponds to my conception about ideal work:

It corresponds to my conception about ideal work:

I am a mature person and I know what I want. I am good at getting on with people. I quickly find the information I need. I am diligent and purposeful.

My skills:

Code examples:

This program collects gem-statistics for Ruby. It parses the github site for such parameters as "watchers", "stargazers", used_by etc. and gives a list of them.


Comment: frozen_string_literal: true

require 'yaml'
require 'open-uri'
require 'bundler/setup'
require './main.rb'
Bundler.require

Comment: for parsing HTML
class Parser
  def get_gem_url(gem_name)
    url = URI("https://github.com/search?q=#{gem_name}")
    html = Kernel.open(url).read
    doc = Nokogiri::HTML(html)

    gem_url = doc.xpath("//ul[@class='repo-list']/li//a").first['href']

    @url_used_by = URI("https://github.com/#{gem_url}/network/dependents")
	    
    "https://github.com#{gem_url}"
  end

  def get_gem_data(gem_name)
    gem_url = get_gem_url(gem_name)
    html = Kernel.open(gem_url).read
    doc = Nokogiri::HTML(html)
    html_used_by = Kernel.open(@url_used_by).read
    doc_used_by = Nokogiri::HTML(html_used_by)

    result = {}
    result[:watch] = doc.xpath("//a[contains(@href, 'watchers')]").text.strip.to_i
    result[:star] = doc.xpath("//a[contains(@href, 'stargazers')]").text.strip
    result[:fork] = doc.xpath("//a[contains(@href, 'network/members')]").text.strip

    result[:contributors] = doc.css(".text-emphasized")[3].text.strip.to_i
    result[:issue] = doc.css(".Counter")[0].text.strip.to_i
    result[:used_by] = doc_used_by.css('.btn-link')[1].text.gsub(/\D/, '').to_i

    result
  end
end

gems = YAML.load_file('gems.yml')
parser = Parser.new

gems['gems'].each do |gem_name|
  puts parser.get_gem_data(gem_name)
  sleep 1
end 
        

Professional experience

I want to get professional experience.

Courses:

Language skills: