#Moving Cat Boxes https://output.jsbin.com/xacinu/
#Annoying Art Gallery https://output.jsbin.com/rimeret/
#Flying Egg Balloon https://output.jsbin.com/fopezo
#Zombie Rabbit Balls
import hash from 'string-hash'; | |
function stringHash(s) { | |
if (s.length === 1) { | |
return s.charCodeAt(0); | |
} | |
return hash(s); | |
} |
'use strict'; // until node.js supports modules | |
console.time('require dependencies'); | |
const functions = require('firebase-functions'); | |
console.timeEnd('require dependencies'); | |
function checkDelay(event) { | |
const time = Date.now(); | |
const eventTime = Date.parse(event.timestamp); | |
const snapshot = event.data; |
#Moving Cat Boxes https://output.jsbin.com/xacinu/
#Annoying Art Gallery https://output.jsbin.com/rimeret/
#Flying Egg Balloon https://output.jsbin.com/fopezo
#Zombie Rabbit Balls
Starting watch on killswitch /var/folders/3y/vhmdsjk90w17389dp4_zznbw0000gn/T/Home/KillSwitches/cli | |
spawn: adb version | |
Looking for project in '/Users/Home/code/tns/the-and' | |
Project directory is '/Users/Home/code/tns/the-and'. | |
Project successfully prepared | |
Project successfully prepared | |
spawn: ant debug -f /Users/Home/code/tns/the-and/platforms/android/build.xml | |
Buildfile: /Users/Home/code/tns/the-and/platforms/android/build.xml | |
-set-mode-check: |
Starting watch on killswitch /var/folders/3y/vhmdsjk90w17389dp4_zznbw0000gn/T/Home/KillSwitches/cli | |
Looking for project in '/Users/Home/code/tns-hello-world' | |
Project directory is '/Users/Home/code/tns-hello-world'. | |
spawn: adb version | |
Project successfully prepared | |
spawn: emulator -help | |
Project successfully prepared | |
spawn: ant debug -f /Users/Home/code/tns-hello-world/platforms/android/build.xml | |
Buildfile: /Users/Home/code/tns-hello-world/platforms/android/build.xml |
if (screen.lockOrientation) { | |
screen.lockOrientation('portrait-primary'); | |
} else if (screen.mozLockOrientation) { | |
screen.mozLockOrientation('portrait-primary'); | |
} else if (screen.orientation && screen.orientation.lock) { | |
screen.orientation.lock('portrait-primary'); | |
} |