Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am marius-serban on github.
  • I am smarius ( on keybase.
  • I have a public key ASDW3UP9Cx0obYAh7Zf7BggOVFOkvk2gdUBXvrURpPgB7go

To claim this, I am signing this object:

marius-serban / Dockerfile
Created December 20, 2015 20:28
Swift on Docker
FROM ubuntu:15.10
# Latest Swift Version
# Install Dependencies
RUN apt-get update && \
apt-get install -y \
clang \
marius-serban / _playbackQuality.markdown
Last active December 17, 2015 15:07
Measuring playback quality

The purpose of this document is to present several ways in which the quality of music streaming can be measured in a quantitative way.

The benefit in continuously tracking these metrics is that we can measure the impact of improvements and and detect when we've done something wrong and broken the user's listening experience.

Basic benchmarks

Playback latency

Measuring the time it takes from the moment the user requests playback until the audio starts. This is equal to the sum of the connection time and the initial buffer load time. See an example graph(1): music latency graph

Stutters per track

marius-serban / SwiftValuesArchiving.playground
Created June 17, 2015 22:12
Archiving of value types in Swift
import Foundation
struct Car {
var number: Int
protocol Archivable {
func archive() -> NSData
static func unarchive(data: NSData) -> Self?
marius-serban / gist:11719bf42deec77660a7
Created September 30, 2014 10:28
OSM Overpass query for ways that contain a specific node
<osm-script output="json">
<id-query ref="59004947" type="node"/>
<recurse type="node-way"/>
<item />
<recurse type="way-node"/>
marius-serban / gist:db3191ca548c579b0603
Last active August 29, 2015 14:07
OSM Overpass query for traffic lights in Cluj Napoca
<osm-script output="json">
<query type="node">
<has-kv k="highway" v="traffic_signals"/>
<bbox-query e="23.73" n="46.83" s="46.72" w="23.46"/>