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
export interface SortedArrayOpts { | |
filter?: Function; | |
compare?: Function | string; | |
unique?: boolean; | |
resume?: boolean; | |
} | |
export class SortedArray<T> extends Array<T> { | |
private readonly _filter: Function; | |
private readonly _compare: Function; |
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 FluentAssertions; | |
using RestSharp; | |
using Xunit; | |
namespace Todo.Web.AcceptanceTests | |
{ | |
public static class Extensions |
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
# Install script for Kristoffer | |
# Created 06.08.2015 | |
ECHO Installing apps | |
ECHO Configure chocolatey | |
choco feature enable -n allowGlobalConfirmation | |
#choco install visualstudiocode | |
choco install notepadplusplus |
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
{ | |
"version": "0.2.0", | |
"configurations": [ | |
{ | |
"name": "StartCake", | |
"type": "mono", | |
"request": "launch", | |
"program": "${workspaceRoot}/tools/Cake/Cake.exe", | |
"runtimeArgs": [ | |
"--debug", |
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
static readonly Func<Task<int>, Either<Exception, string>> GetMessage = queryAsync => | |
string.Empty; | |
static readonly Func<string, Task<int>> QueryAsync = queryText => | |
new SqlCommand(queryText).ExecuteNonQueryAsync(); | |
static void Run() | |
{ | |
var either = compose(QueryAsync, GetMessage)("update ..."); | |
} |
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 nginx | |
COPY dist/ /usr/share/nginx/html | |
COPY docker/entrypoint.sh /usr/local/bin | |
COPY docker/nginx.conf /etc/nginx/conf.d/default.conf | |
CMD ["entrypoint.sh", "-g", "daemon off;"] |
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
<h1>{{title}}</h1> | |
<div *ngFor="let user of usersA"> | |
{{user.name.first}} | |
</div> | |
<button (click)="loadSubscriptionA()">Load A</button> | |
<button (click)="unloadSubscriptionA()">Unload A</button> | |
<div *ngFor="let user of usersB"> | |
{{user.name.first}} | |
</div> |
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
Set-WindowsExplorerOptions -EnableShowHiddenFilesFoldersDrives -EnableShowProtectedOSFiles -EnableShowFileExtensions | |
Enable-RemoteDesktop | |
cinst fiddler4 | |
cisnt nodejs.install | |
cinst git-credential-winstore | |
cinst console-devel | |
cinst filezilla | |
cinst poshgit | |
cinst skype |
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
#addin "nuget:?package=Cake.Watch" // Put this at the top to pull in the Cake.Watch package for use. | |
// Add this task in your build file somewhere. You can update which target to run, the file pattern to watch, and even the toast notification. | |
Task("Watch") | |
.Does(() => { | |
var settings = new WatchSettings { | |
Recursive = true, | |
Path = "./", | |
Pattern = "*.*" | |
}; |