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
$newShow = array( | |
'LocalID' => 'Sweet Local ID', | |
'LocationID' => 1, | |
'ProjectID' => 0, | |
'CGExempt' => 0, | |
'ProducerID' => 0, | |
'CategoryID' => 0, | |
'OnDemand' => 0, | |
'Comments' => '', | |
'OnDemandStatus' => '', |
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
function pad(n, width, z) { | |
z = z || '0'; | |
n = n + ''; | |
return n.length >= width ? n : new Array(width - n.length + 1).join(z) + n; | |
} | |
Ember.Model.dataTypes[Date] = { | |
deserialize: function(string) { | |
if(!string) { return null; } | |
if(string.match(/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}$/)) { |
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
var deferred = Ember.Deferred.create(), | |
testObj = {test: 'testing'}; | |
deferred.then( | |
function() { | |
return testObj; | |
}) | |
.then( | |
function(test) { | |
console.log(test); |
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
embedCode: function() { | |
var config = this.get('show.location.vodConfiguration'); | |
if(!config || !config.get('isLoaded')) | |
return ''; | |
var fileName = this.get('fileName'), | |
baseUrl = config.get('baseUrl'), | |
template = config.get('embedTemplate'); |
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
App.FilesValidController = App.PaginationController.extend({ | |
filesBinding: 'content', | |
goToPage: function(page) { | |
var offset = page -1; | |
this.set('pagerProps.offset', offset); | |
//hack | |
var files = App.DigitalFile.find({isValid:true, isOrphaned: false, offset:offset}); | |
files.meta = this.get('pagerProps'); | |
this.set('model', App.DigitalFile.find({isValid:true, isOrphaned: false, offset:offset})); | |
} |
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
var clips = [ | |
App.Clip.create({name: 'test one'}), | |
App.Clip.create({name: 'test two'}), | |
]; | |
var saveAll = function() { | |
clips.map(function(clip) { | |
return clip.save(); | |
}); | |
} |
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
<?php | |
//Configure Script | |
$server = "http://50.200.83.14/"; //include trailing backslash | |
$channelID = 3; //Cablecast Channel ID | |
$displayDays = 0; //Number of Days to Display | |
$showDetailsURL = "/?page_id=540&"; // Must end with a '?' or '&' | |
date_default_timezone_set('America/New_York'); | |
//End Configure | |
//SOAP Client Setup |