Skip to content

Instantly share code, notes, and snippets.

Avatar
:electron:
waiting for all apps in the world to become written in electron

Evgeny Malevich m4l3vich

:electron:
waiting for all apps in the world to become written in electron
View GitHub Profile
@m4l3vich
m4l3vich / formatNumberBySplittingPlaceValuesWithDots.js
Created Jan 31, 2021
Number.toLocaleString() Enterprise Edition
View formatNumberBySplittingPlaceValuesWithDots.js
export const NUMBER_ZERO_AS_BASE_2_STRING = '0'
export const NUMBER_THREE_AS_BASE_4_STRING = '3'
export const NUMBER_FORTY_SIX_AS_BASE_35_STRING = '1b'
export const NUMBER_ZERO_IN_BASE_10 = parseInt(NUMBER_ZERO_AS_BASE_2_STRING, 2)
export const NUMBER_THREE_IN_BASE_10 = parseInt(NUMBER_THREE_AS_BASE_4_STRING, 4)
export const NUMBER_FORTY_SIX_IN_BASE_10 = parseInt(NUMBER_FORTY_SIX_AS_BASE_35_STRING, 35)
export const PLACE_VALUE_LENGTH = NUMBER_THREE_IN_BASE_10
export const DOT_CHARACTER_CODE = NUMBER_FORTY_SIX_IN_BASE_10
@m4l3vich
m4l3vich / VerticalButton.vue
Created Aug 7, 2020
Vertical button (button with icon on top) in Vuetify
View VerticalButton.vue
<template>
<v-btn class="vertical-button" v-bind="$attrs">
<slot/>
</v-btn>
</template>
<style>
.vertical-button, .vertical-button span.v-btn__content {
height: 52px !important;
}
View emoji.json
[{"emoji":"👩‍👩‍👧‍👧","shortname":":family_mothers_two_girls:"},{"emoji":"👩‍👩‍👧‍👦","shortname":":family_mothers_children:"},{"emoji":"👩‍👩‍👦‍👦","shortname":":family_mothers_two_boys:"},{"emoji":"👨‍👩‍👧‍👧","shortname":":family_two_girls:"},{"emoji":"👨‍👩‍👧‍👦","shortname":":family_children:"},{"emoji":"👨‍👩‍👦‍👦","shortname":":family_two_boys:"},{"emoji":"👨‍👨‍👧‍👧","shortname":":family_fathers_two_girls:"},{"emoji":"👨‍👨‍👧‍👦","shortname":":family_fathers_children:"},{"emoji":"👨‍👨‍👦‍👦","shortname":":family_fathers_two_boys:"},{"emoji":"👩‍👩‍👧","shortname":":family_mothers_one_girl:"},{"emoji":"👩‍👩‍👦","shortname":":family_mothers_one_boy:"},{"emoji":"👩‍👧‍👧","shortname":":single_mother_two_girls:"},{"emoji":"👩‍👧‍👦","shortname":":single_mother_two_children:"},{"emoji":"👩‍👦‍👦","shortname":":single_mother_two_boys:"},{"emoji":"👨‍👩‍👧","shortname":":family_one_girl:"},{"emoji":"👨‍👨‍👧","shortname":":family_fathers_one_girl:"},{"emoji":"👨‍👨‍👦","shortname":":family_fathers_one_boy:"},{"emoji":"👨‍👧‍👧","shortname":":single_father_two
@m4l3vich
m4l3vich / docs.md
Created Feb 10, 2019
Команды sManager
View docs.md

Документация по командам sManager

Обращения к боту

Для использования бота допускаются следующие начала команд:
sM, сМ, sm, см, @smanager_bot

Команды

Раздел admin

Описание: Команды для администрирования беседы. Некоторые из них доступны модераторам.
Синонимы: admin, адм, adm, sudo
Команды: