Skip to content

Instantly share code, notes, and snippets.

Uncaught ReferenceError

Kostas Minaidis kostasx

Uncaught ReferenceError
View GitHub Profile
kostasx / post-to-codesandbox.js
Created Sep 24, 2020
Dynamically create a Codesandbox using a GET request and the Codesandbox API
View post-to-codesandbox.js
// import * as LZString from "lz-string";
var LZString=function(){function o(o,r){if(!t[o]){t[o]={};for(var n=0;n<o.length;n++)t[o][o.charAt(n)]=n}return t[o][r]}var r=String.fromCharCode,n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+-$",t={},i={compressToBase64:function(o){if(null==o)return"";var r=i._compress(o,6,function(o){return n.charAt(o)});switch(r.length%4){default:case 0:return r;case 1:return r+"===";case 2:return r+"==";case 3:return r+"="}},decompressFromBase64:function(r){return null==r?"":""==r?null:i._decompress(r.length,32,function(e){return o(n,r.charAt(e))})},compressToUTF16:function(o){return null==o?"":i._compress(o,15,function(o){return r(o+32)})+" "},decompressFromUTF16:function(o){return null==o?"":""==o?null:i._decompress(o.length,16384,function(r){return o.charCodeAt(r)-32})},compressToUint8Array:function(o){for(var r=i.c
View Comparison
Short-circuit? Short-circuits on? Fulfilled on? Rejected on?
Promise.all First rejected promise All promise fulfilled First rejected promise
Promise.allSettled N/A Always N/A
Promise.race First settled First promise fulfilled First rejected promise
Promise.any First fulfilled First promise fulfilled All rejected promises
kostasx / Microsoft 70-480 Exam Study
Last active Nov 14, 2019 — forked from rgharris/Microsoft 70-480 Exam Study
Programming in HTML5 with JavaScript and CSS3
View Microsoft 70-480 Exam Study
kostasx /
Last active May 1, 2020 — forked from jthomas/package.json
Using TensorFlow.js with MobileNet models for image classification on Node.js


$ node mobilenet-node.js ./model image.jpg

kostasx / gist:f1d65ced9602b2ca6992bf71257974d9
Created May 5, 2019
DOM Manipulation Performance in JavaScript
View gist:f1d65ced9602b2ca6992bf71257974d9
<!DOCTYPE html>
<html lang="en">
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
kostasx /
Created May 5, 2019 — forked from dirkdunn/
Git lesson

Git Fundamentals


After this lesson, you will be able to:

  • Explain what version control is
  • Explain why developers use version control
  • Explain the process of how git works
  • Distinguish between local and remote repositories
  • Understand basic git commands like init, add, commit, push, pull and clone
kostasx / eventloop-afdemp-4-2-class-exercise-11.markdown
Created Mar 1, 2019
EventLoop | AfDEMP 4.2 Class Exercise 11
View eventloop-afdemp-4-2-class-exercise-11.markdown
kostasx / eventloop-afdemp-4-2-class-exercise-10.markdown
Created Feb 28, 2019
EventLoop | AfDEMP 4.2 Class Exercise 10
View eventloop-afdemp-4-2-class-exercise-10.markdown
kostasx / web-scraping-titles.js
Created Jan 8, 2019
Web Scraping for the lazy developer [ YouTube: ]
View web-scraping-titles.js
let result = Array.from( document.querySelectorAll("h3.section-title") )
.map( (title) => title.textContent.trim()).join("\n");
copy( result );
You can’t perform that action at this time.