Skip to content

Instantly share code, notes, and snippets.

View romikoops's full-sized avatar

Roman Parashchenko romikoops

View GitHub Profile
@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

Name: Flash
Serial: eNrzzU/OLi0odswsqnHLSSzOqDGoca7JKCkpsNLXLy8v1ytJTczVLUotKNFLzs8FAJHYETc=
if anyone wants to thank ETH: 0x527c2aB55b744D6167dc981576318af96ed26676
Thank you!
@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

@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 / 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 / article-test.exs
Created May 28, 2018 09:59 — forked from lee-dohm/article-test.exs
Sample files for blog post "Simpler Elixir Travis Configuration" ... http://www.lee-dohm.com/2017/12/24/simpler-elixir-travis-configuration/
use Mix.Config
# We don't run a server during test. If one is required,
# you can enable the server option below.
config :hello_phoenix, HelloPhoenix.Endpoint,
http: [port: 4001],
server: false
# Print only warnings and errors during test
config :logger, level: :warn
@romikoops
romikoops / PostgreSQL_index_naming.rst
Created July 5, 2018 19:24 — forked from popravich/PostgreSQL_index_naming.rst
PostgreSQL index naming convention to remember

The standard names for indexes in PostgreSQL are:

{tablename}_{columnname(s)}_{suffix}

where the suffix is one of the following:

  • pkey for a Primary Key constraint;
  • key for a Unique constraint;
  • excl for an Exclusion constraint;
  • idx for any other kind of index;
@romikoops
romikoops / release_tasks.ex
Created July 30, 2018 08:29 — forked from AndrewDryga/release_tasks.ex
Elixir Release Tasks
defmodule MyAppAPI.ReleaseTasks do
alias Ecto.Migrator
@otp_app :myapp_api
@start_apps [:logger, :ssl, :postgrex, :ecto]
def migrate do
init(@otp_app, @start_apps)
run_migrations_for(@otp_app)
This file has been truncated, but you can view the full file.