From c076b32aa6aad6b3c84b16686eaade267ddea72a Mon Sep 17 00:00:00 2001 From: lazargugleta Date: Thu, 26 Sep 2019 21:00:22 +0200 Subject: [PATCH] remove unnecessary snippets --- README.md | 48 ----------------------------------- snippet_data/snippetList.json | 32 ----------------------- snippet_data/snippets.json | 42 ------------------------------ snippets/is_lower_case.md | 19 -------------- snippets/is_upper_case.md | 19 -------------- 5 files changed, 160 deletions(-) delete mode 100644 snippets/is_lower_case.md delete mode 100644 snippets/is_upper_case.md diff --git a/README.md b/README.md index 4d86268fd..d525798d3 100644 --- a/README.md +++ b/README.md @@ -116,8 +116,6 @@ * [`capitalize_every_word`](#capitalize_every_word) * [`decapitalize`](#decapitalize) * [`is_anagram`](#is_anagram) -* [`is_lower_case`](#is_lower_case) -* [`is_upper_case`](#is_upper_case) * [`kebab`](#kebab) * [`palindrome`](#palindrome) * [`snake`](#snake) @@ -1760,52 +1758,6 @@ is_anagram("anagram", "Nag a ram") # True
[⬆ Back to top](#contents) -### is_lower_case - -Checks if a string is lower case. - -Convert the given string to lower case, using `str.lower()` and compare it to the original. - -```py -def is_lower_case(string): - return string == string.lower() -``` - -
-Examples - -```py -is_lower_case('abc') # True -is_lower_case('a3@$') # True -is_lower_case('Ab4') # False -``` -
- -
[⬆ Back to top](#contents) - -### is_upper_case - -Checks if a string is upper case. - -Convert the given string to upper case, using `str.upper()` and compare it to the original. - -```py -def is_upper_case(string): - return string == string.upper() -``` - -
-Examples - -```py -is_upper_case('ABC') # True -is_upper_case('a3@$') # False -is_upper_case('aB4') # False -``` -
- -
[⬆ Back to top](#contents) - ### kebab Converts a string to kebab case. diff --git a/snippet_data/snippetList.json b/snippet_data/snippetList.json index 1b820d3da..a56b243cd 100644 --- a/snippet_data/snippetList.json +++ b/snippet_data/snippetList.json @@ -629,22 +629,6 @@ "hash": "354d3fcfa67b5df106c0ff528246bfacd2d7cec4942a7c3a904d87e76d7dae11" } }, - { - "id": "is_lower_case", - "type": "snippetListing", - "title": "is_lower_case", - "attributes": { - "text": "Checks if a string is lower case.\n\nConvert the given string to lower case, using `str.lower()` and compare it to the original.\n\n", - "tags": [ - "string", - "utility", - "beginner" - ] - }, - "meta": { - "hash": "ed6b313aaf87ba7ea9515679eea19f395f7bbd90b9f8b85ef54ca527115fa690" - } - }, { "id": "is_odd", "type": "snippetListing", @@ -660,22 +644,6 @@ "hash": "261771aa5fd9c9dcb60dd93c29afce0de3a51c505e474fa7c76789a1e0d8f5c8" } }, - { - "id": "is_upper_case", - "type": "snippetListing", - "title": "is_upper_case", - "attributes": { - "text": "Checks if a string is upper case.\n\nConvert the given string to upper case, using `str.upper()` and compare it to the original.\n\n", - "tags": [ - "string", - "utility", - "beginner" - ] - }, - "meta": { - "hash": "106225722752b199f974c06aec91721344499e46dbf643e9f2ce990ee8c2d3c1" - } - }, { "id": "kebab", "type": "snippetListing", diff --git a/snippet_data/snippets.json b/snippet_data/snippets.json index 86d9aa1af..d6d6078e9 100644 --- a/snippet_data/snippets.json +++ b/snippet_data/snippets.json @@ -834,27 +834,6 @@ "hash": "354d3fcfa67b5df106c0ff528246bfacd2d7cec4942a7c3a904d87e76d7dae11" } }, - { - "id": "is_lower_case", - "title": "is_lower_case", - "type": "snippet", - "attributes": { - "fileName": "is_lower_case.md", - "text": "Checks if a string is lower case.\n\nConvert the given string to lower case, using `str.lower()` and compare it to the original.\n\n", - "codeBlocks": { - "code": "def is_lower_case(string):\n return string == string.lower()", - "example": "is_lower_case('abc') # True\nis_lower_case('a3@$') # True\nis_lower_case('Ab4') # False" - }, - "tags": [ - "string", - "utility", - "beginner" - ] - }, - "meta": { - "hash": "ed6b313aaf87ba7ea9515679eea19f395f7bbd90b9f8b85ef54ca527115fa690" - } - }, { "id": "is_odd", "title": "is_odd", @@ -875,27 +854,6 @@ "hash": "261771aa5fd9c9dcb60dd93c29afce0de3a51c505e474fa7c76789a1e0d8f5c8" } }, - { - "id": "is_upper_case", - "title": "is_upper_case", - "type": "snippet", - "attributes": { - "fileName": "is_upper_case.md", - "text": "Checks if a string is upper case.\n\nConvert the given string to upper case, using `str.upper()` and compare it to the original.\n\n", - "codeBlocks": { - "code": "def is_upper_case(string):\n return string == string.upper()", - "example": "is_upper_case('ABC') # True\nis_upper_case('a3@$') # False\nis_upper_case('aB4') # False" - }, - "tags": [ - "string", - "utility", - "beginner" - ] - }, - "meta": { - "hash": "106225722752b199f974c06aec91721344499e46dbf643e9f2ce990ee8c2d3c1" - } - }, { "id": "kebab", "title": "kebab", diff --git a/snippets/is_lower_case.md b/snippets/is_lower_case.md deleted file mode 100644 index a2c4a5b59..000000000 --- a/snippets/is_lower_case.md +++ /dev/null @@ -1,19 +0,0 @@ ---- -title: is_lower_case -tags: string,utility,beginner ---- - -Checks if a string is lower case. - -Convert the given string to lower case, using `str.lower()` and compare it to the original. - -```py -def is_lower_case(string): - return string == string.lower() -``` - -```py -is_lower_case('abc') # True -is_lower_case('a3@$') # True -is_lower_case('Ab4') # False -``` \ No newline at end of file diff --git a/snippets/is_upper_case.md b/snippets/is_upper_case.md deleted file mode 100644 index 33492c96d..000000000 --- a/snippets/is_upper_case.md +++ /dev/null @@ -1,19 +0,0 @@ ---- -title: is_upper_case -tags: string,utility,beginner ---- - -Checks if a string is upper case. - -Convert the given string to upper case, using `str.upper()` and compare it to the original. - -```py -def is_upper_case(string): - return string == string.upper() -``` - -```py -is_upper_case('ABC') # True -is_upper_case('a3@$') # False -is_upper_case('aB4') # False -```