Skip to content

Instantly share code, notes, and snippets.

View xdumaine's full-sized avatar
🦄

Xander Dumaine xdumaine

🦄
View GitHub Profile
@murillo128
murillo128 / plan-b-ificator.md
Last active March 10, 2017 03:29
I have a plan..

Ok, the idea is to create an utilitiy to allow doing plan B SDP O/A on unified plan peerconnections.

The idea is similar to https://github.com/jitsi/sdp-interop and we will borrow several ideas from them.

We assume that bundling and rtcp-mux is used always.

#CASE A: unified calls plan B

Unified Offer

In this case browser creates an SDP with one m-line per track. We are going to take that SDP, and create one unified local offer to be used in the PC setLocalDescription and one plan-B offer to send to the remote peer.

@xdumaine
xdumaine / webrtc.svg
Last active July 3, 2017 08:59
An svg of the webrtc logo, suitable for use as icon. Created "by eye" by Xander Dumaine
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@alokc83
alokc83 / format specifiers in pebble programming
Created June 16, 2013 17:49
format specifier in strftime, or time format in time function in pebble programming
Parameters
format
The following characters are recognized in the format parameter string
format Description Example returned values
Day --- ---
%a An abbreviated textual representation of the day Sun through Sat
%A A full textual representation of the day Sunday through Saturday
%d Two-digit day of the month (with leading zeros) 01 to 31
%e Day of the month, with a space preceding single digits. Not implemented as described on Windows. See below for more information. 1 to 31
@natw
natw / fizzbuzz.py
Created November 15, 2012 16:22
best fizzbuzz
import random
for i in range(0, 100):
if not i % 15:
random.seed(1178741599)
print [i+1, "Fizz", "Buzz", "FizzBuzz"][random.randint(0,3)]