This file contains hidden or 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
| USE MASTER | |
| GO | |
| DECLARE @DML nvarchar(MAX) | |
| DECLARE @SQLShackIOStatistics TABLE | |
| ( | |
| [I/ORank] [int] NULL, | |
| [DBName] [nvarchar](128) NULL, | |
| [driveLetter] [nvarchar](1) NULL, |
This file contains hidden or 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
| SELECT | |
| Convert ([datetime], | |
| + (Convert(Varchar , DatePart(year, createdDate ))) + '-' | |
| + (Convert(Varchar , DatePart(month, createdDate ))) + '-' | |
| + (Convert(Varchar , DatePart(day, createdDate ))) + ' ' | |
| + (Convert(Varchar , DatePart(hour, createdDate ))) + ':00' |
This file contains hidden or 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
| CREATE TABLE AzureTweets ( | |
| id int PRIMARY KEY IDENTITY, | |
| createdDate datetime DEFAULT(getdate()), | |
| tweettext varchar(512) SPARSE NULL, | |
| sentiment Float NULL, | |
This file contains hidden or 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.Net; | |
| public static async Task<HttpResponseMessage> Run(HttpRequestMessage req, TraceWriter log) | |
| { | |
| // The sentiment category defaults to 'GREEN'. | |
| string category = "GREEN"; | |
| // Get the sentiment score from the request body. | |
| double score = await req.Content.ReadAsAsync<double>(); | |
| log.Info(string.Format("The sentiment score received is '{0}'.", |
This file contains hidden or 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
| FROM microsoft/aspnetcore-build:2.0 AS build-env | |
| WORKDIR /app | |
| # Copy csproj and restore as distinct layers | |
| COPY *.csproj ./ | |
| RUN dotnet restore | |
| # Copy everything else and build | |
| COPY . ./ | |
| RUN dotnet publish -c Release -o out |
This file contains hidden or 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
| // | |
| // GET: /Account/ForgotPassword | |
| [AllowAnonymous] | |
| public ActionResult ForgotPassword() | |
| { | |
| return View(); | |
| } | |
| // |
This file contains hidden or 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.Threading.Tasks; | |
| using System.Web; | |
| using Microsoft.Bot.Builder.Dialogs; | |
| using Microsoft.Bot.Builder.FormFlow; | |
| using Microsoft.Bot.Builder.Luis; | |
| using Microsoft.Bot.Builder.Luis.Models; | |
| using Microsoft.Bot.Builder.Resource; |
This file contains hidden or 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
| dotnet restore | |
| dotnet aspnet-codegenerator controller -name MoviesController -m Movie -dc MvcMovieContext --relativeFolderPath Controllers --useDefaultLayout --referenceScriptLibraries |
This file contains hidden or 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
| @{ | |
| ViewData["Title"] = "Bienvenido"; | |
| } | |
| <h2>Hola</h2> | |
| <ul> | |
| @for (int i = 0; i < (int)ViewData["NumTimes"]; i++) | |
| { | |
| <li>@ViewData["Message"]</li> |
This file contains hidden or 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
| // Get: /HelloWorld/Welcome/ | |
| public IActionResult Welcome(string name, int numTimes = 1) | |
| { | |
| ViewData["Message"] = "Hola " + name; | |
| ViewData["NumTimes"] = numTimes; | |
| return View(); |
NewerOlder