This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Show hidden characters
{ | |
"presets": ["es2015"], | |
"plugins": ["transform-async-to-generator"] | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"streams": [ | |
"eiplus": { | |
"input-path": "/live-stream-secure/5801255b39c38e1109ddfabd/publish/media_2500.m3u8?dnt=true&access_token=8UchcOwh4X0fsaceGvovudlTmr1XfIx8Y6o7V2W8Uu20cBpqnysoOa35lIrL48CXD5NjnspExCB&ref=https%3A%2F%2Fwww.eiplus.com.br%2Fcanal%2F45%2Fconexao-ei-ao-vivo%2F&es=vrzn-ei-ee.cdn.mdstrm.com&proto=https", | |
"servers": ["https://vrzn-ei-ee.cdn.mdstrm.com"], | |
} | |
] | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
protected function decode(str:String):ByteArray | |
{ | |
var alphabet:String = 'abcdefghijklmnopqrstuvwxyz'; // only first 16 chars used | |
var lookup:Object = new Object; | |
var len:Number = str.length; | |
var enc:Array = [0,0]; | |
var result:ByteArray = new ByteArray; | |
if(str.length % 2) | |
throw new Error("Decode failed: The string is not correctly encoded."); | |
var position:Number = -1; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"streams": { | |
"Nasa-high": { | |
"input-path": "/stream/stream716/playlist.m3u8", | |
"servers": ["http://segmenter.live.hls.qa01.globoi.com/"], | |
"bandwidth": 1080434 | |
} | |
}, | |
"actions": [ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"streams": { | |
"Nasa-low": { | |
"input-path": "/msfc/Edge.m3u8", | |
"output-path": "/nasa/Edge.m3u8", | |
"servers": ["http://liveips.nasa.gov.edgesuite.net"], | |
"bandwidth": 254082 | |
}, | |
"Nasa-medium": { | |
"input-path": "/msfc/3G.m3u8", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class O(): | |
def __repr__(self): | |
return "<" + ' *o* '.join(map(repr, self.funs)) + ">" if self.funs else "<composer>" | |
def __init__(self, funs=None): | |
self.funs = funs if funs else [] | |
def __rmul__(self, other): | |
other_funs = other.funs if isinstance(other, O) else [other] | |
return O(other_funs + self.funs) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// just a small mod in @jbochi's solution | |
#include <stdio.h>; | |
int fib(int n) { | |
if (n < 2) { | |
return n; | |
} else { | |
return fib(n - 1) + fib(n - 2); | |
} |