If you've copied a repository instead of forking it, and need to merge changes across.
-
Merge into your current branch if you have to.
-
Identify the commit where the divergence occurred. Create a branch off of it for easy reference:
netsh interface portproxy add v4tov4 listenport=20000 connectaddress=127.0.0.1 connectport=10000 protocol=tcp | |
netsh interface portproxy add v4tov4 listenport=20001 connectaddress=127.0.0.1 connectport=10001 protocol=tcp | |
netsh interface portproxy add v4tov4 listenport=20002 connectaddress=127.0.0.1 connectport=10002 protocol=tcp | |
REM Your connection string will be similar to: | |
REM DefaultEndpointsProtocol=http;AccountName=devstoreaccount1; | |
REM AccountKey=Eby8vdM02xNOcqFlqUwJPLlmEtlCDXJ1OUzFT50uSRZ6IFsuFq2UVErCz4I6tq/K1SZFPTOtr/KBHBeksoGMGw==; | |
REM BlobEndpoint=http://192.168.0.2:20000/devstoreaccount1; | |
REM TableEndpoint=http://192.168.0.2:20002/devstoreaccount1; | |
REM QueueEndpoint=http://192.168.0.2:20001/devstoreaccount1; |
/// <summary> | |
/// Represents a buffer manager. | |
/// </summary> | |
sealed class FastBufferManager | |
{ | |
private const int Decongest = 16; | |
/// <summary> | |
/// Represents a portion of the buffers, designed to reduce congestion. | |
/// </summary> |
Function Select-Regex { | |
Param( | |
[Parameter(ValueFromPipeline=$True)] $Input, | |
[Parameter(Mandatory=$True, Position=0)] [String] $Pattern | |
) | |
Begin { | |
$Regex = New-Object Regex $Pattern, 'ExplicitCapture' | |
} | |
Process { |
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
using Microsoft.Diagnostics.Runtime; | |
using System.IO; | |
using System.Collections; | |
using System.Diagnostics; | |
namespace EEHeap |
using System.Security.Cryptography; | |
/// <summary> | |
/// Represents the Murmur 3 Hash Algorithm. | |
/// </summary> | |
/// <remarks> | |
/// Murmur 3 is not cryptographically secure, instead it is used | |
/// for content identification. | |
/// </remarks> | |
public sealed class Murmur3 : HashAlgorithm |
public partial class Form1 : Form | |
{ | |
public Form1() | |
{ | |
InitializeComponent(); | |
} | |
async void button1_Click(object sender, EventArgs e) | |
{ | |
var context = SynchronizationContext.Current; |
using System; | |
using System.Threading; | |
using System.Threading.Tasks; | |
namespace ContextDemo | |
{ | |
class SimpleContext : SynchronizationContext | |
{ | |
public override void Post(SendOrPostCallback d, object state) | |
{ |
Based on an idea by Andread Arnold-Bos. Instead of having two files the template instantiations are done within the same file as the template.
#pragma once | |
#include <atomic> | |
// A lock-free stack. | |
// Push = single producer | |
// Pop = single consumer (same thread as push) | |
// Steal = multiple consumer | |
// All methods, including Push, may fail. Re-issue the request | |
// if that occurs (spinwait). |