This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
namespace Analogy | |
{ | |
/// <summary> | |
/// This example shows that a library that needs access to target .NET Standard 1.3 | |
/// can only access APIs available in that .NET Standard. Even though similar the APIs exist on .NET | |
/// Framework 4.5, it implements a version of .NET Standard that isn't compatible with the library. | |
/// </summary>INetCoreApp10 | |
class Example1 | |
{ | |
public void Net45Application(INetFramework45 platform) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
kubectl get pods | grep Evicted | awk '{print $1}' | xargs kubectl delete pod |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
kubectl get pods --all-namespaces | grep Evicted | awk '{print $2 " --namespace=" $1}' | xargs kubectl delete pod |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def call[A, B]( | |
a: A, | |
f: A => IO[(A, Option[B])], | |
n: (A, B) => IO[(A, Option[B])] | |
): Stream[IO, A] = { | |
def go(emit: A, next: B): Pull[IO, A, Unit] = { | |
Pull.output1(emit) >> Pull.eval(n(emit, next)).flatMap { | |
case (toEmit, Some(nxt)) => go(toEmit, nxt) | |
case (toEmit, _) => Pull.output1(toEmit) >> Pull.done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// SBT | |
name := "delete" | |
scalaVersion := "2.12.7" | |
libraryDependencies ++= Vector( | |
"co.fs2" %% "fs2-core" % "1.0.0", | |
"com.amazonaws" % "aws-java-sdk-s3" % "1.11.442" | |
) |