This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
* REST INTERNAL API | |
* © Uday Hiwarale | |
* Date Created : 10/05/2016 | |
* API Version : 1.0 | |
**/ | |
/* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
jQuery(document).click(function(event){ | |
event.stopPropagation(); | |
var elem = event.target; | |
function traverseUp(el){ | |
var result = el.tagName + ':nth-child(' + ($(el).index() + 1) + ')', | |
pare = $(el).parent()[0]; | |
if (pare.tagName !== undefined && pare.tagName !== 'BODY'){ | |
result = [traverseUp(pare), result].join('>'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
jQuery(document).click(function(event){ | |
event.stopPropagation(); | |
var elem = event.target; | |
function traverseUp(el){ | |
var result = el.tagName.toLowerCase() + ':eq(' + $(el).index() + ')', | |
pare = $(el).parent()[0]; | |
if (pare.tagName !== undefined && pare.tagName !== 'BODY'){ | |
result = [traverseUp(pare), result].join('>'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
for i in `curl https://www.cloudflare.com/ips-v4`; do csf -a $i; done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
doctype html | |
html | |
head | |
//- Invisible comment in head section which will not appear in rendered html | |
// Visible comment in head block which will appear in rendered html | |
<!-- html comment will work fine too, but I don't get the idea! --> | |
body | |
//- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<!-- Visible comment in head block which will appear in rendered html--><!-- html comment will work fine too, but I don't get the idea! --> | |
</head> | |
<body> | |
<!-- "Comment can start from this line as well." | |
Visible comment in head block | |
which will appear in rendered html. | |
--> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//- An attribute but be added inside parentheses. | |
//- They might look similar to plain HTML attributes but value of an attribute is actually a JavaScript exprssion. | |
//- Below is string used as JavaScript expression. | |
a(href="https://google.com") google.com | |
//- An example of actual JavaScript expression. | |
//- You can separate multiple attributes using `,` or ` ` space character. | |
a(href="https://" + "google" + ".com", target="_blank") google.com |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<a href="https://google.com">google.com</a> | |
<a href="https://google.com" target="_blank">google.com</a> | |
<img src="https://design.google.com/logo.png" alt="google logo" /> | |
<img src="https://design.google.com/logo-medium.png" alt="google logo" /> | |
<input type="checkbox" checked="checked" /> | |
<input type="checkbox" checked="checked" /> | |
<input type="checkbox" /> | |
<input type="text" name="username" placeholder="Enter your username" required="required" /> | |
<img src="<code></code>" /> | |
<img src="<code></code>" /> |
OlderNewer