Опыт работы: 2-3 года
Полная занятость
Оформление: ГПХ (самозанятость/ИП)
График: свободный (с учётом работы в разных часовых поясах)
Формат работы: полная удалёнка (возможны командировки)
Доход: 180-230к руб/мес (чистые после налогов) + премии
This file contains hidden or 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
| module Automator | |
| class Exchange | |
| class Subscription | |
| attr_reader :listener | |
| def initialize(pattern, listener) | |
| @pattern = pattern | |
| @listener = listener | |
| end |
This file contains hidden or 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
| #!/bin/bash | |
| docker_dev_home=$HOME/.docker-dev | |
| project_name=${PWD##*/} | |
| image_name=`echo $project_name | tr '[:upper:]' '[:lower:]'`-dev | |
| docker create --name $image_name-volumes -v "/usr/local/bundle" -v "/root/.gradle" busybox || true |
This file contains hidden or 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
| #!/bin/bash | |
| docker_dev_home=$HOME/.docker-dev | |
| project_name=${PWD##*/} | |
| image_name=`echo $project_name | tr '[:upper:]' '[:lower:]'`-dev | |
| docker create --name $image_name-volumes -v "/usr/local/bundle" -v "/root/.gradle" busybox || true |
This file contains hidden or 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
| class User < ApplicationRecord | |
| has_many :posts | |
| after_create :notify_moderator_by_sms_about_new_user | |
| def deactivate! | |
| puts "User deactivation started" | |
| notify_moderator_by_sms_about_user_deactivation | |
| self.update_attribute :role, :disabled |
This file contains hidden or 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
| module RSpec | |
| module Fixtures | |
| def fixture_file(name) | |
| File.open(Rails.root.join('spec', 'fixtures', name)) | |
| end | |
| def fixture_content(name) | |
| fixture_file(name).read | |
| end |
This file contains hidden or 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
| APP_RAKEFILE = Rails.root.join('Rakefile') | |
| module Support | |
| module RakeHelpers | |
| extend ActiveSupport::Concern | |
| def rake(task) | |
| Rake::Task[task].reenable | |
| Rake.application.invoke_task(task) | |
| end |
This file contains hidden or 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
| #!/usr/bin/env ruby | |
| require "yaml" | |
| require "ostruct" | |
| class Service | |
| attr_reader :compose, :name | |
| def initialize(compose, name) | |
| @name = name | |
| @compose = compose |
This file contains hidden or 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
| ############################################# | |
| # Example 1 | |
| BookRepository.new.where(author_id: 23).order(:published_at).limit(8) | |
| ############################################# | |
| # Example 2 |
This file contains hidden or 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
| #!/usr/bin/env ruby | |
| # frozen_string_literal: true | |
| last_comment = `git log --pretty=oneline --abbrev-commit | head -n 1`.split("\n").first | |
| def generate_message(n) | |
| "changes ##{n} at #{Time.now.strftime "%H:%M:%S %a %d.%m.%y"}" | |
| end | |
| message = if last_comment.nil? |
NewerOlder