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
// Variables | |
var location = 'eastus' | |
var storageAccountName = 'yourstorageaccountname' // Change to a unique name | |
var searchServiceName = 'yoursearchservicename' // Change to a unique name | |
var openAIServiceName = 'youropenaiservicename' // Change to a unique name | |
// Storage Account | |
resource storageAccount 'Microsoft.Storage/storageAccounts@2021-04-01' = { | |
name: storageAccountName | |
location: location |
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
ffmpeg -i '.\video.mp4' -i '.\audio.m4a' -c:v copy -c:a aac day5.mp4 |
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
NBA and Microsoft team up to transform fan experiences with cloud application modernization | |
Posted on November 16, 2022 | |
Ashmi Chokshi General Manager, Azure Digital and Application Innovation | |
There’s nothing quite like watching a basketball game and cheering on your favorite team as they battle it out for points before the buzzer sounds. From the players and employees to the technology, all need to work in lockstep to deliver a truly immersive experience. | |
As fans, we expect personalized experiences that bring the virtual world and the real world together on and off the court. This means brand new viewing experiences and virtual reality, real-time highlights of our favorite basketball games, and seamless ways to connect with other fans (and rivals!) when we want, how we want. | |
Having the right technology partner and cloud-based app transformation strategy is necessary to help organizations like the National Basketball Association (NBA) continue to deliver such unforgettable experiences and exceed fan expecta |
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
dependencies | |
| extend contextId = tostring(customDimensions["ProcessFunction-Context ID"]) | |
| extend rowsCount = toint(customDimensions["ProcessFunction-Context ID|RowsCount"]) | |
| extend processedCount = toint(customDimensions["ProcessFunction-RowsInjected"]) | |
| where contextId == "d459341f-5d68-469e-bec1-27090bda91dc" | |
| project rowsCount, processedCount, timestamp | |
| render columnchart kind=unstacked | |
dependencies | |
| extend parentId = tostring(customDimensions["ChangeFeedProcessor-Context ID"]) |
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
# 1 | |
Start up a shell and type the following command. | |
az login | |
This will start up a browser and you will need to log into Azure. | |
# 2 | |
Use the account list command you can get a list of your subscriptions. |
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
using System; | |
using System.Linq; | |
using System.Linq.Expressions; | |
namespace Logic.Movies | |
{ | |
internal sealed class IdentitySpecification<T> : Specification<T> | |
{ | |
public override Expression<Func<T, bool>> ToExpression() | |
{ |
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
using System; | |
using System.Linq.Expressions; | |
namespace Sample | |
{ | |
public class GenericSpecification<T> | |
{ | |
public Expression<Func<T, bool>> Expression { get; } | |
public GenericSpecification(Expression<T, bool> expression) |
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
apiVersion: apps/v1 | |
# The type of workload we are creating | |
kind: Deployment | |
metadata: | |
# Name of deployment - Required | |
name: aks-web-app-deployment | |
spec: | |
replicas: 2 | |
selector: | |
matchLabels: |
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
apiVersion: v1 | |
# The type of workload we are creating | |
kind: Service | |
metadata: | |
# Name of Service - Required | |
name: aks-web-app-service | |
# Specific details about the Service | |
spec: | |
# Type of Service to be deployed | |
type: LoadBalancer |
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
//sample.js | |
window.onload = function () { | |
var setInnerHTML = function (elm, html) { | |
elm.innerHTML = html; | |
Array.from(elm.querySelectorAll("script")).forEach(oldScript => { | |
const newScript = document.createElement("script"); | |
Array.from(oldScript.attributes) | |
.forEach(attr => newScript.setAttribute(attr.name, attr.value)); | |
newScript.appendChild(document.createTextNode(oldScript.innerHTML)); |
NewerOlder