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
package main | |
import ( | |
"github.com/pulumi/pulumi-aws/sdk/v4/go/aws/iam" | |
"github.com/pulumi/pulumi/sdk/v3/go/pulumi" | |
) | |
func main() { | |
pulumi.Run(func(ctx *pulumi.Context) error { | |
// Create a policy document that allows access to a specific S3 bucket |
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 Microsoft.Azure.CognitiveServices.Vision.ComputerVision; | |
using Microsoft.Azure.CognitiveServices.Vision.ComputerVision.Models; | |
using System; | |
using System.Collections.Generic; | |
using System.IO; | |
using System.Threading.Tasks; | |
namespace TestVisionAPI | |
{ | |
class Program |
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.Collections.Generic; | |
using System.Linq; | |
using System.Net.Http; | |
using System.Net.Http.Headers; | |
using System.Text; | |
using System.Threading; | |
using System.Threading.Tasks; | |
// NOTE: Install the Newtonsoft.Json NuGet package. |
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
<!DOCTYPE html> | |
<!-- saved from url=(0014)about:internet --> | |
<!-- the above Mark of the Web lets IE run this page in the Internet security zone, | |
avoiding the permission prompt for running active content such as JavaScript --> | |
<html> | |
<head> | |
<meta charset="UTF-8"> | |
<title>Bing Web Search API Demo</title> | |
<base target="_blank"> | |
<style type="text/css"> |
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
<# | |
.DESCRIPTION | |
An example runbook which gets all the ARM resources using the Run As Account (Service Principal) | |
.NOTES | |
AUTHOR: Azure Automation Team | |
LASTEDIT: Mar 14, 2016 | |
#> | |
$connectionName = "AzureRunAsConnection" |
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
{ | |
"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", | |
"contentVersion": "1.0.0.0", | |
"parameters": { | |
"virtualMachineSize": { |
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.IO; | |
using System.Linq; | |
using System.Threading.Tasks; | |
using Microsoft.ML; | |
using Microsoft.ML.Data; | |
using Microsoft.ML.Models; | |
using Microsoft.ML.Trainers; | |
using Microsoft.ML.Transforms; |
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
internal class TestSentimentData | |
{ | |
internal static readonly IEnumerable<SentimentData> Sentiments = new[] | |
{ | |
new SentimentData | |
{ | |
SentimentText = "Contoso's 11 is a wonderful experience", | |
Sentiment = 0 | |
}, | |
new SentimentData |
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
public class SentimentPrediction | |
{ | |
[ColumnName("PredictedLabel")] | |
public bool Sentiment; | |
} |
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
public class SentimentData | |
{ | |
[Column("0")] | |
public string SentimentText; | |
[Column("1", name: "Label")] | |
public float Sentiment; | |
} |
NewerOlder