Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View SavchenkoValeriy's full-sized avatar
🧶

Valeriy Savchenko SavchenkoValeriy

🧶
  • London, United Kingdom
  • 13:39 (UTC +01:00)
View GitHub Profile
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
function onOpen() {
const ui = DocumentApp.getUi();
ui.createMenu('SEO')
.addItem('Check Keywords', 'findKeywords')
.addToUi();
}
function makeCaseInsensitive(searchPattern) {
// see: https://stackoverflow.com/a/54217083/11582326
return "(?i)" + searchPattern;
template <typename T, unsigned N>
struct MatrixImpl {
static_assert(N > 0, "Matrix should have at least one dimension");
using Type = std::vector<typename MatrixImpl<T, N - 1>::Type>;
};
template <typename T>
struct MatrixImpl<T, 1> {
using Type = std::vector<T>;
};