Skip to content

Instantly share code, notes, and snippets.

View gorlandor's full-sized avatar
🐺
`Ongoing thing` by 20syl

Giovanni Orlando gorlandor

🐺
`Ongoing thing` by 20syl
View GitHub Profile

Keybase proof

I hereby claim:

  • I am giovanni0918 on github.
  • I am giovanni0918 (https://keybase.io/giovanni0918) on keybase.
  • I have a public key whose fingerprint is 5A37 4E44 4CD9 129F 34C2 41D2 9394 11DB CE74 6D7F

To claim this, I am signing this object:

@gorlandor
gorlandor / standalone-on-iOS.js
Created February 9, 2017 13:58
Allows for in-app navigation for add-to-home-screen capable web apps on iOS. Prevents links from opening in a new window on mobile Safari. Add this as the first script tag inside the head. Link to irae's gist: https://gist.github.com/irae/1042167
((document, navigator, standalone) => {
'use strict';
if ((standalone in navigator) && navigator[standalone]) {
let currentNode, location = document.location, stop = /^(a|html)$/i;
let onClickHandler = (event) => {
currentNode = event.target;
while (!(stop).test(currentNode.nodeName)) {
<div class="tiger flex-vertically">
<div class="ears flex-horizontally">
<div class="ear left-ear flex-vertically">
<div class="inner-ear"></div>
</div>
<div class="ear right-ear flex-vertically">
<div class="inner-ear"></div>
</div>
</div>
<div class="face flex-vertically">
@gorlandor
gorlandor / favorite-animated-animal-dory.markdown
Created March 11, 2017 03:20
Favorite Animated Animal (Dory)
<div class="table flex-vertically">
<h1>CSS Ruler</h1>
<div class="ruler">
<div class="inches">1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19</div>
<div class="separator"></div>
<div class="centimeters">1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20</div>
</div>
</div>