Skip to content

Instantly share code, notes, and snippets.

View Freika's full-sized avatar
🚀
yes, why?

Evgenii Burmakin Freika

🚀
yes, why?
View GitHub Profile
@Freika
Freika / data_sankey.json
Last active August 22, 2022 21:20
data_sankey.json
{
"nodes":[
{
"node":"Iron",
"name":"Iron"
},
{
"node":1,
"name":"node1"
},
@Freika
Freika / dict.md
Created June 22, 2022 13:08
Distribusion wannabe dictionary

This is a [wannabe] dictionary for Distribusion internal terms. Feel free to add your own.

  • Combined connections — an array of connections (routes) grouped by a param, whether it is a same departure time or something else
  • Station codes — internal code or name of station. 8 characters: DMMMYYY
  • Station pair codes — an array of arrays containing pairs of station codes, deepest array contains a pair in form [DEPARTURE_STATION_CODE, ARRIVAL_STATION_CODE]. Being mapped in MasterData or in Partner.
@Freika
Freika / template.md
Last active May 17, 2022 21:27
Jira template example

Short Summary [Ticket Title]

[BOSI-XYYX] Add send_marketing_emails param to bo/cr

Why are we doing this?

eg. We want to be sure our tests are solid and reliable so red build is not an option

Full Description

function get_ynab_categories(accessToken, budgetId) {
const groups = fetch_ynab_data(accessToken, "budgets/" + budgetId + "/categories").category_groups;
const columns = ["Name", "Budgeted", "Activity", "Balance"];
const rows = [];
for (var group_idx = 0; group_idx < groups.length; group_idx++) {
// Add the group
var group = groups[group_idx];
// Skip internal and hidden categories
@Freika
Freika / do_want.md
Last active May 23, 2024 14:33
Что хочу (наверное)

Хочу

Порядок случайный и с приоритетами ничего общего не имеет

Этот вишлист — на все случаи жизни. Это не руководство к действию, а хотелки и обозначение направления интересов :) Кроме того, я ещё не знаю, кем хочу стать, когда вырасту, поэтому открыт так же и к чему-то, что вообще не обозначено ниже, но кажется вам достаточно интересным и/или захватывающим, чтобы этим поделиться :)

  • Какой-нибудь набор инструментов. У меня есть базовый с молотком, пассатижами и отвёрткой со свёрнутой кукухой, но если будет что-то пообширнее, это будет просто щщщикарно. Старикам — стариковские подарки :D
  • Xiaomi Nanoleaf из 9 панелек
  • Пончо. Потому что иногда дома за ноутом сидеть холодно, можно завернуться в одеяло, но тогда неудобно высовывать руки. Пончо видится выходом с:
  • Трёхтомник "Московское метро"
@Freika
Freika / je.rb
Last active June 25, 2019 09:34
class User
def initialize(first_name, last_name)
@first_name = first_name
@last_name = last_name
end
def full_name(format = nil)
name = "#{@first_name} #{@last_name}"
case format.to_sym
class BinaryCalc
def initialize(arg1, arg2, operation)
@arg1 = arg1.to_s
@arg2 = arg2.to_s
@operation = operation == 'plus' ? :+ : :-
end
def call
(@arg1.to_i(2).public_send(@operation, @arg2.to_i(2)).to_s(2))
end
@Freika
Freika / hexlet_for_kate.js
Last active January 24, 2019 21:47
hexlet help
const SumOfNum = (str) => {
let result = 0;
let i = 0;
while (str.length > i) {
result = Number(str[i]) + Number(result);
i += 1;
}
if (String(result).length > 1) {
{
"always_prompt_for_file_reload": false,
"always_show_minimap_viewport": false,
"animation_enabled": true,
"atomic_save": true,
"auto_close_tags": true,
"auto_complete": true,
"auto_complete_commit_on_tab": false,
"auto_complete_delay": 50,
"auto_complete_selector": "source - comment, meta.tag - punctuation.definition.tag.begin",
@Freika
Freika / spf_examples.rb
Created May 24, 2017 10:08
пробы с SPF
#!/usr/bin/env ruby
require 'spf'
require 'spf/query'
require 'pry'
KIOSK_IP = '136.243.75.105' # Адрес сервера srv-1.kiiiosk.ru с которого отправляются письма
# KIOSK_IP = '2a01:4f8:212:295d::2' # Адрес сервера srv-1.kiiiosk.ru с которого отправляются письма
KIOSK_SPF = %w[
_spf.kiiiosk.ru