Skip to content

Instantly share code, notes, and snippets.

const sum = (array) => array.reduce((prev, curr) => prev + curr);
const intersect = (setA, setB) => new Set(Array.from(setA).filter(i => setB.has(i)));
const charsToSet = (chars) => new Set(chars.split(''));
// Array.flat
const flatten = (array, ret) => {
ret = ret || [];
return array.reduce((ret, entry) => {
const ROCK = 0;
const PAPER = 1;
const SCISSORS = 2;
const LOOSE = 0;
const DRAW = 1;
const WIN = 2;
const sum = (array) => array.reduce((prev, curr) => prev + curr);
const ROCK = 'rock';
const PAPER = 'paper';
const SCISSORS = 'scissors';
const LOOSE = 'loose';
const DRAW = 'draw';
const WIN = 'win';
const sum = (array) => array.reduce((prev, curr) => prev + curr);
require('ringo/engine').loadJars(module.resolve("./jars/"));
const {CacheManagerBuilder, CacheConfigurationBuilder,
ResourcePoolsBuilder} = Packages.org.ehcache.config.builders;
const {CacheLoaderWriter} = Packages.org.ehcache.spi.loaderwriter;
const main = () => {
const loaderReader = new CacheLoaderWriter({
load(key) {
console.log('cache loader requested to read key', key);
return 'result from loader';
# convert video files in directory for chromecast classic
# if the existing video or audio format is not playable,
# the streams are converted to h.264 and aac
## make sure output is mp4 container or missing timestamps in avi (!) are a problem
SEARCHPATH="/home/simon/nas/movies/"
MOVIEREGEX=".*\.(mkv|avi|mp4)$"
BACKUP="/home/simon/backup-movies/"
<div class="story-story">
<p>
Bereits vor einem Monat, Anfang November, war Strache in Hamburg mit einer Beschwerde gegen die Entscheidung der dortigen Behörde, das von ihm angestrebte Verfahren in Zusammenhang mit dem „Ibiza-Video“ einzustellen, bei der Generalstaatsanwaltschaft abgeblitzt. Die Hamburger Staatsanwaltschaft hatte das Verfahren ohne Ermittlungen eingestellt.
</p>
<h2>Einzelbeiträge</h2>
<div class="audio-embed radiothek"

Mojo Interactive Graphics

Ziele

  • Erstellen interaktiver Visualisierung ohne Softwareentwickler
  • Einfache Einbindung in Mojo
  • Schnelles Updaten der Daten einer Visualisierung (inhaltiche Updates, Fehler ausbessern)
  • Im ORFON Design

Wie aus einen CSV ein Diagramm wird

import {ToggleButton} from 'bitmovin-player/bitmovinplayer-ui';
export default class SubtitleToggleButton extends ToggleButton {
constructor(config) {
super(config);
this.config = this.mergeConfig(config, {
cssClass: 'ui-subtitle-toggle-button',
text: 'UT',
hidden: true,
}, this.config);
05-26 10:30:57.513 5399-5696/at.orf.news I/OMXClient: Using client-side OMX mux.
05-26 10:30:57.553 5399-5399/at.orf.news W/VideoCapabilities: Unrecognized profile/level 0/0 for video/mpeg2
05-26 10:30:57.553 5399-5399/at.orf.news W/VideoCapabilities: Unrecognized profile/level 0/2 for video/mpeg2
05-26 10:30:57.553 5399-5399/at.orf.news W/VideoCapabilities: Unrecognized profile/level 0/3 for video/mpeg2
05-26 10:30:57.558 5399-5399/at.orf.news I/VideoCapabilities: Unsupported profile 4 for video/mp4v-es
05-26 10:30:57.566 5399-5697/at.orf.news I/SoftAAC2: limiting to stereo output
05-26 10:30:57.570 5399-5697/at.orf.news I/SoftAAC2: Reconfiguring decoder: 0->48000 Hz, 0->2 channels
05-26 10:30:57.574 5399-5701/at.orf.news I/OMXClient: Using client-side OMX mux.
05-26 10:30:57.578 5399-5701/at.orf.news D/SoftAVCDec: Number of CPU cores: 2
05-26 10:30:57.585 5399-5700/at.orf.news I/MediaCodec: [OMX.google.h264.decoder] setting surface generation to 5528577
{
"inactive_endpoints": 0,
"inactive_conferences": 0,
"total_ice_succeeded_relayed": 0,
"total_loss_degraded_participant_seconds": 0,
"bit_rate_download": 1892,
"muc_clients_connected": 1,
"total_participants": 3,
"total_packets_received": 0,
"rtt_aggregate": 15.666666666666666,