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
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 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
<div | |
{ | |
...this.props.boolean && { | |
...this.props.boolean && { property: this.props.func } | |
} | |
} | |
> | |
</div> |
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
{ | |
"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 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
kill $(lsof -t -i:<PORT>) |
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
# 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 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
#!/bin/sh | |
curl --request POST --header "PRIVATE-TOKEN: $1" https://$2/api/v4/projects/$3/repository/branches\?branch\=$4\&ref\=master |
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
// Program Data Types without External ID | |
type ProgramData = { | |
program_id: string, | |
playback_items: PlaybackItem[], | |
external_ids: ExternalProgramId[] | |
} | |
type PlaybackItem = { | |
OlderNewer