Docker file encontrado no tutorial https://dotnet.microsoft.com/learn/aspnet/microservice-tutorial/docker-file
# Dockerfile
FROM mcr.microsoft.com/dotnet/core/sdk:3.1 AS build
WORKDIR /src
COPY myMicroservice.csproj .
RUN dotnet restore
class AsyncInjector { | |
constructor() {} | |
injectScript( | |
document: any, | |
src: string, | |
async: boolean = false, | |
callbackLoaded = () => {} | |
) { | |
let script = document.createElement("script"); |
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<meta http-equiv="X-UA-Compatible" content="ie=edge"> | |
<title>Teste 001</title> | |
<link rel="stylesheet" href="styles.css"> |
Object.prototype.keys = function() { return Object.keys(this) } | |
var a = [{nome: 'igo', sobrenome: 'ventura'}, {nome: 'igo', sobrenome: 'ventura'}, {nome: 'igo', sobrenome: 'ventura'}] | |
a.map(i => { i.keys().forEach(k => i[k] = i[k].toUpperCase()); return i }) |
using System; | |
using System.Collections.Generic; | |
using System.Data.Common; | |
using System.Linq; | |
using System.Reflection; | |
namespace EFCore.ProceduresSchema.Extensions | |
{ | |
// ReSharper disable once InconsistentNaming | |
public static class DbDataReader_ |
if (!window.localStorage) { | |
Object.defineProperty(window, "localStorage", new (function () { | |
var aKeys = [], oStorage = {}; | |
Object.defineProperty(oStorage, "getItem", { | |
value: function (sKey) { return sKey ? this[sKey] : null; }, | |
writable: false, | |
configurable: false, | |
enumerable: false | |
}); | |
Object.defineProperty(oStorage, "key", { |
import java.math.BigDecimal; | |
public class DistanceCalculator { | |
/** | |
* Calculates distance between to points and returns in meters. | |
* | |
* @param latitude1 | |
* @param longitude1 | |
* @param latitude2 |
My Awesome Sketch | |
First State | |
some event -> Second State | |
Second State | |
goto third -> Another Sketch | |
Another Sketch | |
Third state -> My Awesome Sketch |
Docker file encontrado no tutorial https://dotnet.microsoft.com/learn/aspnet/microservice-tutorial/docker-file
# Dockerfile
FROM mcr.microsoft.com/dotnet/core/sdk:3.1 AS build
WORKDIR /src
COPY myMicroservice.csproj .
RUN dotnet restore