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
// Available variables: | |
// - Machine | |
// - interpret | |
// - assign | |
// - send | |
// - sendParent | |
// - spawn | |
// - raise | |
// - actions |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta name="description" content="Geoquerying on Firestore"> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width"> | |
<script defer async src="https://maps.googleapis.com/maps/api/js?key=AIzaSyDefA6KLchy-KFDVkbFDFCzTvWW3ywcCyE"></script> | |
<script src="https://www.gstatic.com/firebasejs/4.7.0/firebase.js"></script> | |
<script src="https://www.gstatic.com/firebasejs/4.7.0/firebase-firestore.js"></script> | |
<title>Geoquerying on Firestore</title> |
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
import 'zone.js/dist/zone-node'; | |
import 'reflect-metadata'; | |
import { enableProdMode } from '@angular/core'; | |
import { ngExpressEngine } from '@nguniversal/express-engine'; | |
import * as express from 'express'; | |
import { join } from 'path'; | |
import { readFileSync } from 'fs'; | |
const domino = require('domino'); | |
// Faster server renders w/ Prod mode (dev mode never needed) | |
enableProdMode(); |
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
/** | |
* Copyright 2004-present Facebook. All Rights Reserved. | |
* | |
* @providesModule KeyboardAvoidingScrollView | |
* @flow | |
* @format | |
*/ | |
'use strict'; |
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
<!DOCTYPE html> | |
<html lang="en" dir="ltr"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>Ionic App</title> | |
<meta name="viewport" | |
content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no"> | |
<meta name="format-detection" content="telephone=no"> | |
<meta name="msapplication-tap-highlight" content="no"> |
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
var React = require('react-native'); | |
var { | |
Text, | |
View, | |
StyleSheet | |
} = React; | |
var styles = StyleSheet.create({ | |
photo: { |
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
var dataStructure = ["FEEDBACK_GENERATOR_TYPE_SELECTION", "FEEDBACK_GENERATOR_TYPE_IMPACT", "FEEDBACK_GENERATOR_TYPE_NOTIFICATION"]; | |
var win = Ti.UI.createWindow({ | |
backgroundColor: "#fff", | |
title: "iOS 10 Haptic Engine", | |
translucent: false | |
}); | |
var nav = Ti.UI.iOS.createNavigationWindow({ | |
window: win | |
}); |
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
var win = Ti.UI.createWindow(); | |
var view = Ti.UI.createView( { | |
width: ( Ti.Platform.displayCaps.platformWidth - 20 ), | |
top: 200, | |
layout: 'vertical' | |
} ); | |
var button = Ti.UI.createButton( { | |
backgroundColor: 'gray', | |
title: 'Pass focus', |
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
exports.image = function(url, callback, directory) { | |
if (directory === undefined) { | |
var directory = 'cachedImages'; | |
} | |
var filename = Ti.Utils.md5HexDigest(url); | |
var file = Ti.Filesystem.getFile(Ti.Filesystem.applicationDataDirectory, directory, filename); | |
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
function init() { | |
Titanium.App.addEventListener('keyboardframechanged', $.typingArea.animateKeyboard); | |
} | |
function scrollToBottom() { | |
$.listView.scrollToItem(0, $.section.items.length - 1, { | |
animated : true | |
}); | |
} |
NewerOlder