Skip to content

Instantly share code, notes, and snippets.

const number = (num) => operation => operation ? operation(num) : num;
const zero = number(0);
const one = number(1);
const two = number(2);
const three = number(3);
const four = number(4);
const five = number(5);
const six = number(6);
const seven = number(7);
Під музику
Дівчина з індійським шаликом
Маленька душа
Боже, не літості — лютості
Тільки тобою
Сірник
Сьогодні небо
@poohitan
poohitan / ex1.cs
Last active November 27, 2016 12:23
Example of calculating an expression using PoohMathParser
MathExpression expr = new MathExpression("sinh(x)+e^x");
@poohitan
poohitan / lang.js
Created June 1, 2016 13:15 — forked from mirontoli/lang.js
Get Language name based on iso 639-1 code
/**
* @author Anatoly Mironov (mirontoli)
* http://sharepointkunskap.wordpress.com
* http://www.bool.se
*
* http://stackoverflow.com/questions/3605495/generate-a-list-of-localized-language-names-with-links-to-google-translate/14800384#14800384
* http://stackoverflow.com/questions/10997128/language-name-from-iso-639-1-code-in-javascript/14800499#14800499
*
* using Phil Teare's answer on stackoverflow
* http://stackoverflow.com/questions/3217492/list-of-language-codes-in-yaml-or-json/4900304#4900304
window.SecretName.Instances['7ddee156-b27c-42fd-9657-f7d07aa009f3'] =
{"id":"7ddee156-b27c-42fd-9657-f7d07aa009f3","domain":"testpostmessages","target_type":"web","html":"%3Cdiv%20class=%22secret-name-instance%22%20data-template=%22default%22%20data-size=%22%7B"width":824,"height":88%7D%22%20style=%22width:%20100%25;%22%3E%3Cdiv%20class=%22hidden%20data-options%22%20data-instance-template-name=%22simple%22%3E%3C/div%3E%3Cstyle%3E.animated%7B-webkit-animation-duration:0.5s;animation-duration:0.5s;-webkit-animation-fill-mode:both;animation-fill-mode:both%7D.animated.infinite%7B-webkit-animation-iteration-count:infinite;animation-iteration-count:infinite%7D.animated.hinge%7B-webkit-animation-duration:2s;animation-duration:2s%7D@-webkit-keyframes%20fadeIn%7B0%25%7Bopacity:0%7D100%25%7Bopacity:1%7D%7D@keyframes%20fadeIn%7B0%25%7Bopacity:0%7D100%25%7Bopacity:1%7D%7D.fadeIn%7B-webkit-animation-name:fadeIn;animation-name:fadeIn%7D@-webkit-keyframes%20fadeInDown%7B0%25%7Bopacity:0;-webkit-transform
var PUSHRESPONSE_SCRIPT_URL = 'http://localhost:5000/pushresponse.js',
CHECK_IF_SHOW_BANNER_IFRAME_URL = 'http://localhost:5000/check-if-show-banner';
window.PushResponse = window.PushResponse || {};
window.PushResponse.Initialized = window.PushResponse.Initialized || {};
window.PushResponse.Banners = window.PushResponse.Banners || {};
window.PushResponse.Banners['7ddee156-b27c-42fd-9657-f7d07aa009f3'] =
{"id":"7ddee156-b27c-42fd-9657-f7d07aa009f3","domain":"testpostmessages","target_type":"web","html":"%3Cdiv%20class=%22push-responder-banner%22%20data-template=%22default%22%20data-size=%22%7B\u0026quot;width\u0026quot;:824,\u0026quot;height\u0026quot;:88%7D%22%20style=%22width:%20100%25;%22%3E%3Cdiv%20class=%22hidden%20data-options%22%20data-banner-template-name=%22simple%22%3E%3C/div%3E%3Cstyle%3E.animated%7B-webkit-animation-duration:0.5s;animation-duration:0.5s;-webkit-animation-fill-mode:both;animation-fill-mode:both%7D.animated.infinite%7B-webkit-animation-iteration-count:infinite;animation-iteration-co
var PUSHRESPONSE_SCRIPT_URL = 'http://localhost:5000/pushresponse.js',
CHECK_IF_SHOW_BANNER_IFRAME_URL = 'http://localhost:5000/check-if-show-banner';
window.PushResponse = window.PushResponse || {};
window.PushResponse.Banners = window.PushResponse.Banners || {};
window.PushResponse.Banners['39debf17-03e0-4849-bc58-0c2b11b096a1'] =
{"id":"39debf17-03e0-4849-bc58-0c2b11b096a1","domain":"testing-f","target_type":"web","html":"%3Cdiv%20class=%22push-responder-banner%22%20data-template=%22default%22%20data-size=%22%7B\u0026quot;width\u0026quot;:609,\u0026quot;height\u0026quot;:88%7D%22%20style=%22width:%20100%25;%22%3E%3Cdiv%20class=%22hidden%20data-options%22%20data-banner-template-name=%22simple%22%3E%3C/div%3E%3Cstyle%3E.animated%7B-webkit-animation-duration:0.5s;animation-duration:0.5s;-webkit-animation-fill-mode:both;animation-fill-mode:both%7D.animated.infinite%7B-webkit-animation-iteration-count:infinite;animation-iteration-count:infinite%7D.animated.hinge%7B-webkit-animation-duration:2s;animation-dura
var SCRIPT_URL = 'http://localhost:5000/pushresponse.js';
window.PushResponse = window.PushResponse || {};
window.PushResponse.Banners = window.PushResponse.Banners || {};
window.PushResponse.Banners['1e3020a2-5352-42a6-b419-9c97e7dab840'] = {
"id":"1e3020a2-5352-42a6-b419-9c97e7dab840","target_type":"web","client_id":null,"html":"%3Cdiv%20style=%22width:%20100%25;%20height:%2096px;%22%20data-size=%22%7B\u0026quot;width\u0026quot;:436,\u0026quot;height\u0026quot;:96%7D%22%20class=%22push-response_body%22%3E%3Cspan%20data-size=%22%7B\u0026quot;width\u0026quot;:53.55,\u0026quot;height\u0026quot;:40.85%7D%22%20style=%22width:%2012.282%25;%20height:%2042.552%25;%20left:%2058.257%25;%20top:%2037.5%25;%20box-sizing:%20border-box;%20padding:%206px%2014px;%20background-color:%20rgb(26,%20179,%20148);%20color:%20rgb(255,%20255,%20255);%20border-style:%20solid;%20position:%20absolute;%20flex-wrap:%20wrap;%20justify-content:%20center;%20align-items:%20center;%20display:%20flex;%20cursor:%20pointer;%22%20class=%22push
$titleFontSize: 1.5em;
$buttonsContainerHeight: 2em;
$padding: 1em;
.push-response-banner[data-template="red"] {
background: #FFE8E8;
font-size: 1em;
color: #000;
border: 1px solid red;
padding: $padding;
$titleFontSize: 1.5em;
$buttonsContainerHeight: 2em;
$padding: 1em;
.push-response-banner[data-template="default"] {
background: #FAFAFA;
font-size: 1em;
color: #777;
border: 1px solid #DDD;
padding: $padding;