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
let title = "" | |
let desc = "" | |
let image = "" | |
layer.bindPopup(`${title} <br/> ${desc} <br/> <img src="${image}" alt="${desc}"/>` |
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
BTL PAT 363734 | |
PAT 112510 | |
PAT 160410 | |
PAT 110411 | |
PAT 361637 | |
MODE (1,1)(WRP,RUN,SQR) | |
WBT (1,1)(ABCD,0123,WXYZ) | |
XL (1,1)1(0...) | |
CH CHV (1,1) XLOC,SET,5,344 |
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
bool isValidOffset(int x,int y,int width,int height){ | |
if(x < 0 || x > width) return false; | |
if(y < 0 || y > width) return false; | |
return true; | |
} |
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
constexpr auto single_sum = [](auto)->std::function<int(int, int)> { return [](int a, int b) { return a + b; }; }; | |
constexpr auto single_sub = [](auto)->std::function<int(int, int)> { return [](int a, int b) { return a - b; }; }; | |
constexpr auto single_mul = [](auto)->std::function<int(int, int)> { return [](int a, int b) { return a * b; }; }; | |
constexpr auto single_div = [](auto)->std::function<int(int, int)> { return [](int a, int b) { return a / b; }; }; | |
constexpr auto prefix_double = [](auto)->std::function<int(int)> { return [](int a) { return a * a; }; }; | |
constexpr auto prefix_neg = [](auto)->std::function<int(int)> { return [](int a) { return -a; }; }; | |
auto mathParser = |
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
//Transformations | |
constexpr auto to_string = [](auto v) { return std::string(1, v); }; | |
constexpr auto vec_to_string = [](auto v) { | |
return std::accumulate(v.begin(), v.end(), std::string{}); | |
}; | |
//Grammar | |
constexpr auto ws = monadic::Many(symbs<'\n', '\t', '\r',' '>() % to_string); | |
constexpr auto str_wrap = Wrapper('"'_symb, '"'_symb); | |
constexpr auto obj_wrap = Wrapper('{'_symb, '}'_symb); |
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
template<typename Parser> | |
struct Many { | |
using is_parser_type = std::true_type; | |
using return_type = typename std::vector<typename Parser::return_type>; | |
using temp_result_type = typename Parser::return_type; | |
Parser const p; | |
Many(Parser const& p_) :p(p_) {}; | |
//CAN REPEAT 0 Times |
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
template<typename Parser> | |
struct Repeat { | |
using is_parser_type = std::true_type; | |
using return_type = typename std::vector<typename Parser::return_type>; | |
using temp_result_type = typename Parser::return_type; | |
Parser const p; | |
Repeat(Parser const& p_) :p(p_) {}; |
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
template<typename ...Parsers> | |
struct Seq { | |
using is_parser_type = std::true_type; | |
using return_type = typename std::tuple<typename Parsers::return_type...>; | |
using container_type = typename std::tuple<Parsers...>; | |
container_type const parsers; |
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
struct SampleParser { | |
using is_parser_type = std::true_type; | |
using return_type = int; | |
template<typename Iterator> | |
bool operator()(Iterator& it, Iterator end, return_type* r) const{ | |
return true; | |
} | |
}; |
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
using System; | |
using System.Collections.Generic; | |
using Microsoft.VisualStudio.TemplateWizard; | |
//using System.Windows.Forms; | |
using EnvDTE; | |
using Microsoft.VisualStudio.PlatformUI; | |
using System.Windows.Controls; | |
using System.Windows.Media; | |
using Microsoft.VisualStudio.Shell; |
NewerOlder