From 9b07497281cfc29b17c69249f939bcab918ede28 Mon Sep 17 00:00:00 2001 From: LeonardoGaldino Date: Wed, 30 May 2018 11:58:40 -0300 Subject: [PATCH 01/10] Fix bug on zip snippet --- snippets/zip.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/snippets/zip.md b/snippets/zip.md index 2260bc926..bcb5567cd 100644 --- a/snippets/zip.md +++ b/snippets/zip.md @@ -12,7 +12,7 @@ def zip(*args, fillvalue=None): result = [] for i in range(max_length): result.append([ - args[k][i] if i < len(args[k]) else None for k in range(len(args)) + args[k][i] if i < len(args[k]) else fillvalue for k in range(len(args)) ]) return result ``` From 72dc5c3d55854abcb029c1f8bd6e51685601f6e1 Mon Sep 17 00:00:00 2001 From: LeonardoGaldino Date: Wed, 30 May 2018 16:23:42 -0300 Subject: [PATCH 02/10] Adds my reference to contributor database file --- contributor_database | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contributor_database b/contributor_database index 66bbf0288..1bfea8af6 100644 --- a/contributor_database +++ b/contributor_database @@ -12,7 +12,7 @@ max_n:[Rohit Tanwar](@kriadmin) min_n:[Rohit Tanwar](@kriadmin) shuffle:[Rohit Tanwar](@kriadmin) spread:[Rohit Tanwar](@kriadmin) -zip:[Rohit Tanwar](@kriadmin) +zip:[Rohit Tanwar](@kriadmin),[Leonardo Galdino](@LeonardoGaldino) byte_size:[Rohit Tanwar](@kriadmin) capitalize:[Rohit Tanwar](@kriadmin) capitalize_every_word:[Rohit Tanwar](@kriadmin) From b038f6729d5fcf3d9d6c21dc6fe8907287898708 Mon Sep 17 00:00:00 2001 From: Siddhant Agrawal Date: Sun, 7 Oct 2018 11:38:21 -0700 Subject: [PATCH 03/10] Update byte_size.md The original description was slightly misleading by saying that utf-8 will encode and find the length, whereas in reality the length was produced by len. --- snippets/byte_size.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/snippets/byte_size.md b/snippets/byte_size.md index faa8ba5fd..7f34b08df 100644 --- a/snippets/byte_size.md +++ b/snippets/byte_size.md @@ -2,7 +2,7 @@ Returns the length of a string in bytes. -`utf-8` encodes a given string and find its length. +`utf-8` encodes a given string, then `len` finds the length of the encoded string. ```python def byte_size(string): @@ -12,4 +12,4 @@ def byte_size(string): ```python byte_size('😀') # 4 byte_size('Hello World') # 11 -``` \ No newline at end of file +``` From 35dde71727d77f0c33f4b2bb7a445e1fcaa8c2b3 Mon Sep 17 00:00:00 2001 From: Arjun Mahishi Date: Tue, 9 Oct 2018 21:30:37 +0530 Subject: [PATCH 04/10] Fixed typo in --- CONTRIBUTING.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 565f60ef4..df049882b 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -39,7 +39,7 @@ Here's what you can do to help: - You can start creating a new snippet, by using the [snippet template](snippet_template.md) to format your snippets. - Updating the README.md file should only be done by altering the scripts in the **scripts** folder or altering their relative static parts in the **static-parts** folder. - You may tag your snippet in tag_databse although it is _not_ necessary. -- You may add your name as `[Name][@github_username]` to the contributor database. If the snippet already exists and you are making changes to it you can add your name at the laste seperated by a comma. +- You may add your name as `[Name][@github_username]` to the contributor database. If the snippet already exists and you are making changes to it you can add your name at the last seperated by a comma.