Warm-up 10 minutes. Build up from easy to a steady pace for a few minutes.
Cadence pyramids Do the following progression two to three times with 10 minutes of easy/steady riding in between:
- 100 r.p.m.
- 105 r.p.m.
- 110 r.p.m.
- 115 r.p.m.
- 120 r.p.m.
using System; | |
using System.Text; | |
using System.Text.RegularExpressions; | |
using System.IO; | |
namespace KlerksSoft | |
{ | |
public static class TextFileEncodingDetector | |
{ | |
/* |
// In order to inject dependencies through constructor parameters, | |
// use greedy constructor selection (versus modest constructor query/ModestConstructorQuery) | |
// http://blog.ploeh.dk/2011/04/19/ConstructorstrategiesforAutoFixture/ | |
// | |
// OmitAutoProperties to stop it from mocking out properties | |
// See https://github.com/AutoFixture/AutoFixture/issues/320 for combo of GreedyConstructorQuery and OmitAutoProperties | |
AutoFixture.Customize<T>(c => c.FromFactory(new MethodInvoker(new GreedyConstructorQuery())).OmitAutoProperties()); | |
// Trace construction of objects | |
AutoFixture.Behaviors.Add(new TracingBehavior()); |
Warm-up 10 minutes. Build up from easy to a steady pace for a few minutes.
Cadence pyramids Do the following progression two to three times with 10 minutes of easy/steady riding in between:
https://social.msdn.microsoft.com/Forums/azure/en-US/afbfb7b3-92c9-4af6-9128-ba96795de5a6/not-able-to-delete-b2c-tenant?forum=WindowsAzureAD | |
Please follow the following steps: | |
Create Temporary Admin Account | |
1. Open a browser and login to https://manage.windowsazure.com | |
2. In the left hand menu navigate to Active Directory, and select your directory | |
3. Click Users and Groups > Add User | |
4. Create this user with a username of [email protected] and be sure to grant this user the role Global Administrator |
GUIDE TIL PÅKLÆDNING - CYKLING
OM "GUIDE TIL PÅKLÆDNING" Denne guide er til dig, der er lidt usikker på, hvordan man skal klæde sig på til en tur på raceren i efteråret og de tidlige vintermåneder. Får man for lidt tøj på kan turen næsten være ødelagt inden man kommer i gang og får man for meget tøj på føler man sig som en svedende russer i en sauna. Læs med og få styr på temperaturen og udstyret!
/// <summary> | |
/// PermissionsAttribute class | |
/// </summary> | |
public class PermissionsAttribute : AuthorizeAttribute | |
{ | |
/// <summary> | |
/// Gets called on authorization | |
/// </summary> | |
/// <param name="actionContext"></param> | |
public override void OnAuthorization(System.Web.Http.Controllers.HttpActionContext actionContext) |
// ========================================================== | |
// The real resource | |
class InternalResource { | |
public void DoSomething() { } | |
} | |
// ========================================================== | |
// The external wrapper returned to the consumer | |
class MyResource : IDisposable { | |
private PoolItem<InternalResource> _poolItem; |
public class DTO : SerializableDynamicObject | |
{ | |
[Required] | |
public DTOEventType EventType | |
{ | |
get { return GetValue<DTOEventType>(nameof(EventType)); } | |
set { SetValue(nameof(EventType), value); } | |
} | |
} |
[Fact] | |
public void WithAutoFixture() | |
{ | |
var fixture = new Fixture(); | |
fixture.Customize(new AutoMoqCustomization()); // set up automocking | |
var dependency1stub = fixture.Freeze<Mock<IDependecy1>>(); | |
var dependency2mock = fixture.Freeze<Mock<IDependecy2>>(); | |
dependency1stub.Setup(x => x.SomeQuery()).Returns(2); | |
Delete a Git branch both locally and remotely | |
To delete any branch from VSO, you have to enable Alternate Authentication Credentials | |
Open VSO web browser. | |
Click on your name in the top right | |
Click on My Profile | |
Click on Credentials | |
Configure Alternate Authentication Credentials | |
Now open Visual Studio | |
Connect VSO. | |
Click on Team Explorer |