Skip to content

Instantly share code, notes, and snippets.

@cemrich
cemrich / channels.md
Last active October 3, 2018 19:40
Funk API - api.funk.net
curl "https://www.funk.net/api/v3.1/content/channels/" -H "Accept: */*" -H "authorization: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJjbGllbnROYW1lIjoid2ViYXBwLXYzMSIsInNjb3BlIjoic3RhdGljLWNvbnRlbnQtYXBpLGN1cmF0aW9uLWFwaSxuZXh4LWNvbnRlbnQtYXBpLXYzMSx3ZWJhcHAtYXBpIn0.mbuG9wS9Yf5q6PqgR4fiaRFIagiHk9JhwoKES7ksVX4"
{
  "_embedded" : {
    "channelModels" : [ {
      "title" : "Alles Liebe Annette",
      "shortTitle" : "Alles Liebe Annette",
      "description" : "Es geht um die 18-jährige Annette, gespielt von Barbara Prakopenka (Tatort). Sie hat den großen Traum Autorin für Gedichte, Poetry und Geschichten zu werden und sich deshalb für „Kreatives Schreiben“ beworben. Allerdings wurde sie von der Uni ihrer Wahl abgelehnt – Autsch! Der Ablehnungsgrund? Ihre Bewerbung sagt zu wenig über ihre Persönlichkeit aus. Aus Trotz beschließt sie einen VLog zu starten, indem sie auf humorvolle und (selbst)ironische Art über ihr Leben berichtet. Da war aber bisher noch ziemliche Flaute. Das ändert sich aber sofort, 
@cemrich
cemrich / MainActivity.java
Created October 14, 2016 19:11
Android app that shows a loop of an equirectangular video with [google cardboard sdk](https://developers.google.com/cardboard/android/) and [Rajawali 3d library](https://github.com/Rajawali/Rajawali).
package com.example.demo.cardboard360video;
import android.media.MediaPlayer;
import android.os.Bundle;
import com.google.vrtoolkit.cardboard.CardboardActivity;
import com.google.vrtoolkit.cardboard.CardboardView;
public class MainActivity extends CardboardActivity {
@cemrich
cemrich / gist:5756655
Last active December 18, 2015 08:49
Simple example of how to get audio data from live microphone input via getUserMedia.
window.onload = function() {
var context = new webkitAudioContext();
var analyser = context.createAnalyser();
var buffer = new Float32Array(analyser.frequencyBinCount);
function analyze() {
requestAnimationFrame(analyze);
analyser.getFloatFrequencyData(buffer);
// buffer is now filled with data
// if there are -100 values only set your systems microphone & speakers sample rates to the same values