Skip to content

Instantly share code, notes, and snippets.

View romikoops's full-sized avatar

Roman Parashchenko romikoops

View GitHub Profile
@romikoops
romikoops / main.rb
Created May 23, 2018 21:19
Jobs Scrapper
# crawler part
str = <<-CONTENT
**Age:** <%= h[:age] %>
**Skills:**
<% h[:skills].each do |s| %>
* <%= s.escape_special_symbol %>
<% end %>
CONTENT
@romikoops
romikoops / sample.rb
Created May 17, 2018 15:29
sax_machine html
class ServiceResponse
include SAXMachine
elements :candidate
end
response = ServiceResponse.parse("
<response>
<candidate>&lt;ul&gt;&lt;li&gt;Vous disposez d'environ 5 ans d'exp&#xE9;rience en comptabilit&#xE9; id&#xE9;alement au sein de soci&#xE9;t&#xE9;s internationales ;&lt;/li&gt;&lt;li&gt;Vous ma&#xEE;trisez les normes comptables suisses et les US Gaap ;&lt;/li&gt;&lt;li&gt;Vous avez une bonne ma&#xEE;trise des outils informatiques (Excel et JDE) ;&lt;/li&gt;&lt;li&gt;Vous pouvez travailler en fran&#xE7;ais, comme en anglais.&lt;/li&gt;&lt;/ul&gt;</candidate>
@romikoops
romikoops / README-Template.md
Created May 3, 2018 21:25 — forked from PurpleBooth/README-Template.md
A template to make good README.md

Project Title

One Paragraph of project description goes here

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites

Name: Flash
Serial: eNrzzU/OLi0odswsqnHLSSzOqDGoca7JKCkpsNLXLy8v1ytJTczVLUotKNFLzs8FAJHYETc=
if anyone wants to thank ETH: 0x527c2aB55b744D6167dc981576318af96ed26676
Thank you!
@romikoops
romikoops / gist:8f36487e4d0f0d977495ca7757f33914
Created January 6, 2017 15:13 — forked from somebody32/gist:5232120
Список литературы для ознакомления с concurrent programming и реализацией этих принципов и подходов на ruby. Огромное спасибо @brainopia за составление.

Введение

Начать стоит отсюда. Не пугайтесь то, что это книга по незнакомой OS, эти термины практически везде одинаковые и здесь они изложены в понятной для начинающих форме.

http://www.qnx.com/developers/docs/6.4.1/neutrino/getting_started/s1_procs.html

Прочесть нужно треть главы до подраздела "Starting a process", если С не пугает, читайте полностью. После прочтения вы будете понимать, что такое process, thread, mutex, priorites, semaphores, scheduler, contex-switch, kernel states.

Ruby

require 'rubygems'
require 'bundler'
Bundler.require(:default)
include FactoryGirl::Syntax::Methods
# Models
class User
attr_accessor :first_name, :last_name, :email, :sex
attr_accessor :profile
Feature: User settings feature
In order to use account settings
As registered user
I want to
Background:
Given registered UNIQ_USER user logged in system
Scenario: sign in details, profile and mailings settings tabs exist
Then Profile page for UNIQ_USER should be opened
@romikoops
romikoops / README.md
Created December 31, 2015 01:18 — forked from joakimk/README.md
CircleCI elixir build example

This runs a build for a small elixir (phoenix) project in about 40 seconds by caching as much of the compiled files as possible.

We've been using this for months in multiple projects without any issues. Please ping be if there is any issues with this script and I'll update it.

It should be generic enough to work on any elixir app using mix.

If you have a elixir_buildpack.config, then enable that section in the build script to keep versions in sync!

a.kobzar@access.uzh.ch
a.rammal@swissonline.ch
abanoudanial5@gmail.com
abc@abc.com
ablu@gmail.com
alan.riefer@student.unisg.ch
alessandra_zgraggegn@hotmail.com
alexandra.voglreiter@stud.hslu.ch
alexwalher@yahoo.com
alferd_pe@hotmail.com
@romikoops
romikoops / server.md
Last active August 29, 2015 14:16 — forked from jtadeulopes/server.md

Update and upgrade the system

sudo apt-get update
sudo apt-get upgrade
sudo apt-get dist-upgrade
sudo apt-get autoremove
sudo reboot