Skip to content

Instantly share code, notes, and snippets.

using System;
using System.Net;
using System.Net.Http;
using System.Threading.Tasks;
namespace HttpClientTest.Class
{
public interface ICallTheInternet
{
public Task<bool> GetWithNamedClient(string clientName, string url, HttpStatusCode expectedStatusCode);
using System.Net;
using System.Net.Http;
using System.Threading;
using System.Threading.Tasks;
using FluentAssertions;
using HttpClientTest.Class;
using Moq;
using Xunit;
namespace HttpClientTest.Tests
import React from 'react';
import { fireEvent, render, screen } from '@testing-library/react';
import TextField from '@material-ui/core/TextField';
describe("TextField onChange demo", () => {
it.each`
initialValue | changeValue
${"test"} | ${"changed"}
${"test"} | ${"test"}
`("given a text field with initial value '$initialValue' when changed to '$changeValue' then the onChange handler should be called", ({ initialValue, changeValue }) => {
import React, { Component } from 'react';
import PropTypes from 'prop-types';
export const withProbabilityInputValidation = (WrappedComponent) => {
class ProbabilityInputValidation extends Component {
constructor(props) {
super(props);
this.state = {
isValid: true
};
import React, { Component } from 'react';
import PropTypes from 'prop-types';
export const withProbabilityInputValidation = (WrappedComponent) => {
class ProbabilityInputValidation extends Component {
constructor(props) {
super(props);
this.state = {
isValid: true
};
// This file was initially generated by Windows Terminal 1.2.2381.0
// It should still be usable in newer versions, but newer versions might have additional
// settings, help text, or changes that you will not see unless you clear this file
// and let us generate a new one for you.
// To view the default settings, hold "alt" while clicking on the "Settings" button.
// For documentation on these settings, see: https://aka.ms/terminal-documentation
{
"$schema": "https://aka.ms/terminal-profiles-schema",
@steve-codemunkies
steve-codemunkies / profiles.json
Created December 20, 2019 09:05
Windows Terminal Profile
// To view the default settings, hold "alt" while clicking on the "Settings" button.
// For documentation on these settings, see: https://aka.ms/terminal-documentation
{
"$schema": "https://aka.ms/terminal-profiles-schema",
"defaultProfile": "{574e775e-4f2a-5b96-ac1e-a2962a402336}",
"initialCols": 150,

Keybase proof

I hereby claim:

  • I am steve-codemunkies on github.
  • I am stevehocking (https://keybase.io/stevehocking) on keybase.
  • I have a public key ASABXYgdHaSXvdElbMBzGh8MkYHEGP2IwnIJ4ba3pg4-fgo

To claim this, I am signing this object:

var counter = new PerformanceCounter("MyCategory", "AverageOperationTime", false);
var baseCounter = new PerformanceCounter("MyCategory", "AverageOperationTimeBase", false);
var start = Stopwatch.GetTimestamp();
Thread.Sleep(500);
counter.IncrementBy(Stopwatch.GetTimestamp() - start);
baseCounter.Increment();
var username = "some.user.name";
var password = "some.password";
var entry = new DirectoryEntry("LDAP://rootDSE", username, password);
var nativeObject = entry.NativeObject;