Skip to content

Instantly share code, notes, and snippets.

View targumon's full-sized avatar
🤓

Amnon Sadeh targumon

🤓
View GitHub Profile
@olierxleben
olierxleben / fish tree function
Created April 26, 2014 05:56
tree printing terminal command for fish shell
function tree
find . -print | sed -e 's;[^/]*/;|____;g;s;____|; |;g'
end
@pbojinov
pbojinov / README.md
Last active December 8, 2023 21:09
Two way iframe communication- Check out working example here: http://pbojinov.github.io/iframe-communication/

Two way iframe communication

The main difference between the two pages is the method of sending messages. Recieving messages is the same in both.

Parent

Send messages to iframe using iframeEl.contentWindow.postMessage Recieve messages using window.addEventListener('message')

iframe