Skip to content

Instantly share code, notes, and snippets.

View triwav's full-sized avatar

Brian Leighty triwav

View GitHub Profile
@triwav
triwav / BenchmarkSuite.brs
Last active June 7, 2019 23:03
Roku Performance Comparisons
function BenchmarkSuite() as Object
this = {
runs: 3
}
this.benchmark = sub(description as String, versions as Object, context as Object, iterations = 10000 as Integer, runs = 3 as Integer)
print
print "----- " description "(" iterations " iterations) -------------------------------------------"
t = CreateObject("roTimespan")
for r = 1 to runs
@triwav
triwav / roku-proxy-setup.md
Created April 30, 2019 14:33
Roku Proxy Setup

This is largely based off of this article by Hulu and their roku-dev-cli tool.

Requirements:
The main requirement is a Mac with 2 available network interfaces WIFI <-> WIFI, LAN <-> WIFI, etc. This should work on other platforms as well but isn't covered here.

Setup
The first thing we need is Homebrew. If you've never used it before it's a great package manager for macOS that makes installing programs easier. Open Terminal and paste
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
and hit enter

@triwav
triwav / roku-devices.md
Created July 25, 2017 16:11
Roku Device List

Roku Devices

Overview

Roku provides the leading operating system for TV. We design the firmware and cloud services to run optimally across a wide range of devices. When developing on Roku OS, it's important for your channel(s) to perform across our wide range of products.

Sections:

import java.io.ByteArrayOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.net.URL;
import java.net.URLConnection;
import java.nio.ByteBuffer;
import android.os.AsyncTask;
import android.util.Log;