Skip to content

Instantly share code, notes, and snippets.

View charlietran's full-sized avatar
💭
hoolie doolie

Charlie Tran charlietran

💭
hoolie doolie
View GitHub Profile
@jpgls
jpgls / HLS-alt-audio-iOS8.md
Last active August 29, 2015 14:06
HLS Alternate Audio Tracks - iOS7 vs. iOS8

Changes to HLS Alternate Audio Tracks

iOS7 vs. iOS8

Since iOS 8 went live on Friday and I updated a few of my devices over the weekend, I decided to do some quick testing of web video playback. Wanted to see if there were any little, undocumented changes that would affect REPlayer, or our general approach to HTML video - like the changes to exiting fullscreen video that came in the update from iOS6->iOS71.

Overall, things seem pretty much the same between iOS7->iOS8, and in a quick runthrough, REPlayer looks to be working just fine.

One interesting change to note though, is that the native interface (iOS default controls used when video is fullscreen) for selecting Sub-Title/CC tracks - or Alternate Audio tracks when they're available - no longer seems to recognize/display the audio tracks in iOS8.

Sub-Title selection still works just fine, but the Audio Section (and Audio Tracks) do not display in iOS8. Confirmed that the testing m3u8 still contains Alternate Audio tracks in the m

@nicholasjhenry
nicholasjhenry / AssetFile
Created January 4, 2012 00:42
AssetFile for Rake Pipeline for use with ember.js/handlebars
require "json"
require "rake-pipeline-web-filters"
input "assets"
output "public"
class HandlebarsFilter < Rake::Pipeline::Filter
def initialize(&block)
block ||= proc { |input| input.sub(/\.handlebars$/, '.js') }
super(&block)
@jamiew
jamiew / .bashrc
Created August 5, 2013 19:03
Uninstalling rvm in favor of rbenv + some rvm-flavored plugins
# 1. Edit ~/.bashrc and remove any rvm-loading code.
# 2. Then Add:
# Load rbenv
if which rbenv > /dev/null; then eval "$(rbenv init -)"; fi
export RBENV_ROOT=~/.rbenv
# Then:
# 3. Uninstall rvm
# 4. Restart shell/terminal
@garmjs
garmjs / Default (OSX).sublime-keymap
Last active February 23, 2016 15:07
My keymap for easy navigation on Sublime Text 3 Remap keymap # jj to switch on vim mode # Hidde sidebar = ctrl + b # Switch layouts exp: vertical split = vS , Switch in one layout = ctrl + 0 When you are on split layouts you can move file with key # Move Right = mR , Move Left = mL # Resize window right = rR ,Resize window left = rL # If you nee…
[
// Hidde Sidebar
{ "keys": ["ctrl+b"], "command": "toggle_side_bar" },
// Switch with one layout
{
"keys": ["ctrl+0"],
"command": "set_layout",
"args":
{
@colbyr
colbyr / gist:2155434
Created March 22, 2012 03:34
Install Tomcat 6 with Homebrew
cd /usr/local/Library/Formula
git checkout 9e18876 tomcat.rb
brew install tomcat
@andyedinborough
andyedinborough / jquery.oauth.js
Created June 7, 2011 19:30
Introduces $.oauth() to make using OAuth from jQuery as easy as using $.ajax()
(function (window, document, $, undefined) {
if (!$.Deferred) throw 'jQuery 1.5 is required to use the jQuery.oauth script!';
function require(name, url) {
if (window[name] === undefined)
return $.ajax({ type: 'GET', cache: true, dataType: 'script', url: url });
}
$.oauth = function (options) {
var d = $.Deferred();
@mtowers
mtowers / README.md
Last active February 26, 2020 16:34
A Dashing dashboard widget for displaying a graph of metrics data from Librato

Description

A Dashing widget for displaying a graph of metrics data from Librato

Dependencies

httparty

Add it to dashing's gemfile:

@deepak
deepak / Dockerfile
Last active March 6, 2020 06:01
Dockerfile for installing ruby using rbenv
# DOCKER-VERSION 0.4.8
# am facing issue
# https://github.com/dotcloud/docker/issues/1123
FROM ubuntu:12.04
MAINTAINER Deepak Kannan "deepak@codemancers.com"
RUN apt-get -y install python-software-properties
@yieldthought
yieldthought / gist:1334618
Created November 2, 2011 19:25
screen status line
hardstatus alwayslastline
hardstatus string '%{gk}[ %{G}%H %{g}][%= %{wk}%?%-Lw%?%{=b kR} (%{W}%n*%f %t%?(%u)%?%{=b kR})%{= kw}%?%+Lw%?%?%= %{g}][%{Y}%l%{g}] %{=b C}[ %m/%d %c ]%{W}'
@FlaShG
FlaShG / MyStaticCode.cs
Last active January 25, 2022 15:29
Execute any code based on Unity events without having to drag a component into a scene.
using UnityEngine;
/// <summary>
/// This template allows to define code that runs independently of any GameObjects or Components created in the editor, even though using Unity events.
/// It can be used for any Scene-independent code, including coroutines, without having to manually add a component to a scene.
/// </summary>
public static class MyStaticCode
{
[RuntimeInitializeOnLoadMethod]
private static void Initialize()