One Paragraph of project description goes here
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.
@ECHO off | |
:top | |
CLS | |
ECHO Choose a shell: | |
ECHO [1] cmd | |
ECHO [2] bash | |
ECHO [3] PowerShell | |
ECHO [4] Python | |
ECHO. | |
ECHO [5] restart elevated |
function Get-NumberRange | |
{ | |
[cmdletbinding()] | |
Param() | |
DynamicParam { | |
$Dictionary = New-Object System.Management.Automation.RuntimeDefinedParameterDictionary | |
$NewDynParam = @{ | |
Name = "Firstnumber" | |
Alias = "int" |
System.ArgumentNullExceptionValue cannot be null. | |
Parameter name: type | |
at System.Activator.CreateInstance(Type type, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes) | |
at System.Activator.CreateInstance(Type type, Object[] args) | |
at Refit.RestService.For(HttpClient client) in y:\code\paulcbetts\refit\Refit\RestService.cs: line 24 |
(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
// Licensed under the MIT license with <3 by GitHub | |
/// <summary> | |
/// An exponential back off strategy which starts with 1 second and then 4, 9, 16... | |
/// </summary> | |
[SuppressMessage("Microsoft.Security", "CA2104:DoNotDeclareReadOnlyMutableReferenceTypes")] | |
public static readonly Func<int, TimeSpan> ExponentialBackoff = n => TimeSpan.FromSeconds(Math.Pow(n, 2)); | |
/// <summary> | |
/// Returns a cold observable which retries (re-subscribes to) the source observable on error up to the |
/* | |
* This work is free. You can redistribute it and/or modify it under the | |
* terms of the Do What The Fuck You Want To Public License, Version 2, | |
* as published by Sam Hocevar. See the COPYING file for more details. | |
*/ | |
/* | |
* Easing Functions - inspired from http://gizma.com/easing/ | |
* only considering the t value for the range [0, 1] => [0, 1] | |
*/ | |
EasingFunctions = { |