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
module Developer | |
extend self | |
delegate :establish_connection, :clear_all_connections!, :to => ActiveRecord::Base | |
def delayed_debug(scope) | |
detach_process do | |
close_io_objects | |
establish_connection | |
setup_process_name | |
notify_developers |
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
def reverse(array) | |
source = array.dup | |
[].tap do |reversed| | |
until source.empty? | |
reversed << source.pop | |
end | |
end | |
end |
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
# https://labbots.com/enabling-touch-id-for-access-on-terminal/ # TouchID for console | |
# https://github.com/exelban/stats |
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
L1 | |
Базовые знание диалекта Typescript, основных встроенных примитивов (Array, Object, Function, String, Date) и методов работы с ними, понимание контекста (this) и способов управления им | |
Базовые знания фреймворка React | |
Знание наиболее часто используемых Web API: fetch/XHR, Storage, PostMessage, DOM | |
Умение писать простейшие алгоритмы (поиск, сортировка, сравнение объектов) без требований к их оптимальности. | |
Навыки кроссбраузерной адаптивной верстки по макету с использованием существующего кода, знание CSS и препроцессора SCSS | |
Навыки отладки разметки в браузерах Chrome/Safari | |
Знание принципов работы HTTP, отличий между различными методами, принципов работы Cookies | |
Практическое владение лучшими практиками структурирования кода: SOLID/DRY/KISS и т.д. | |
Базовые знания git, понимание git flow |
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
bundler add countries --version "~> 3.0.1" --require false |
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
class XMLResultParser | |
class << self | |
delegate :parse_xml, :xml_result?, to: :new | |
end | |
def parse_xml(result) | |
parsed_result = parse_result(result) | |
if xml_result?(result) | |
result |
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
Требуется написать клиент и сервер gRPC: | |
1. сервер должен обеспечивать получение MAC-адреса по IP-адресу из запроса | |
алгоритм формирования MAC следующий: | |
- в случае IPv4 возвращается MAC, дополненный двумя нулями спереди ("00xxxxxxxx") | |
- в случае IPv6 возвращается MAC, состоящий из 6 последних байт самого адреса | |
- в остальных случаях возвращается пустой MAC - что сигнализирует об ошибке | |
сервер должен обеспечивать МАКСИМАЛЬНО ВОЗМОЖНУЮ производительность | |
сервер должен быть сделан в виде отдельного приложения, конфигурационные параметры можно указывать в коммандной строке или в коде - не принципиально | |
2. клиент должен быть выполнен в виде модуля, который теоретически можно подключить к приложению | |
клиент должен быть синхронным - т.е. возврат из функции запроса MAC должен возвращать MAC или ошибку |
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
const messages = { | |
en: defaultMessages, | |
hi: deepmerge(JSON.parse(JSON.stringify(defaultMessages)), { | |
pages: { | |
identification: { | |
step: 'स्टेप', | |
step1Title: 'इंटरनेट से जुड़ने के लिए अपना फोन नंबर सत्यापित करें।', | |
step2Title: 'SMS से प्राप्त कोड डालें।', | |
successTitle: 'आपका फोन नंबर सफलतापूर्वक सत्यापित हो गया है।', |
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
/*base styles*/ | |
body { | |
font: 12px/16px "Roboto", Arial, Tahoma, Verdana, sans-serif; | |
text-rendering: geometricPrecision; | |
} | |
h1, | |
h2, | |
h3, | |
h4 { |
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
<!doctype html> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8"> | |
<title>DASHBOARD</title> | |
<meta name="description" content="DASHBOARD"> | |
<meta name="author" content="D"> | |
</head> |
NewerOlder