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
// Model | |
export type Recipient = { | |
firstName: string; | |
lastName: string; | |
address: Address; | |
} | |
export type Address = { | |
line1: string; |
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
import { createPaginator } from './pagination'; | |
describe('pagination', () => { | |
describe('defaults', () => { | |
const paginator = createPaginator(); | |
describe('for 1 page', () => { | |
describe('at page 1', () => { | |
const pageNumber = 1, | |
pages = 1; | |
it('has expected boundaries', () => { |
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
$fn = 120; | |
$fnHole = 360; | |
inch = 25.4; | |
diskHeight = 8; | |
radius = 4.8 * inch; | |
maxDegrees = 30; | |
step = 1; | |
fenceThickness = 10; | |
fenceHeight = inch*2; |
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
[ | |
"The following object is the command line used for VS 2019 Professional to run Developer Powershell", | |
{ | |
"commandline": "powershell.exe -NoExit -Command \"& {Import-Module 'C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Professional\\Common7\\Tools\\Microsoft.VisualStudio.DevShell.dll'; Enter-VsDevShell -SetDefaultWindowTitle -InstallPath 'C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Professional' }\"", | |
"guid": "{26b30263-74e9-4146-b80e-11632e86d42c}", | |
"name": "VS2019 Dev Prompt" | |
} | |
] |
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.Text; | |
using System.Threading; | |
using System.Threading.Tasks; | |
namespace Woosti.Work | |
{ | |
public interface IUnitOfWork : IDisposable | |
{ |
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
# As always with machine setup, this is constantly evolving. | |
# As administrator, Powershell: | |
choco install -y ` | |
7zip ` | |
docker ` | |
docker-compose ` | |
docker-for-windows ` | |
DotNet4.5.2 ` |
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
# Remove all stopped containers | |
docker rm $(docker ps -a -q) | |
# Remove unnamed images | |
docker rmi $(docker images -f dangling=true -q) | |
# Remove ALL networks (this does not discriminate against built-in networks.) | |
docker network rm $(docker network ls -q) |
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.IO; | |
using System.Threading.Tasks; | |
using Microsoft.AspNet.Builder; | |
using Microsoft.AspNet.Http; | |
using Microsoft.AspNet.Mvc.Internal; | |
namespace Samples.Pages | |
{ | |
// TODO - check to see if this is still needed by Kestrel | |
public class KestrelWorkaround |