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
#r "Microsoft.Azure.WebJobs.Extensions.Storage" | |
public static async Task Run(Stream myBlob, Binder binder, string name, ILogger log) | |
{ | |
if (name.Contains("_")) return; | |
log.LogInformation($"C# Blob trigger function Processed blob\n Name:{name} \n Size: {myBlob.Length} Bytes"); | |
var fileName = Path.GetFileNameWithoutExtension(name); | |
var fileExtension = Path.GetExtension(name); |
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
$azExists = Get-InstalledModule Az -AllVersions -ErrorAction SilentlyContinue | |
if ($azExists) { | |
Write-Host "Az PowerShell installed ..." | |
} | |
else { | |
Write-Host "You need Az PowerShell https://docs.microsoft.com/en-us/powershell/azure/" | |
Break | |
} |
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
BEGIN TRANSACTION | |
BEGIN TRY | |
-- | |
--ROLLBACK | |
COMMIT | |
TRANSACTION | |
END TRY |
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
@echo off | |
:: Check if git is installed | |
@ECHO Looking for git ... | |
call git --version >nul 2>nul | |
IF ERRORLEVEL 1 ( | |
@ECHO Please install git from http://git-scm.com/downloads | |
goto :end_batch | |
) | |
call git --version | |
:: Check for node.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
("thisIsTest").replace(/([a-z][A-Z])/g, function (g) { return g[0] + '-' + g[1].toLowerCase() }); | |
"this-is-test" | |
("this-is-test").replace(/-([a-z])/g, function (g) { return g[1].toUpperCase(); }); | |
"thisIsTest" |