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
import React from 'react'; | |
import { ServiceContainer } from './ServiceContainer'; | |
import ContainerProvider from './ContainerProvider'; | |
import { Test } from './Test'; | |
import App from './App'; | |
const container = new ServiceContainer(); | |
// register all service classes in the container | |
container.register(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
import { eventChannel, END } from 'redux-saga'; | |
import { call, put, take, fork, cancel, cancelled } from 'redux-saga/effects'; | |
import * as LiveDataActions from '../../redux/LiveData/LiveData.actions'; | |
import * as LiveDataTypes from '../../redux/LiveData/LiveData.types'; | |
// Use this to actually throw exceptions, allows for easier debugging. | |
const dispatch = put.resolve; | |
function createWebSocketConnection() { | |
return new Promise((resolve, reject) => { |
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
#!/usr/bin/env ruby | |
require 'xcodeproj' | |
# This script allows you to build debug and/or appstore builds via MS App Center. | |
# Using a CI/CD the Cordova application gets build. The iOS project is then | |
# committed to a separate repository which is connected to MS App Center. | |
# However, without opening the iOS project in Xcode first and setting up the | |
# build settings and sharing the scheme, MS App Center can't build the app. | |
# | |
# This script creates two schemes. One for debug and one for release. In |
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 () { | |
function scrollTopPlugin () { | |
this.identifier = 'scroll-top'; | |
this.version = '1.0'; | |
this.reload = function () { | |
try { | |
window.localStorage.setItem(this.identifier, (document.scrollingElement || document.body).scrollTop); | |
}catch(e) { |
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 () { | |
window.srtToVtt = function (url, cb) { | |
var xhr = new XMLHttpRequest(); | |
xhr.onload = function () { | |
var vtt = 'WEBVTT FILE\r\n\r\n'; | |
var blob; | |
var url; |
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
'use strict'; | |
var routes = []; | |
/** | |
* Simple jQuery ajax mock for jasmine | |
* | |
* @example | |
* | |
* ## Create a mocked route |
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
'use strict'; | |
var DynamicControllerDirective = function ($parse, $compile, $templateRequest, $exceptionHandler) { | |
return { | |
restrict: 'A', | |
link: function (scope, element, attr) { | |
$templateRequest(attr.dynamicControllerTemplate).then(function (template) { | |
var templateElement = angular.element(template); | |
if (templateElement.length !== 1) { |
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
{ | |
"username": "your browserstack username", | |
"key": "your browserstack key" | |
} |