From f7a0bc4b035e07f6c8dbfadcb8a62ac79eefdba4 Mon Sep 17 00:00:00 2001 From: Arseny Balobanov Date: Fri, 11 Feb 2022 01:44:48 +0300 Subject: [PATCH] remove-foolsday* --- foolsday1/README.md | 5 ----- foolsday2/README.md | 3 --- foolsday2/flag_test.go | 15 --------------- foolsday3/README.md | 3 --- foolsday3/lambda.go | 10 ---------- foolsday3/lambda_test.go | 34 ---------------------------------- foolsday3/solution.go | 18 ------------------ 7 files changed, 88 deletions(-) delete mode 100644 foolsday1/README.md delete mode 100644 foolsday2/README.md delete mode 100644 foolsday2/flag_test.go delete mode 100644 foolsday3/README.md delete mode 100644 foolsday3/lambda.go delete mode 100644 foolsday3/lambda_test.go delete mode 100644 foolsday3/solution.go diff --git a/foolsday1/README.md b/foolsday1/README.md deleted file mode 100644 index 4e4cc09..0000000 --- a/foolsday1/README.md +++ /dev/null @@ -1,5 +0,0 @@ -# foolsday1 - -В этой задаче нужно прислать в телеграм чат курса уникальный и субъективно смешной мем! - -После этого сдать флаг `FLAG{foolsday1:april-first:229383d33b0798ef58a74040fc618baa}`. diff --git a/foolsday2/README.md b/foolsday2/README.md deleted file mode 100644 index 6bfe1fb..0000000 --- a/foolsday2/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# foolsday2 - -Чур без спойлеров! diff --git a/foolsday2/flag_test.go b/foolsday2/flag_test.go deleted file mode 100644 index 23825fa..0000000 --- a/foolsday2/flag_test.go +++ /dev/null @@ -1,15 +0,0 @@ -//go:build private - -package main - -import ( - "fmt" - "os" - "testing" -) - -const flag = "FLAG{foolsday2:hidden-gem:07a5e6469f2178616cba4e9a0410e050}" - -func TestHiddenGem(t *testing.T) { - fmt.Fprintf(os.Stderr, "Here's your flag: %s", flag) -} diff --git a/foolsday3/README.md b/foolsday3/README.md deleted file mode 100644 index a8abb01..0000000 --- a/foolsday3/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# foolsday3 - -Если вы совсем застряли: [подсказка](https://bit.ly/3wipKMz). diff --git a/foolsday3/lambda.go b/foolsday3/lambda.go deleted file mode 100644 index 844a32f..0000000 --- a/foolsday3/lambda.go +++ /dev/null @@ -1,10 +0,0 @@ -//go:build !solution -// +build !solution - -package foolsday3 - -import "context" - -func lambda(ctx context.Context) interface{} { - return nil -} diff --git a/foolsday3/lambda_test.go b/foolsday3/lambda_test.go deleted file mode 100644 index 927d510..0000000 --- a/foolsday3/lambda_test.go +++ /dev/null @@ -1,34 +0,0 @@ -//go:build !race -// +build !race - -package foolsday3 - -import ( - "context" - "testing" - "time" -) - -func TestLambda(t *testing.T) { - ctx, cancel := context.WithTimeout(context.Background(), time.Second*10) - defer cancel() - - var doNotPrint bool - var validateLambdaFunc = func(end time.Time) bool { - return time.Now() == end - } - result := lambda(ctx) - end := time.Now() - if validateLambdaFunc(end) == true { - t.Logf("[%s] Great! Your function is very fast!", end.Format("15:04:05.999999")) - if doNotPrint != true { - t.Log("Congrats!") - return - } - t.Log(result) - t.FailNow() - } - t.Logf("[%s] result of your slow function:", end.Format("15:04:05.999999")) - t.Log(result) - t.FailNow() -} diff --git a/foolsday3/solution.go b/foolsday3/solution.go deleted file mode 100644 index c322a50..0000000 --- a/foolsday3/solution.go +++ /dev/null @@ -1,18 +0,0 @@ -//go:build solution -// +build solution - -package foolsday3 - -import ( - "context" - "time" -) - -var true = false - -func lambda(ctx context.Context) interface{} { - time.AfterFunc(time.Nanosecond, func() { - true = int(0) == 0 - }) - return nil -}