Skip to content

Instantly share code, notes, and snippets.

marius-serban / gist:db3191ca548c579b0603
Last active Aug 29, 2015
OSM Overpass query for traffic lights in Cluj Napoca
View gist:db3191ca548c579b0603
<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"/>
marius-serban / gist:11719bf42deec77660a7
Created Sep 30, 2014
OSM Overpass query for ways that contain a specific node
View gist:11719bf42deec77660a7
<osm-script output="json">
<id-query ref="59004947" type="node"/>
<recurse type="node-way"/>
<item />
<recurse type="way-node"/>
marius-serban / SwiftValuesArchiving.playground
Created Jun 17, 2015
Archiving of value types in Swift
View SwiftValuesArchiving.playground
import Foundation
struct Car {
var number: Int
protocol Archivable {
func archive() -> NSData
static func unarchive(data: NSData) -> Self?
marius-serban / _playbackQuality.markdown
Last active Dec 17, 2015
Measuring playback quality
View _playbackQuality.markdown

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

View Dockerfile
FROM ubuntu:15.10
# Latest Swift Version
# Install Dependencies
RUN apt-get update && \
apt-get install -y \
clang \

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: