This file contains 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
// Program Data Types without External ID | |
type ProgramData = { | |
program_id: string, | |
playback_items: PlaybackItem[], | |
external_ids: ExternalProgramId[] | |
} | |
type PlaybackItem = { | |
This file contains 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
#!/bin/sh | |
curl --request POST --header "PRIVATE-TOKEN: $1" https://$2/api/v4/projects/$3/repository/branches\?branch\=$4\&ref\=master |
This file contains 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
# Login user to specific registry: | |
npm adduser --registry=<REGISTRY-URL> | |
# Point to registry: | |
npm config set @myco:registry https://reg.example.com | |
# In your CI environment set the auth token (you get it from the .npmrc) | |
npm config set '//reg.example.com/:_authToken' 'xxxxxxxx' | |
# Install package: |
This file contains 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
kill $(lsof -t -i:<PORT>) |
This file contains 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
{ | |
"scripts": { | |
"package": "tar czf $(node --eval \"var pkg=require('./package.json'); console.log(pkg.name)\")-v$(node -e \"var pkg=require('./package.json'); console.log(pkg.version)\")-$(git rev-parse --short HEAD).tar.gz dist" | |
} | |
} |
This file contains 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
<div | |
{ | |
...this.props.boolean && { | |
...this.props.boolean && { property: this.props.func } | |
} | |
} | |
> | |
</div> |
This file contains 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
CompanionScreenManager.prototype.discoverCSLaunchers = function (callback) { | |
if (!csManager) return false; | |
csManager.discoverCSLaunchers(function (launchers) { | |
csLaunchers = launchers; | |
$log(PREFIX + csLaunchers.length + ' CS launchers discovered'); | |
if (callback) { callback(); } | |
}); | |
}; |
This file contains 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
<?xml version="1.0" encoding="utf-8"?> | |
<dsmcc xmlns="urn:dvb:mis:dsmcc:2009" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="urn:dvb:mis:dsmcc:2009 file:stream_event.xsd"> | |
<dsmcc:dsmcc_object xmlns:dsmcc="urn:dvb:mis:dsmcc:2009" dsmcc:component_tag="101"> | |
<dsmcc:stream_event dsmcc:stream_event_id="1" dsmcc:stream_event_name="pro7" /></dsmcc:dsmcc_object> | |
</dsmcc> |
This file contains 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
/** | |
* Stream event callback | |
*/ | |
const callback = (e) => { | |
if (e.status === 'trigger') { | |
if (Playlist[e.text]) { // globally defined playlist | |
_currentAd = this.view.showAd(Playlist[e.text]); // saving in the context of Controller | |
} | |
} | |
}; |
This file contains 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
'use strict' | |
hasClass = (element, cls) -> | |
return element.getAttribute('class').then (classes) -> | |
return classes.split(' ').indexOf(cls) != -1 | |
browser.driver.manage().window().setSize(1024, 768) | |
describe 'App featuring', () -> | |
describe 'header', () -> |
NewerOlder