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
//1) Notification center-specific implementation of UpdateObserving | |
class NotificationObserver: UpdateObserving { | |
var observer: NSObjectProtocol? | |
init(notificationObserver: NSObjectProtocol?) { | |
self.observer = notificationObserver | |
} | |
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
04132fa5fe0845de08d684d9494820bfb74f671b3a748425acf8b345239a681fe0807fba537585181c2d6049c58fcb8c3a5f58162db16dfde0c1f146649178ba7b |
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
{ | |
"short_name": "A short name", | |
"name": "A long name", | |
"prefer_related_applications": false, | |
"icons": [ | |
{ | |
"src": "icon-192.png", | |
"type": "image/png", | |
"sizes": "192x192" | |
}, |
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
<link rel="apple-touch-icon" sizes="512x512" href="icon-512.png"> |
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
<link rel="manifest" href="/manifest.json"> | |
<link rel="apple-touch-icon" sizes="512x512" href="icon-512.png"> | |
<script type="application/javascript"> | |
if ('serviceWorker' in navigator) { | |
navigator.serviceWorker.register('service-worker.js'); | |
} | |
let deferredPrompt; | |
window.addEventListener('beforeinstallprompt', (e) => { | |
// Prevent Chrome 67 and earlier from automatically showing the prompt |
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
#!/bin/sh | |
read -p "Press any key to continue... " -n1 -s | |
echo '\n' | |
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" | |
# fastlane wants bash profile already there, maybe others do? | |
touch ~/.bash_profile | |
# cli installs |
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
Edit each file in order in this gist to complete the section! |
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
// add Firebase as backend, loading and saving channels |
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
Follow the steps below to add login capabilities! |