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
// DISCLAIMER! Use at own risk, no guarantees, etc. This sample code is adapted from existing code without code review/testing | |
import fs from 'fs'; | |
import path_ from 'path'; | |
import { promisify } from 'util'; | |
import { execFile } from 'child_process'; | |
export const isPkg = !!process.pkg; | |
// make pkg keep the executable | |
// this is done to force pkg to detect as asset (looks for "path.join", but typescript renames) |
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
<# | |
.SYNOPSIS | |
Speak text using SSML | |
.DESCRIPTION | |
Speak text using SSML, using built in MS speech synthesis. Will output metadata about result, including any embedded <mark>s | |
.PARAMETER Text |
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
<# | |
.SYNOPSIS | |
Speak text using SSML | |
.DESCRIPTION | |
Speak text using SSML, using built in MS speech synthesis. Will output metadata about result, including any embedded <mark>s. This uses the .NET System.Speech library, which uses the older SAPI5 synthesis system. | |
Based on code from https://github.com/marak/say.js/ |
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
<html> | |
<head> | |
<title>Hls.js demo - basic usage</title> | |
</head> | |
<body> | |
<script> | |
typeof window !== "undefined" && | |
(function webpackUniversalModuleDefinition(root, factory) { |
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
try { | |
$remoteHost = Read-Host "Enter IP / Hostname" | |
$port = 23 | |
write-host "Connecting to $remoteHost on port $port" | |
$socket = new-object System.Net.Sockets.TcpClient($remoteHost, $port) | |
if($socket -eq $null) { return; } | |
$stream = $socket.GetStream() | |
$writer = new-object System.IO.StreamWriter($stream) | |