Skip to content

Instantly share code, notes, and snippets.

import React, { useEffect, useState } from 'react';
import { ActivityIndicator, View } from 'react-native';
import { WebView } from 'react-native-webview';
import { AuthHeaders, getCognitoHeaders } from '@root/cognito/cognitoSessionInfo';
import { useAppSelector } from '@hooks/hooks';
export interface IAuthenticatedWebviewProps {
url: string;
injectedJavaScript?: any;
onShouldStartLoadWithRequest: any;
@notjulian
notjulian / SpeechGenerator.cs
Created October 16, 2019 08:11
Generate wav file with Amazon Polly and .NET C#
using System;
using System.Collections.Generic;
using System.IO;
using Amazon.Polly; //nuget AWSSDK.Core AWSSDK.Polly
using Amazon.Polly.Model;
using NAudio.Wave; //nuget NAudio
public class SpeechGenerator
{
public string awsAccessKey = "";