Skip to content

Instantly share code, notes, and snippets.

var SOURCE_TAB_NAME = "Портфель";
var TIKER_RANGE = "A8:B120";
var MICEX_RATES_PAGE_NAME = "MicexRateTickers";
var MICEX_INDEX_PAGE_NAME = "IMOEX";
function onOpen() {
SpreadsheetApp.getUi()
.createMenu('MICEX Updater')
.addItem('Update Rates', 'updateRates')
.addItem('Update Index', 'updateMecixIndex')
'use strict';
var OFFERS_AMOUNT = 8;
var houseTypes = ['palace', 'flat', 'house', 'bungalo'];
var localizedOfferType = {
'flat': 'Квартира',
'bungalo': 'Бунгало',
'house': 'Дом',
'use strict';
(function () {
// начальное состояние фильтров, можно сразу заполнить дефолтными значениями
var filterState = {
'housing-type': 'any',
'housing-rooms': 'any',
'housing-guests': 'any',
features: {}
}
'use strict';
(function () {
var filterState = {
'housing-type': 'any',
'housing-rooms': 'any',
'housing-guests': 'any',
'housing-price': 'any',
'features': []
};
(function () {
window.debounce = function(callback, ms) {
var isCooldown = false;
return function() {
if (isCooldown) return;
callback.apply(this, arguments);
{
"id": "0",
"comments": [
$Comment.id$, $Comment.id$
],
"film_info": {
"title": "A Little Pony Without The Carpet",
"alternative_title": "Laziness Who Sold Themselves",
"total_rating": 5.3,
"poster": "images/posters/blue-blazes.jpg",
{
"id": "42",
"author": "Ilya O'Reilly",
"comment": "a film that changed my life, a true masterpiece, post-credit scene was just amazing omg.",
"date": "2019-05-11T16:12:32.554Z",
"emotion": "neutral-face"
}
// 1 вариант: выхов от результата. Пример задача на суммирование.
const fn = (...args) => {
const wrapper = () => {
return fn;
}
return wrapper;
}
console.log(fn()()()());
var simpleObject = {
property: 4,
method: function () {
console.log(this.property);
}
};
var simpleFunction = function() {
this.property = 5;
(function() {
const { useEffect, useRef } = require("react");
const noop = () => {};
class Editor {
constructor(element) {
this.element = element;
}
destroy() {