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
$(document).ready( | |
function (){ | |
var webrtc = new SimpleWebRTC({ | |
// the id/element dom element that will hold "our" video | |
localVideoEl: 'localVideo', | |
// the id/element dom element that will hold remote videos | |
remoteVideosEl: 'remoteVideos', |
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" ng-app > | |
<head> | |
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.2.14/angular.min.js"></script> | |
</head> | |
<body ng-controller="MainController"> | |
<label>Bitte gib Deinen Namen ein:</label> | |
<input type="text" ng-model="name"> | |
<hr> | |
<strong>Hallo {{name}}!</strong> |
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
Die Rest Api sollte 'todo' Objekte ausliefern, erzeugen und ändern. Ein 'todo' Objekt hat folgende Struktur.```` | |
```javascript | |
{ | |
'id': int | long | text | |
'name': text, | |
'done': false | true, | |
'created' long | |
} | |
``` |
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
Die Rest Api sollte 'todo' Objekte ausliefern, erzeugen und ändern. Ein 'todo' Objekt hat folgende Struktur.```` | |
{ | |
'id': int | long | text | |
'name': text, | |
'done': false | true, | |
'created' long | |
} | |
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
RestangularProvider.setBaseUrl("/web"); | |
RestangularProvider.setListTypeIsArray(false); | |
RestangularProvider.setResponseExtractor(function(response, operation, what, url) { | |
var rootScope = angular.element(document).injector().get('$rootScope'); | |
rootScope.$emit('UNLOAD'); | |
if (operation === "getList") { | |
console.log('RestAngular: getList'); |
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
type Exception report | |
message Servlet.init() for servlet estructor threw exception | |
description The server encountered an internal error that prevented it from fulfilling this request. | |
exception | |
javax.servlet.ServletException: Servlet.init() for servlet estructor threw exception | |
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:501) |
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 (c) 2015 Alexander Buder . All Rights Reserved. | |
* | |
* Use of this source code is governed by a BSD-style license | |
* that can be found in the LICENSE file in the root of the source | |
* tree. | |
*/ | |
var wamp_session = null; | |
var peer_connection= null; |
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
class AdvertisementType(models.Model): | |
name = models.CharField(max_length=255, blank=False, null=False, verbose_name='Name') # name of feature | |
created = models.DateField(auto_now=True) # created date | |
def __unicode__(self): | |
return u'{0} - {1}'.format(self.id, self.name) | |
class Accommodation(models.Model): | |
name = models.CharField(max_length=255, blank=False, null=False, verbose_name='Name') # name of the accommodation | |
description = models.TextField(blank=True, null=True, verbose_name='Allgemeine Beschreibung') # classification of object like '3 Stars' |
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
// Cloud Function to delete one ore more User object | |
// | |
// { | |
// "objectIds": ["mmspeGP9Ke"] | |
// } | |
// | |
// | |
Parse.Cloud.define('deleteUser', function(request, response) { | |
request.log.info('CloudFunction deleteUser : called params - ' + JSON.stringify(request.params)); | |
request.log.info('CloudFunction deleteUser : called user - ' + JSON.stringify(request.user)); |
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
class Plan { | |
final String objectId; | |
final String name; | |
final String text; | |
final DateTime startedAt; | |
final DateTime endedAt; | |
final String createdAt; | |
Plan( | |
{this.objectId, |
OlderNewer