Skip to content

Instantly share code, notes, and snippets.

Avatar
💭
Uncaught ReferenceError

Kostas Minaidis kostasx

💭
Uncaught ReferenceError
View GitHub Profile
@kostasx
kostasx / _tsne.pdf
Created Feb 28, 2021 — forked from kylemcdonald/_tsne.pdf
Exploring antonyms with word2vec.
View _tsne.pdf
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View embedding-projector.config.json
{
"embeddings": [
{
"tensorName": "Reviews Sentiment Analysis Vector Space",
"tensorShape": [
1000,
50
],
"tensorPath": "https://gist.githubusercontent.com/kostasx/0af4f6303ff6821476543366904e4b21/raw/1357a73b5a75fbb8d49646b471a9d19470d9238e/embedding-projector--vecs.tsv",
"metadataPath": "https://gist.githubusercontent.com/kostasx/8aa6c86651ca73d0455d546c8b2a078e/raw/61dceae3f45fd1abf7eb16964c2f92fda30ac464/embedding-projector--meta.tsv"
View embedding-projector--vecs.tsv
We can make this file beautiful and searchable if this error is corrected: It looks like row 6 should actually have 16 columns, instead of 8. in line 5.
0.11199197 -0.003564898 0.28838375 -0.02453965 -0.060024902 -0.0721752 0.084433 0.04048575 -0.0048353043 -0.010357111 -0.24254088 0.123872384 0.06795292 0.058354862 -0.0924278 0.25570905
0.087117806 -0.057186488 0.24222723 0.0046102796 0.054156974 -0.03447769 0.09587353 -0.015675819 0.009703704 -0.06351056 -0.16185245 0.097795 0.07845944 0.04366533 -0.043812513 0.20302159
-0.12033286 0.19545701 0.31732923 0.18137869 -0.1491861 0.22615197 -0.18394953 -0.22844425 0.23483802 0.17303562 -0.24325718 -0.15418604 -0.17959246 -0.18284406 -0.23760289 0.35320896
0.019094488 0.05589215 0.27747035 0.0093216635 -0.03744544 0.064165235 0.04416203 -0.00037242024 0.068225645 0.01665077 -0.22317336 0.057856657 -0.042340375 -0.035009976 -0.101763465 0.28485936
0.16710165 -0.06288179 0.22370918 -0.04430955 0.008299133 -0.12387165 0.117996536 0.022873737 -0.08183648 -0.11078356 -0.15378515 0.14609973 0.1264015 0.11722314 -0.062144615 0.13573056
0.093750045 -0.036193356 0.06635687 -0.09512182 0.025961913 -0.07996079 0.08794111 0.
View embedding-projector--meta.tsv
We can make this file beautiful and searchable if this error is corrected: No tabs found in this TSV file in line 0.
<OOV>
the
and
i
it
a
is
to
this
was
@kostasx
kostasx / pres.md
Created Feb 13, 2021 — forked from whostolebenfrog/pres.md
Notes on: Instantly better presentations - Damian Conway
View pres.md

Instantly better presentations - Damian Conway

It probably just makes more sense to just view his version online at:

http://damian.conway.org/IBP.pdf

But making notes is useful anyway.

7 tips are

@kostasx
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";
// https://cdnjs.cloudflare.com/ajax/libs/lz-string/1.4.4/lz-string.min.js
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 Table.md
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
kostasx / Microsoft 70-480 Exam Study Guide.md
Last active Nov 14, 2019 — forked from rgharris/Microsoft 70-480 Exam Study Guide.md
Programming in HTML5 with JavaScript and CSS3
View Microsoft 70-480 Exam Study Guide.md
@kostasx
kostasx / README.md
Last active May 1, 2020 — forked from jthomas/package.json
Using TensorFlow.js with MobileNet models for image classification on Node.js
View README.md

USAGE:

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

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