- accent:
string
— Web Chat component accent color.
Default:#0063B1
- backgroundColor:
string
— Transcript background color.
Default:White
- subtle:
string
— Secondary component color.
Default:#767676
- paddingRegular:
number
— Default padding for most visual components.
Default:10
- paddingWide:
number
— Padding for suggestedAction buttons.
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
process.env.ComponentServerBundles = JSON.stringify({ | |
default: './server-bundle', | |
pwa: './server-bundle', | |
pwaremote: 'http://myserver.com/server-bundle.js' | |
}); | |
// Handy for debugging to use a direct require so Visual Studio code can set breakpoints in the code | |
// of the bundle we are debugging. | |
let bundle_to_debug = require('./server-bundle'); | |
if (process.env.NODE_ENV === 'production') { |
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
// bundleConfiguration is a javascript object in the following format: | |
// let bundleConfiguration = { | |
// default: './server-bundle', | |
// pwa: './server-bundle', | |
// pwaremote: 'http://myserver.com/server-bundle.js' | |
// }; | |
// bundles is an empty onbject, i.e. let bundles = {}; | |
// the function returns an array of promises to wait for: | |
// bundleLoaderPromises = loadBundles(bundlesConfiguration, bundles); | |
// Promise.all(bundleLoaderPromises).then(() => { |
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
{ | |
"url":"https://commondatastorage.googleapis.com/gtv-videos-bucket/sample/WhatCarCanYouGetForAGrand.mp4" | |
} |
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
const axios = require('axios'); | |
const express = require('express'); | |
// from https://codewithmark.com/learn-to-create-youtube-video-downloader | |
function qsToJson(qs) { | |
var res = {}; | |
var pars = qs.split('&'); | |
var kv, k, v; | |
for (i in pars) { | |
kv = pars[i].split('='); |
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
const axios = require('axios'); | |
const express = require('express'); | |
// from https://codewithmark.com/learn-to-create-youtube-video-downloader | |
function qsToJson(qs) { | |
var res = {}; | |
var pars = qs.split('&'); | |
var kv, k, v; | |
for (i in pars) { | |
kv = pars[i].split('='); |
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 * as React from 'react'; | |
import * as ReactDOM from 'react-dom'; | |
import * as ReactDOMServer from 'react-dom/server'; | |
import { Provider } from 'react-redux'; | |
import hypernova, { serialize, load } from 'hypernova'; | |
import { Store } from 'redux'; | |
export const renderReactAsyncReduxServer = (name: string, C: React.ComponentClass, store: Store<any>) => hypernova({ | |
server() { | |
return (props: any) => { |
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
// hypernova server implementation with support for async react components | |
// Serge van den Oever, Macaw | |
// | |
// If the hypernova server is run from iisnode we can access the appsettings in the web.config as | |
// environment variable, i.e. | |
// <configuration><appSettings><add key="GLOBAL_PREFIX" value="somevalue"></appSettings>... | |
// then use var globalPrefix = process.env.GLOBAL_PREFIX; to access the setting | |
// Example post body: | |
// { |
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
using System; | |
using System.Threading; | |
using System.Threading.Tasks; | |
using MassTransit; | |
using Xunit; | |
namespace MassTransitRequestResponse.Test | |
{ | |
public interface INamedReq | |
{ |
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
param($path = (Get-Item -Path ".\" -Verbose).FullName) | |
Write-Host "Processing for git branch status of subfolders in folder: $path" | |
$items = @() | |
Get-ChildItem -Path $path | ?{$_.PSIsContainer } | Foreach-Object -Process { | |
if (Test-Path -Path (Join-Path -Path $_.FullName -ChildPath '.git')) { | |
pushd $_.FullName | |
Write-Host "Processing $($_)...." | |
git fetch |
NewerOlder