Skip to content

Instantly share code, notes, and snippets.

View kostasx's full-sized avatar
💭
Uncaught ReferenceError

Kostas Minaidis kostasx

💭
Uncaught ReferenceError
View GitHub Profile
@kostasx
kostasx / Microsoft 70-480 Exam Study Guide.md
Last active November 14, 2019 15:21 — forked from rgharris/Microsoft 70-480 Exam Study Guide.md
Programming in HTML5 with JavaScript and CSS3
@kostasx
kostasx / README.md
Last active May 1, 2020 15:27 — forked from jthomas/package.json
Using TensorFlow.js with MobileNet models for image classification on Node.js

USAGE:

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

@kostasx
kostasx / gist:f1d65ced9602b2ca6992bf71257974d9
Created May 5, 2019 12:29
DOM Manipulation Performance in JavaScript
<!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>
@kostasx
kostasx / Git.md
Created May 5, 2019 08:50 — forked from dirkdunn/Git.md
Git lesson

Git Fundamentals

LEARNING OBJECTIVES

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
kostasx / eventloop-html-input-elements.markdown
Created March 1, 2019 11:06
EventLoop | HTML Input Elements
@kostasx
kostasx / eventloop-afdemp-4-2-class-exercise-11.markdown
Created March 1, 2019 08:49
EventLoop | AfDEMP 4.2 Class Exercise 11
@kostasx
kostasx / eventloop-afdemp-4-2-class-exercise-10.markdown
Created February 28, 2019 22:26
EventLoop | AfDEMP 4.2 Class Exercise 10
@kostasx
kostasx / web-scraping-titles.js
Created January 8, 2019 22:27
Web Scraping for the lazy developer [ YouTube: https://youtu.be/yB_oh7WgRU8 ]
let result = Array.from( document.querySelectorAll("h3.section-title") )
.map( (title) => title.textContent.trim()).join("\n");
copy( result );
@kostasx
kostasx / insert-headers-and-footers-conditional.html
Last active March 17, 2020 06:03
Execute JavaScript on Specific Posts or Pages using the Insert Headers and Footers WordPress Plugin
<!-- Insert in the Footer Area of the Plugin: -->
<script>
if ( document.querySelector("body.postid-NUM") ){
// Code to be executed on the selected Post or Page with ID NUM goes here...
// Replace NUM with the ID Number of your Post or Page
}
</script>
@kostasx
kostasx / custom.js
Created January 3, 2019 16:17
WordPress Localized Scripts: Pass PHP data to JavaScript - The JavaScript code.
// Paste this code in a file inside your child theme's folder: /js/custom.js
jQuery(function($) {
alert( php_data.message );
});