Skip to content

Instantly share code, notes, and snippets.

View roydondsouza's full-sized avatar

Roydon DSouza roydondsouza

View GitHub Profile
@roydondsouza
roydondsouza / gist:294e4e79e550e998000f14ddcfe59dbd
Created May 29, 2017 20:14 — forked from jaydson/gist:1780598
How to detect a click event on a cross domain iframe
var myConfObj = {
iframeMouseOver : false
}
window.addEventListener('blur',function(){
if(myConfObj.iframeMouseOver){
console.log('Wow! Iframe Click!');
}
});
document.getElementById('YOUR_CONTAINER_ID').addEventListener('mouseover',function(){
@roydondsouza
roydondsouza / elasticsearch.md
Created September 1, 2017 05:13 — forked from nicolashery/elasticsearch.md
Elasticsearch: updating the mappings and settings of an existing index

Elasticsearch: updating the mappings and settings of an existing index

Note: This was written using elasticsearch 0.9.

Elasticsearch will automatically create an index (with basic settings and mappings) for you if you post a first document:

$ curl -X POST 'http://localhost:9200/thegame/weapons/1' -d \
'{
  "_id": 1,
@roydondsouza
roydondsouza / API.md
Created June 26, 2018 04:32 — forked from iros/API.md
Documenting your REST API

Title

<Additional information about your API call. Try to use verbs that match both request type (fetching vs modifying) and plurality (one vs multiple).>

  • URL

    <The URL Structure (path only, no root url)>

  • Method:

@roydondsouza
roydondsouza / keybase.md
Created April 23, 2020 19:05
Keybase proof

Keybase proof

I hereby claim:

  • I am roydondsouza on github.
  • I am roydondsouza (https://keybase.io/roydondsouza) on keybase.
  • I have a public key ASBp6aENl5We3jJdAOEXu4qp6vfm4VZRCE-yKn6hv9S6bAo

To claim this, I am signing this object: