Skip to content

Instantly share code, notes, and snippets.

View curiousape-ph's full-sized avatar

PH curiousape-ph

View GitHub Profile
@curiousape-ph
curiousape-ph / Program.cs
Created January 30, 2020 04:28
Dotnet Core 3.1.1 CloudRun Program.cs
public class Program
{
public static void Main(string[] args)
{
CreateHostBuilder(args).Build().Run();
}
public static IHostBuilder CreateHostBuilder(string[] args)
{
string port = Environment.GetEnvironmentVariable("PORT") ?? "8080";
@curiousape-ph
curiousape-ph / Program.cs
Created January 30, 2020 04:28
Dotnet Core 3.1.1 CloudRun Program.cs
public class Program
{
public static void Main(string[] args)
{
CreateHostBuilder(args).Build().Run();
}
public static IHostBuilder CreateHostBuilder(string[] args)
{
string port = Environment.GetEnvironmentVariable("PORT") ?? "8080";
@curiousape-ph
curiousape-ph / DockerFIle
Last active January 30, 2020 06:33
Dotnet Core 3.1.1 DockerFIle
# Use Microsoft's official build .NET image.
# https://hub.docker.com/_/microsoft-dotnet-core-sdk/
FROM mcr.microsoft.com/dotnet/core/sdk:3.1-alpine AS build
WORKDIR /app
# Install production dependencies.
# Copy csproj and restore as distinct layers.
COPY *.csproj ./
RUN dotnet restore
@curiousape-ph
curiousape-ph / pqTippersonal.js
Created November 9, 2012 02:24
pqTippersonal
/*
* jquery.qtip. The jQuery tooltip plugin
*
* Copyright (c) 2009 Craig Thompson
* http://craigsworks.com
*
* Licensed under MIT
* http://www.opensource.org/licenses/mit-license.php
*
* Launch : February 2009