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 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...'); |
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
/** | |
* SHARE- Additional amp-social-share styles | |
*/ | |
amp-social-share[type="whatsapp"]{ | |
display: inline-block; | |
width: 45px; | |
height: 33px; | |
background-color: #25d366; |
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
//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() { |
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
.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; | |
} |
Module: https://www.npmjs.com/package/@kba/simmetrics
threshold = min score for similarity
loop x in sentences loop y in sentences