Module: https://www.npmjs.com/package/@kba/simmetrics
threshold = min score for similarity
loop x in sentences loop y in sentences
Module: https://www.npmjs.com/package/@kba/simmetrics
threshold = min score for similarity
loop x in sentences loop y in sentences
.vhb-blocker-page { | |
font-family: "Gotham Narrow SSm A", "Gotham Narrow SSm B", Arial, Helvetica, sans-serif; | |
} | |
.vhb-blocker-background{ | |
background-repeat: no-repeat; | |
background-position: top center; | |
} |
//Nice formatting of all JSON objects | |
var divs = document.querySelectorAll('pre.json'); | |
[].forEach.call(divs, function(elm) { | |
// do whatever | |
eval('var json = ' + elm.innerHTML); | |
elm.innerHTML = JSON.stringify(json, undefined, 2); | |
}); | |
//Allow to easily add CSS rules | |
var sheet = (function() { |
/** | |
* SHARE- Additional amp-social-share styles | |
*/ | |
amp-social-share[type="whatsapp"]{ | |
display: inline-block; | |
width: 45px; | |
height: 33px; | |
background-color: #25d366; |
function start(){ | |
$('.CodeMirror')[0].CodeMirror.options.extraKeys['Ctrl-S'] = function(){$.get('https://edison.glitch.me/reload')}; | |
} | |
function check(){ | |
if ($ && $('.CodeMirror') && $('.CodeMirror')[0] && $('.CodeMirror')[0].CodeMirror){ | |
console.log('starting...'); | |
start(); | |
} else { | |
console.log('waiting...'); |