This file contains hidden or 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
_ _ _ ____ _ _ | |
| \ | | ___ | |_ / ___| _ _ _ __ _ __ ___ _ __| |_ ___ __| | | |
| \| |/ _ \| __| \___ \| | | | '_ \| '_ \ / _ \| '__| __/ _ \/ _` | | |
| |\ | (_) | |_ ___) | |_| | |_) | |_) | (_) | | | || __/ (_| | | |
|_| \_|\___/ \__| |____/ \__,_| .__/| .__/ \___/|_| \__\___|\__,_| | |
|_| |_| | |
This file contains hidden or 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 charset="utf-8"> | |
<meta name="viewport" content="width=device-width"> | |
<script src="./everlive.all.min.js"></script> | |
<title>Everlive Responsive Images</title> |
This file contains hidden or 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 charset="utf-8"> | |
<meta name="viewport" content="width=device-width"> | |
<script src="./sashido-responsive.js"></script> | |
<title>SashiDo Responsive Images</title> |
This file contains hidden or 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 express = require('express'); | |
var cowsay = require('cowsay'); | |
//initialize express.js instance | |
var app = express(); | |
//this creates a GET endpoint for your application |
This file contains hidden or 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 privateData = Parse.Object.extend('PrivateUserData'); | |
privateData.setACL(new Parse.ACL(Parse.User.current())); | |
This file contains hidden or 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 query = new Parse.Query('Game'); | |
var subscription = query.subscribe(); | |
//more events are - open, update, enter, leave, delete, close | |
subscription.on('create', (object) => { | |
console.log('object created'); | |
}); |
This file contains hidden or 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
//for class/collection "Comment" | |
Parse.Cloud.beforeSave('Comment', (request, response) => { | |
//do some validation | |
response.success(); | |
}); | |
This file contains hidden or 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
//cloud function named "findMovie" | |
Parse.Cloud.define('findMovie', (request, response) => { | |
const query = new Parse.Query('Movies'); | |
query.equalTo('title', request.params.title); | |
query.first() | |
.then(movie => response.success(movie)) | |
.catch(err => response.error(err)); |
This file contains hidden or 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
Parse.Push.send({ | |
channels: [ 'Tokyo' ], | |
data: { | |
alert: 'The Giants won against the Mets 2-3.' | |
} | |
}).then(...); | |