Skip to content

Instantly share code, notes, and snippets.

View aBuder's full-sized avatar
🏠
Working from home

Alexander Buder aBuder

🏠
Working from home
  • Freelancer
  • Neuruppin
View GitHub Profile
@aBuder
aBuder / Rest API Schem
Last active August 29, 2015 14:06
Beschreibung der Rest API für gemeinsames SPA Projekt
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
}
```
@aBuder
aBuder / jsbin.mahuja.html
Created May 13, 2014 13:56
AngularJs Promise
<!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>
@aBuder
aBuder / app.js
Created April 2, 2014 12:43
SimplewebRTC has no method 'sendDirectlyToAll'
$(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',