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($) { | |
'use strict'; | |
/** | |
* Multiple parallel getScript | |
* | |
* @access public | |
* @param Array|String url (one or more URLs) | |
* @param callback fn (oncomplete, optional) | |
* @returns void |
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(document) { | |
'use strict'; | |
/** | |
* Ready flag | |
* | |
* @access private | |
* @var boolean ready | |
*/ | |
var ready = false, |
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
<script async src="//da189i1jfloii.cloudfront.net/js/kinvey-js-0.9.1.min.js"></script> |
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 Kinvey = require('./path/to/kinvey-nodejs-0.9.1.js'); |
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
Kinvey.init({ | |
appKey: '<your-app-key>', | |
appSecret: '<your-app-secret>' | |
}); |
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 query1 = new Kinvey.Query(); | |
query1.on('_geoloc').nearSphere([-97, 30], 100);// max 100 miles from Austin? | |
var query2 = new Kinvey.Query(); | |
query2.on('_geoloc').nearSphere([-71, 42], 100);// max 100 miles from Boston? | |
var query3 = new Kinvey.Query(); | |
query3.on('population').greaterThan(500000);// large city? | |
// Join all queries, result is saved in query1. |
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"> | |
<head> | |
<meta charset="utf-8" /> | |
<title>Hello World</title> | |
</head> | |
<body> | |
<h1>Hello World</h1> | |
<script async src="//da189i1jfloii.cloudfront.net/js/kinvey-js-0.9.1.min.js"></script> | |
<script> |
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
<script async src="//da189i1jfloii.cloudfront.net/js/kinvey-js-0.9.3.min.js"></script> |
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
// Step 1: install module. | |
npm install kinvey | |
// Step 2: import the library. | |
var Kinvey = require('kinvey'); |
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
Kinvey.init({ | |
appKey: '<your-app-key>', | |
appSecret: '<your-app-secret>', | |
masterSecret: '<your-master-secret>' | |
}); |
OlderNewer