Skip to content

Instantly share code, notes, and snippets.

View michaellujan's full-sized avatar

Michael Lujan michaellujan

View GitHub Profile
$scope.test = [];
var q = new Query('/streammanager/stations/**');
q.all().then(function(resp){
$scope.test = resp;
});
console.log($scope.test);
function defineStream($scope, result) {
$scope.streams = result;
_.each($scope.streams, function(resource, idx){
$scope.streams[idx].object.then(function(data){
data['provider_name'] = 'Clear Channel';
data['primary_market_name'] = 'New York';
data['primary_genre_name'] = 'Top 40';
$scope.streams[idx].info = data;
})
@michaellujan
michaellujan / gist:7812818
Created December 5, 2013 19:58
just for fun
protected function _radio_edit_cron() {
$this->_displayTemplate = false;
$cacheTtl = Ccomr_Util_Misc_CacheTtl::generate('TTL_NOCACHE');
$this->_cacheTtl = $cacheTtl;
header("Cache-Control: max-age={$this->_cacheTtl}, must-revalidate");
$reApi = new Ccomr_Api_RadioEdit();
$streamApi = new Ccomr_Api_Stream();
$old_version = $reApi->get_radio_edit_cron();
if (!$old_version) {
var Games = require('../models/game');
var controller = function() {};
controller.prototype = {
delete: function (id, callback) {
Games.findById(id).exec(function (err, game) {
if (err) return callback({status: 500, body: err});
game.remove();
return callback({status: 204, body: ''});
});
Core Tenants
- Component Framework (PlayAction)
- accepts cross-platform components (plugins) as children
- facilitates communication between those components
- Developed for open source
- NFL Configuration/Theming/Data layer
Talking Points
{
"plan": "mike_free",
"appKey": "aZw2eZrZc5MGJWejEzjV5g",
"iat": 1595750113,
"exp": 1606780800,
"iss": "PLAYTOKEN",
"sub": "9c2579401117e7208ba900cbd1f9244a",
"access": {
"deviceId": "c9139919-1811-4306-bf95",
"clientId": "e2f1d46c-140a-4f7f-89c4-f62054426b24",