View cloudSettings
{"lastUpload":"2017-11-10T17:43:55.494Z","extensionVersion":"v2.8.5"}
View HtmlRequestMessageData.cs
class HtmlRequestMessageData
{
public readonly string Content;
public readonly HttpMethod Method;
public readonly Uri RequestUri;
[JsonConstructor]
HtmlRequestMessageData(HttpMethod method, Uri requestUri, string content)
{
this.Method = method;
View http-record-and-playback.cs
using System;
using System.Collections.Generic;
using System.Net;
using System.Net.Http;
using System.Threading;
using System.Threading.Tasks;
using FluentAssertions;
using Microsoft.VisualStudio.TestTools.UnitTesting;
class PlaybackHtmlMessageHandler : HttpClientHandler
View Get, Set, m_.cpp
class Size
{
int m_width;
int m_height;
public:
Size(int width, int height)
: m_width(width)
, m_height(height)
{}
View factorial steps.md
factorial ratio
1
2 2x
3 1.5x
5 1.7x
8 1.6x
13 1.6x
20 1.5x
40 2x
View perforce-current-synced-changelist.py
#!/usr/bin/env python
import argparse
from P4 import P4
p4 = P4()
p4.connect()
def main():
argparse.ArgumentParser(description="Verify that all files synced to the same changelist, and sets ERRORLEVEL to the count of unsynced files.").parse_args()
client = p4.fetch_client()['Client']
View assertion_traits_collections.h
namespace CPPUNIT_NS
{
template <template <typename...> class C, typename... T> struct assertion_traits<C<T...>>
{
inline static bool equal(C<T...> const& left, C<T...> const& right)
{
return std::equal(
left.cbegin(), left.cend(), right.cbegin(), assertion_traits<decltype(*(left.cbegin()))>::equal);
}
View BLOG:three kinds of code.md

I propose a refactoring "Extract Open Source Project".

We build software systems to some purpose. But when I read code, I see that some of that code directly serves that purpose while other code does not. I see three categories:

Features

This is the stuff you and your customers care about. It's the reason your software system exists.

In an e-commerce system, that's code that says "when a customer uses a discount code, the discount is applied to the order."

View INotifyPropertyChanged1.cs
public class MyViewModel : INotifyPropertyChanged
{
public event PropertyChangedEventHandler PropertyChanged = delegate {};
string _name;
public string Name
{
get { return _name; }
set
{
View assert_cards_are_sorted 1.cpp
vector<Card> cards = ...
for (i = 0; i < cards.length(); i++)
{
Assert(card[i].value == i % 13);
Assert(card[i].suit == i / 13);
}