Get up and running with Sapper/Svelte, TypeScript and Sass
Clone the template into the current (empty) directory with 'degit'
npx degit zplume/sapper-rollup-sass-typescript
using System.IO; | |
using System.Text; | |
public static class StreamExtensions | |
{ | |
public static string ToEncodedString(this Stream stream, Encoding enc = null) | |
{ | |
enc = enc ?? Encoding.UTF8; | |
byte[] bytes = new byte[stream.Length]; |
$imagePath = "$home\AppData\Local\Packages\Microsoft.Windows.ContentDeliveryManager_cw5n1h2txyewy\LocalState\Assets\*" | |
$destinationPath = "$home\OneDrive\Pictures\Lock screen" | |
Add-Type -AssemblyName System.Drawing | |
# get images from lock screen folder | |
$items = Get-ChildItem -Path $imagePath | |
foreach($item in $items) { | |
$fileName = $item.Name |
npx degit zplume/sapper-rollup-sass-typescript
function objectToQueryString(paramsObject) { | |
return Object.keys(paramsObject).reduce((accumulator, currentKey) => { | |
const prefix = accumulator === "" ? "?" : "&"; | |
return `${accumulator}${prefix}${currentKey}=${encodeURIComponent(paramsObject[currentKey])}`; | |
}, ""); | |
} |
param( | |
[Parameter(Mandatory=$true)] | |
[string]$Path | |
) | |
$ErrorActionPreference = "Stop" | |
$CurrentLocation = (Get-Location).Path | |
try { |
using Microsoft.Azure.WebJobs; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Threading.Tasks; | |
namespace LS.DurableFunctions.Examples | |
{ | |
public static class DurableOrchestrationContextExtensions | |
{ | |
/// <summary> |
using System; | |
using System.Collections.Generic; | |
using System.Threading.Tasks; | |
using OfficeDevPnP.Core; | |
using Microsoft.SharePoint.Client; | |
using System.IO; | |
using CsvHelper; | |
using File = Microsoft.SharePoint.Client.File; | |
using CsvHelper.Configuration.Attributes; |
const queryStrings = window.location.search.substring(1).split("&").reduce((output, item, index) => { | |
if(item === "") | |
return output; | |
const keyValue = item.split("="); | |
output[decodeURIComponent(keyValue[0])] = keyValue[1] !== undefined ? | |
decodeURIComponent(keyValue[1]) : | |
true; // return true for query strings with no value | |
param( | |
# Credentials paramter should be a variable containing the result of Get-Credential | |
[Parameter(Mandatory = $true)] | |
[pscredential]$Credentials, | |
[Parameter(Mandatory = $true)] | |
[string]$ConfigFile | |
) | |
$ErrorActionPreference = "Stop" |
# Map Function App friendly name to URL | |
return @{ | |
DEV = @{ | |
"CreateTenderSite" = "https://dev-createtendersite.azurewebsites.net"; | |
"CopyDocuments" = "https://dev-copydocuments.azurewebsites.net"; | |
"Notifications" = "https://dev-notifications.azurewebsites.net"; | |
"PermissionAssignment" = "https://dev-permissions.azurewebsites.net" | |
}; | |
TEST = @{ |