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
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') |
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
'use strict'; | |
var OFFERS_AMOUNT = 8; | |
var houseTypes = ['palace', 'flat', 'house', 'bungalo']; | |
var localizedOfferType = { | |
'flat': 'Квартира', | |
'bungalo': 'Бунгало', | |
'house': 'Дом', |
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
'use strict'; | |
(function () { | |
// начальное состояние фильтров, можно сразу заполнить дефолтными значениями | |
var filterState = { | |
'housing-type': 'any', | |
'housing-rooms': 'any', | |
'housing-guests': 'any', | |
features: {} | |
} |
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
'use strict'; | |
(function () { | |
var filterState = { | |
'housing-type': 'any', | |
'housing-rooms': 'any', | |
'housing-guests': 'any', | |
'housing-price': 'any', | |
'features': [] | |
}; |
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
(function () { | |
window.debounce = function(callback, ms) { | |
var isCooldown = false; | |
return function() { | |
if (isCooldown) return; | |
callback.apply(this, arguments); |
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
{ | |
"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", |
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
{ | |
"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" | |
} |
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
// 1 вариант: выхов от результата. Пример задача на суммирование. | |
const fn = (...args) => { | |
const wrapper = () => { | |
return fn; | |
} | |
return wrapper; | |
} | |
console.log(fn()()()()); |
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
var simpleObject = { | |
property: 4, | |
method: function () { | |
console.log(this.property); | |
} | |
}; | |
var simpleFunction = function() { | |
this.property = 5; | |
(function() { |
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 { useEffect, useRef } = require("react"); | |
const noop = () => {}; | |
class Editor { | |
constructor(element) { | |
this.element = element; | |
} | |
destroy() { |