This file contains 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 | |
# Write some code, that will flatten an array of arbitrarily nested arrays of | |
# integers into a flat array of integers. e.g. [[1,2,[3]],4] -> [1,2,3,4]. | |
# Your solution should be a link to a gist on gist.github.com | |
# with your implementation. | |
# When writing this code, you can use any language you're comfortable with. | |
# The code must be well tested and documented if necessary, |
This file contains 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
Необходимо написать скрипт проверки доступности вебсайтов. На входе скрипт получает csv файл со списком URL. | |
На выходе скрипт выводит по каждому URL результат проверки. | |
Формат вывода на ваш вкус. Пришлите рекрутеру ссылку на github репозиторий с выполненым заданием. | |
Если у вас есть вопросы по тестовому заданию, можете задать их в телеграм @roman_kovtunenko | |
Пример csv файла: | |
https://drive.google.com/file/d/1fgkcoBBQmAvGL4lf_RTAE0lSEHruSbvC/view |
This file contains 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
Как указать, какие приложения Android смогут использовать ключ API в запросах? | |
Для ключа API можно разрешить использование только в определенных приложениях Android. Для этого укажите контрольную сумму сертификата для отладки или выпуска. | |
Контрольная сумма сертификата для отладки | |
В Linux или macOS: | |
$ | |
keytool -list -v -keystore ~/.android/debug.keystore -alias androiddebugkey -storepass android -keypass android | |
В Windows: |
This file contains 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
require 'aws-sdk-s3' | |
Aws.config.update({ | |
region: 'eu-central-1', | |
credentials: Aws::Credentials.new('ACCESS_KEY_ID', 'SECRET_ACCESS_KEY') | |
}) | |
s3 = Aws::S3::Resource.new(region:'eu-central-1') | |
obj = s3.bucket('BUCKET_NAME').object('FILE_NAME') | |
obj.upload_file('PATH_TO_FILE') |