Skip to content

Instantly share code, notes, and snippets.

View hdereli's full-sized avatar
🦉
Curious

Hüseyin Dereli hdereli

🦉
Curious
  • Istanbul
View GitHub Profile
$ git remote rm origin
$ git remote add origin git@github.com:aplikacjainfo/proj1.git
$ git config master.remote origin
$ git config master.merge refs/heads/master
@hdereli
hdereli / main.js
Last active November 22, 2019 12:45
class SitistDemo extends HTMLElement {
constructor() {
// Always call super first in constructor
super();
// Create Shadow DOM
const shadow = this.attachShadow({
mode: 'open'
});
@hdereli
hdereli / findall_elements_deep.js
Created August 24, 2019 10:37 — forked from ebidel/findall_elements_deep.js
Finds all elements on the page, including those within shadow dom.
/**
* @author ebidel@ (Eric Bidelman)
* License Apache-2.0
*/
/**
* Finds all elements on the page, inclusive of those within shadow roots.
* @param {string=} selector Simple selector to filter the elements by. e.g. 'a', 'div.main'
* @return {!Array<string>} List of anchor hrefs.
*/
@hdereli
hdereli / index.html
Created December 20, 2017 14:17
MVC with XmlView // source http://jsbin.com/newicoq
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="X-UA-Compatible"
content="IE=edge" />
<meta charset="utf-8">
<title>MVC with XmlView</title>
<script src="https://sapui5.hana.ondemand.com/resources/sap-ui-core.js"
// Node.js CheatSheet.
// Download the Node.js source code or a pre-built installer for your platform, and start developing today.
// Download: http://nodejs.org/download/
// More: http://nodejs.org/api/all.html
// 0. Synopsis.
// http://nodejs.org/api/synopsis.html
@hdereli
hdereli / gist:07d919bf6bd2422b2195
Created March 14, 2016 11:16 — forked from dennisseah/gist:8dbb7a23ef9c9c264249
SAPUI5: Organizational Chart with d3.js
<html>
<head>
<script src="http://d3js.org/d3.v3.min.js"></script>
<meta http-equiv='X-UA-Compatible' content='IE=edge' />
<meta http-equiv='Content-Type' content='text/html;charset=UTF-8'/>
<style>
.dennisseah-orgchart .node {
cursor: pointer;
}
@hdereli
hdereli / Log4HCPServlet.java
Last active December 28, 2015 20:56
Sample Java App Servlet
package com.yourdomain.log4hcp;
import java.io.IOException;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
/**
@hdereli
hdereli / index.html
Created November 3, 2015 13:29 — forked from anonymous/index.html
JS Bin // source https://jsbin.com/towisa
<!DOCTYPE html>
<html>
<head>
<script src="https://openui5.hana.ondemand.com/resources/sap-ui-core.js" id="sap-ui-bootstrap" data-sap-ui-theme="sap_bluecrystal" data-sap-ui-libs="sap.m,sap.ui.commons"
></script>
<meta charset="utf-8">
<title>JS Bin</title>