Skip to content

Instantly share code, notes, and snippets.

@trahloff
trahloff / working.js
Last active April 20, 2016 14:34
temp
// client
function tts(text) {
var url = 'http://localhost:8080/nlc/synthesize';
var req = {
method: 'POST',
url: url,
responseType: 'blob',
data: {
@trahloff
trahloff / jquery_vs_vanilla.js
Last active April 21, 2016 13:45
PA0 code snippets
// AngularJS:
$http.post('http://example.com', { username: "username" }, function (data) {
console.log(data);
})
// Vanilla:
var httpRequest = new XMLHttpRequest()
httpRequest.onreadystatechange = function (data) {
console.log(data);
}
<md-content layout="column">
<md-content layout="row">
<md-card flex>
<md-content>
<md-card-title>
<md-card-title-text>
<span class="md-headline">hi</span>
<span class="md-subhead">hi</span>
</md-card-title-text>

Klausur 1

1 Peter Fröhlich

  • [placeholder]

2 Arten von Recht

2.1 Definieren Sie Recht

@trahloff
trahloff / asdasd
Last active January 12, 2017 17:24
// app.js
const express = require('express');
const app = express();
let tmp = new (require('./default'))("hi");
app.use('/', tmp.getRouter());
const http = require('http');
var server = http.createServer(app).listen(7777);
  • Introduction
    • Scope
    • Problems
    • Goals
  • Background
    • Microservices
      • Containerization
      • Docker
    • Messaging
  • synchronous messaging
version: '2'
networks:
default:
external:
name: kafka
services:
'use strict'
const kafka = require('kafka-node')
const client = new kafka.Client('kafka_broker:2181')
const HighLevelProducer = kafka.HighLevelProducer
const producer = new HighLevelProducer(client)
let prodRdy = false
producer.on('ready', () => {
producer.createTopics(['test'], false, function (err, data) {
if (!err) {