Skip to content

Instantly share code, notes, and snippets.

@ilker0
ilker0 / index.html
Created April 23, 2024 13:58
vYPrYgL
<div style="display:flex; justify-content: center;">
<canvas width="500" height="500" id="myCanvas"></canvas>
</div>
const {
Not,
LessThan,
MoreThan,
LessThanOrEqual,
MoreThanOrEqual,
Equal,
Like,
Between,
In,
let xPath = {
clickElement: null,
clickElementElementPath: null,
xPathList: [],
xPathObject: {},
uniqueCheck() {
const { xPathList } = this;
let element = document.evaluate(xPathList[0], document, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null).singleNodeValue;
let selectElement = document.querySelectorAll(element.localName)
@ilker0
ilker0 / nginxproxy.md
Created July 17, 2019 15:18 — forked from soheilhy/nginxproxy.md
How to proxy web apps using nginx?

Virtual Hosts on nginx (CSC309)

When hosting our web applications, we often have one public IP address (i.e., an IP address visible to the outside world) using which we want to host multiple web apps. For example, one may wants to host three different web apps respectively for example1.com, example2.com, and example1.com/images on the same machine using a single IP address.

How can we do that? Well, the good news is Internet browsers

@ilker0
ilker0 / 01-directory-structure.md
Created April 15, 2019 19:11 — forked from tracker1/01-directory-structure.md
Anatomy of a JavaScript/Node project.

Directory structure for JavaScript/Node Projects

While the following structure is not an absolute requirement or enforced by the tools, it is a recommendation based on what the JavaScript and in particular Node community at large have been following by convention.

Beyond a suggested structure, no tooling recommendations, or sub-module structure is outlined here.

Directories

  • lib/ is intended for code that can run as-is
  • src/ is intended for code that needs to be manipulated before it can be used