Skip to content

Instantly share code, notes, and snippets.

View brol1dev's full-sized avatar
🇲🇽

Eric Vargas brol1dev

🇲🇽
View GitHub Profile
@brol1dev
brol1dev / index.android.js
Created January 8, 2016 00:32
React Android Switch
/**
* Sample React Native App
* https://github.com/facebook/react-native
*/
'use strict';
var React = require('react-native');
var {
AppRegistry,
StyleSheet,
@interface DefaultSkinPlayerViewController ()
@property (nonatomic, retain) OOSkinViewController *skinController;
@property (nonatomic, strong) OOOoyalaPlayer *ooyalaPlayer;
@property NSString *embedCode;
@property NSString *nib;
@property NSString *pcode;
@property NSString *playerDomain;
@end
@brol1dev
brol1dev / SampleActivity.java
Created May 9, 2017 19:07
Ooyala Android Player - Custom PlayerInfo
package com.ooyala.sample.players;
import android.app.Activity;
import android.os.Bundle;
import android.util.Log;
import android.view.KeyEvent;
import com.facebook.react.modules.core.DefaultHardwareBackBtnHandler;
import com.ooyala.android.DefaultPlayerInfo;
import com.ooyala.android.Environment;
0xaa0BB971f3C41565465F52EEB78E95C0f10f192C
@brol1dev
brol1dev / AdditionalSASQueryParamsVC.m
Last active September 13, 2018 19:04
[iOS] Shows how to add custom query parameters to the SAS authorization request with the OoyalaPlayer
#import <OoyalaSDK/OoyalaSDK.h>
@interface MyPlayerInfo : OODefaultPlayerInfo
@property (nonatomic) NSDictionary *additionalParams;
@end
@implementation MyPlayerInfo
@brol1dev
brol1dev / AdditionalSASQueryParamsActivity.java
Last active September 18, 2018 18:42
[Android] Shows how to add custom query parameters to the SAS authorization request with the OoyalaPlayer
package com.ooyala.sample.players;
import android.util.Base64;
import com.ooyala.android.DefaultPlayerInfo;
import com.ooyala.android.OoyalaPlayer;
import com.ooyala.android.OoyalaPlayerLayout;
import com.ooyala.android.PlayerDomain;
import com.ooyala.android.configuration.Options;
import com.ooyala.android.item.Stream;

Keybase proof

I hereby claim:

  • I am rcvrgs on github.
  • I am ericvargas (https://keybase.io/ericvargas) on keybase.
  • I have a public key ASBKGRCm28FUc8i-5aiW9wXhg8xM1S3A741dSEbWw3-qSQo

To claim this, I am signing this object:

@brol1dev
brol1dev / script.js
Created August 1, 2023 22:14
Ramp url flag decode script
function getValue(ul) {
const li = ul.querySelector('li');
if (!li) {
return null;
}
const div = li.querySelector('div');
if (!div) {
return null;
}
const span = div.querySelector('span');