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
function getNext(name) { | |
var response = getContext().getResponse(); | |
var result = __.chain() | |
.filter(function(doc) { return doc.id === name; }) | |
.value({}, updateCounter); | |
if(!result.isAccepted) throw new Error("The call was not accepted"); | |
var next; |
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
void Main() | |
{ | |
Test1(5); | |
Test2(5); | |
} | |
void Test1(int _) | |
{ | |
_ = 2 + 2; | |
Console.WriteLine(_); |
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
# Get latest remote changes for all repos in sub-directories | |
Write-Output "Fetching remote repositories..." | |
Get-ChildItem -Directory | | |
# Has a hidden .git directory (i.e. is a repository) | |
Where-Object { ( $_ | Get-ChildItem -Hidden ).Name -contains ".git" } | | |
# Has at lease one remote | |
Where-Object { Push-Location $_; (git remote).Count -gt 0; Pop-Location } | | |
# Fetch remote changes | |
ForEach-Object { Push-Location $_; "Checking $_..."; git fetch; Pop-Location; "`t...Done"; } |
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
function Get-GitIgnore { | |
[CmdletBinding()] | |
param ( | |
[Parameter(Mandatory=$true)] | |
[string[]] | |
$Targets, | |
[string] | |
$OutputDirectory = "$PWD", | |
[string] | |
$Filename = ".gitignore", |
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
// Suitable for LINQPad with the Autofac nuget package | |
void Main() | |
{ | |
ExpectedBehaviour(); | |
UnexpectedBehaviour(); | |
} | |
public void ExpectedBehaviour() | |
{ |
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.Linq; | |
using System.Reactive.Concurrency; | |
using System.Reactive.Disposables; | |
using System.Reactive.Linq; | |
using System.Reactive.Threading.Tasks; | |
using System.Runtime.InteropServices; | |
using System.Text; | |
using System.Threading; |
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
namespace RxExtensions | |
{ | |
using System; | |
using System.Reactive; | |
using System.Reactive.Concurrency; | |
using System.Reactive.Disposables; | |
using System.Reactive.Linq; | |
using System.Reactive.Subjects; | |
public class RollingReplaySubject |
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
Auth0-angular Popup Login Hang Repro |
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
/* Name of Gist */ |
NewerOlder