Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000
public class Job | |
{ | |
private static int lastId; | |
public int Id { get; private set; } | |
public int Duration { get; private set; } | |
public Job(int value) | |
{ | |
Id = lastId + 1; |
<Query Kind="Program"> | |
<NuGetReference>Microsoft.EntityFrameworkCore.InMemory</NuGetReference> | |
<NuGetReference>Swashbuckle.AspNetCore</NuGetReference> | |
<Namespace>Microsoft.AspNetCore.Builder</Namespace> | |
<Namespace>Microsoft.EntityFrameworkCore</Namespace> | |
<Namespace>Microsoft.Extensions.DependencyInjection</Namespace> | |
<Namespace>Microsoft.OpenApi.Models</Namespace> | |
<Namespace>Microsoft.AspNetCore.Http</Namespace> | |
<IncludeAspNet>true</IncludeAspNet> | |
<RuntimeVersion>6.0</RuntimeVersion> |
public static class DapperExtensions | |
{ | |
private static readonly IEnumerable<TimeSpan> RetryTimes = new[] | |
{ | |
TimeSpan.FromSeconds(1), | |
TimeSpan.FromSeconds(2), | |
TimeSpan.FromSeconds(3) | |
}; | |
private static readonly AsyncRetryPolicy RetryPolicy = Policy |
// ... | |
using Microsoft.Owin.Hosting; | |
// ... | |
public class ServiceHost | |
{ | |
private IDisposable server = null; | |
const string baseAddress = "https://*:443"; | |
public void Start() |
// quite untested, adapted from BigstickCarpet's gist, attempt to make it simpler to use | |
function openIndexedDB (fileindex) { | |
// This works on all devices/browsers, and uses IndexedDBShim as a final fallback | |
var indexedDB = window.indexedDB || window.mozIndexedDB || window.webkitIndexedDB || window.msIndexedDB || window.shimIndexedDB; | |
var openDB = indexedDB.open("MyDatabase", 1); | |
openDB.onupgradeneeded = function() { | |
var db = {} |
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Web; | |
using System.Web.Helpers; | |
using System.Web.Mvc; | |
namespace MyNamespace.Controllers | |
{ | |
[AttributeUsage(AttributeTargets.Method | AttributeTargets.Class, AllowMultiple = false, Inherited = true)] |
Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; Ant sim ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; | |
; Copyright (c) Rich Hickey. All rights reserved. | |
; The use and distribution terms for this software are covered by the | |
; Common Public License 1.0 (http://opensource.org/licenses/cpl.php) | |
; which can be found in the file CPL.TXT at the root of this distribution. | |
; By using this software in any fashion, you are agreeing to be bound by | |
; the terms of this license. | |
; You must not remove this notice, or any other, from this software. | |
;dimensions of square world |