Skip to content

Instantly share code, notes, and snippets.

@peter-nikitin
peter-nikitin / 0_reuse_code.js
Created July 10, 2017 14:19
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@peter-nikitin
peter-nikitin / plex-email.html
Created July 21, 2017 10:00
Plex email letter - beautiful
<div id=":2go" class="ii gt adP adO"><div id=":2gn" class="a3s aXjCH m15d618cb34dbe722"><u></u>
@peter-nikitin
peter-nikitin / Best grid ever
Created September 23, 2017 11:12
Grid for all browsers
body {
text-align: center;
}
.grid {
display: inline-block;
}
.grid__item {
width: 20em;
.visually-hidden {
/* Удаляем элемент из потока документа */
position: absolute;
/* Временное решение для неверно произносимого, размазанного текста */
white-space: nowrap;
/* Устанавливаем минимально возможный размер (некоторые скринридеры игнорируют элементы с нулевой высотой и шириной) */
width: 1px;
height: 1px;
/* Скрываем вылезающий за границы контент */
overflow: hidden;
body {
background-color: white;
background-image: linear-gradient( 45deg,black 25%, transparent 25%, transparent 74%, black 75%, black),
linear-gradient( 45deg,black 25%, transparent 25%, transparent 74%, black 75%, black);
background-size:100px 100px;
background-position: 0 0, 50px 50px;
}
function onSubmit(e) {
//var formResponses = e.response.getItemResponses();
//var email = formResponses[0].getResponse();
//var myName = formResponses[1].getResponse();
var email = "nikitin123@mindbox.ru";
var myName = "Петр";
Logger.log(email);
@peter-nikitin
peter-nikitin / code.gs
Created September 14, 2020 14:19
Код для интеграции Google Forms с Mindbox
/**
*
*
* The above comment directs Apps Script to limit the scope of file
* access for this add-on. It specifies that this add-on will only
* attempt to read or modify the files in which the add-on is used,
* and not all of the user's files. The authorization request message
* presented to users will reflect this limited scope.
*/
@peter-nikitin
peter-nikitin / CardsMobile.md
Last active August 24, 2023 13:58
Mindbox Quick Start Descriptions

Кошелек

В рамках сценария заведется

Точка контакта: CardsMobileApp с названием Приложение Кошелёк

Точка интеграции: {{projectName}}-CardsMobile с названием Приложение Кошелёк с дополнительными настройками:

  • Во всех брендах, если есть бренды
  • Подтверждение телефонов
helmfile -f helmfile/helmfile.yaml --debug -e dataline.staging template
@peter-nikitin
peter-nikitin / MCF_helm_chart.yaml
Last active January 20, 2023 11:49
The article about deploy
apiVersion: apps/v1
kind: Deployment
metadata:
name: {{ .Values.name }}-deployment-{{ .Values.environment }}
spec:
replicas: {{ .Values.services.replicas }}
selector:
matchLabels:
product: {{ .Values.name }}