From d2b59aa0d2e69b8deabc9f1f88f05eeb02ea509e Mon Sep 17 00:00:00 2001 From: anunda-nyagami Date: Thu, 12 May 2022 03:27:17 +0300 Subject: [PATCH 1/7] update README.md file --- README.md | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 2b135616d..2c3fbb261 100644 --- a/README.md +++ b/README.md @@ -1 +1,17 @@ -# code_snippets \ No newline at end of file +# code_snippets + +## [Atom Python](./Atom-Python) +## [Automation](./Automation) +## [Beautiful soup](./BeautifulSoup) +## [Pandas Tutorials](./Python/Pandas) +1. [Installation](./Python/Pandas/01-Installation) +2. [Dataframes](./Python/Pandas/02-DataFrames) +3. [Indexing](./Python/Pandas/03-Indexes) +4. [Filtering](./Python/Pandas/04-Filtering) +5. [Updating data](./Python/Pandas/05-Updating-Data) +6. [Adding and removing rows/columns](./Python/Pandas/06-Add-Remove-Rows-Columns) +7. [Sorting data](./Python/Pandas/07-Sorting-Data) +8. [Grouping and aggregating](./Python/Pandas/08-Grouping-Aggregates) +9. [Cleaning data](./Python/Pandas/09-Cleaning-Data) +10. [Datetime timeseries](./Python/Pandas/10-Datetime-Timeseries) +11. [Importing and exporting data](./Python/Pandas/11-Import-Export) From 5a00a996693d30febf9587e67f5b7351e1b4ef60 Mon Sep 17 00:00:00 2001 From: anunda-nyagami Date: Thu, 12 May 2022 03:43:36 +0300 Subject: [PATCH 2/7] Updates to the readme --- README.md | 24 ++++++++++++++++++++---- 1 file changed, 20 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 2c3fbb261..d57a0d842 100644 --- a/README.md +++ b/README.md @@ -1,9 +1,25 @@ # code_snippets -## [Atom Python](./Atom-Python) -## [Automation](./Automation) -## [Beautiful soup](./BeautifulSoup) -## [Pandas Tutorials](./Python/Pandas) +### [Atom Python](./Atom-Python) +### [Automation](./Automation) +### [Beautiful soup](./BeautifulSoup) +### [Closures](./Closure) +### [Combination permutations](./Combinations-Permutations) +### [Cron tasks](./Cron-Tasks) +### [Datetime](./Datetime) +### [Django Blog](./Django_Blog) +### [EAFP](./EAFP) +### [Exceptions](./Exceptions) +### [Ex-Machina](./Ex-Machina) +### [FC Functions](./FC_Functions) +### [For - Else](./For_Else) +### [Generators](./Generators) +### [Methods](./Idempotence) +### [List Comprehensions]() + + + +### [Pandas Tutorials](./Python/Pandas) 1. [Installation](./Python/Pandas/01-Installation) 2. [Dataframes](./Python/Pandas/02-DataFrames) 3. [Indexing](./Python/Pandas/03-Indexes) From 9b55601c9fdb3639060ad24bb92e19c3fa7a8df5 Mon Sep 17 00:00:00 2001 From: anunda-nyagami Date: Sun, 15 May 2022 21:16:09 +0300 Subject: [PATCH 3/7] Updated README.md file --- README.md | 80 ++++++++++++++++++++++++++++++++++++++++++++----------- 1 file changed, 64 insertions(+), 16 deletions(-) diff --git a/README.md b/README.md index d57a0d842..15b1e78f6 100644 --- a/README.md +++ b/README.md @@ -15,19 +15,67 @@ ### [For - Else](./For_Else) ### [Generators](./Generators) ### [Methods](./Idempotence) -### [List Comprehensions]() - - - -### [Pandas Tutorials](./Python/Pandas) -1. [Installation](./Python/Pandas/01-Installation) -2. [Dataframes](./Python/Pandas/02-DataFrames) -3. [Indexing](./Python/Pandas/03-Indexes) -4. [Filtering](./Python/Pandas/04-Filtering) -5. [Updating data](./Python/Pandas/05-Updating-Data) -6. [Adding and removing rows/columns](./Python/Pandas/06-Add-Remove-Rows-Columns) -7. [Sorting data](./Python/Pandas/07-Sorting-Data) -8. [Grouping and aggregating](./Python/Pandas/08-Grouping-Aggregates) -9. [Cleaning data](./Python/Pandas/09-Cleaning-Data) -10. [Datetime timeseries](./Python/Pandas/10-Datetime-Timeseries) -11. [Importing and exporting data](./Python/Pandas/11-Import-Export) +### [List Comprehensions](./List_Comp) +### [Logging Advanced](./Logging-Advanced) +### [Logging Basics](./Logging-Basics) +### [Memoization](./Memoization) +### [Mutable](./Mutable) +### [Named Tuples](./NamedTuples) +### [Object Oriented Programming](./Object-Oriented) +1. [First Classes](./Object-Oriented/1-FirstClasses) +2. [Class Instance Variables](./Object-Oriented/2-Class-Instance-Variables) +3. [Class Static Methods](./Object-Oriented/3-Class-Static-Methods) +4. [Inheritance](./Object-Oriented/4-Inheritance) +5. [Special Methods](./Object-Oriented/5-SpecialMethods) +6. [Property Decorators](./Object-Oriented/6-property-decorator) +### [Python](./Python) +1. [Emails](./Python/Emails) +2. [Flask Blog](./Python/Flask_Blog) + * [Getting Started](./Python/Flask_Blog/01-Getting-Started) + * [Templates](./Python/Flask_Blog/02-Templates) + * [Forms and Validation](./Python/Flask_Blog/03-Forms-and-Validation) + * [Database](./Python/Flask_Blog/04-Database) + * [Package Structure](./Python/Flask_Blog/05-Package-Structure) + * [Logging Auth](./Python/Flask_Blog/06-Login-Auth) + * [User Account Profile Picture](./Python/Flask_Blog/07-User-Account-Profile-Pic) + * [Posts](./Python/Flask_Blog/08-Posts) + * [Pagination](./Python/Flask_Blog/09-Pagination) + * [Password, Reset, Email](./Python/Flask_Blog/10-Password-Reset-Email) + * [Blueprints](./Python/Flask_Blog/11-Blueprints) + * [Error Pages](./Python/Flask_Blog/12-Error-Pages) + * [Deployment Linode](./Python/Flask_Blog/13-Deployment-Linode) +3. [Iterators](./Python/Iterators) +4. [Iterators Coding Problem](./Python/Iterators-Coding-Problem) +5. [Itertools](./Python/Itertools) +6. [Matplotlib](./Python/Matplotlib) + * [Introduction](./Python/Matplotlib/01-Introduction) + * [Bar Charts](./Python/Matplotlib/02-BarCharts) + * [Pie Charts](./Python/Matplotlib/03-PieCharts) + * [Stack Plots](./Python/Matplotlib/04-StackPlots) + * [Fill Betweens](./Python/Matplotlib/05-Fill_Betweens) + * [Histograms](./Python/Matplotlib/06-Histograms) + * [Scatter Plots](./Python/Matplotlib/07-ScatterPlots) + * [Time Series](./Python/Matplotlib/08-TimeSeries) + * [Live Data](./Python/Matplotlib/09-LiveData) + * [Subplots](./Python/Matplotlib/10-Subplots) +7. [Multiprocessing](./Python/MultiProcessing) +8. [Pandas](./Python/Pandas) + * [Installation](./Python/Pandas/01-Installation) + * [Dataframes](./Python/Pandas/02-DataFrames) + * [Indexing](./Python/Pandas/03-Indexes) + * [Filtering](./Python/Pandas/04-Filtering) + * [Updating data](./Python/Pandas/05-Updating-Data) + * [Adding and removing rows/columns](./Python/Pandas/06-Add-Remove-Rows-Columns) + * [Sorting data](./Python/Pandas/07-Sorting-Data) + * [Grouping and aggregating](./Python/Pandas/08-Grouping-Aggregates) + * [Cleaning data](./Python/Pandas/09-Cleaning-Data) + * [Datetime timeseries](./Python/Pandas/10-Datetime-Timeseries) + * [Importing and exporting data](./Python/Pandas/11-Import-Export) +9. [Pip Environment](./Python/Pipenv) +10. [Python Environment Variables](./Python/Python-Environment-Variables) +11. [Python Sets](./Python/Python-Sets) +12. [Requests - HTML](./Python/Requests-HTML) +13. [Site Monitor](./Python/Site-Monitor) +14. [Stack Overflow 2019](./Python/StackOverflow-2019) +15. [Threading](./Python/Threading) +16. [YouTube API](./Python/YouTube-API) From d5fb35c8474081e7615cae8a31fdf2e133bb2a6f Mon Sep 17 00:00:00 2001 From: anunda-nyagami Date: Sun, 15 May 2022 22:16:48 +0300 Subject: [PATCH 4/7] Update README.md --- README.md | 84 ++++++++++++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 83 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 2b135616d..63cd3406f 100644 --- a/README.md +++ b/README.md @@ -1 +1,83 @@ -# code_snippets \ No newline at end of file +# code_snippets +# code_snippets + +### [Atom Python](./Atom-Python) +### [Automation](./Automation) +### [Beautiful soup](./BeautifulSoup) +### [Closures](./Closure) +### [Combination permutations](./Combinations-Permutations) +### [Cron tasks](./Cron-Tasks) +### [Datetime](./Datetime) +### [Django Blog](./Django_Blog) +### [EAFP](./EAFP) +### [Exceptions](./Exceptions) +### [Ex-Machina](./Ex-Machina) +### [FC Functions](./FC_Functions) +### [For - Else](./For_Else) +### [Generators](./Generators) +### [Methods](./Idempotence) +### [List Comprehensions](./List_Comp) +### [Logging Advanced](./Logging-Advanced) +### [Logging Basics](./Logging-Basics) +### [Memoization](./Memoization) +### [Mutable](./Mutable) +### [Named Tuples](./NamedTuples) +### [Object Oriented Programming](./Object-Oriented) +1. [First Classes](./Object-Oriented/1-FirstClasses) +2. [Class Instance Variables](./Object-Oriented/2-Class-Instance-Variables) +3. [Class Static Methods](./Object-Oriented/3-Class-Static-Methods) +4. [Inheritance](./Object-Oriented/4-Inheritance) +5. [Special Methods](./Object-Oriented/5-SpecialMethods) +6. [Property Decorators](./Object-Oriented/6-property-decorator) +### [Python](./Python) +1. [Emails](./Python/Emails) +2. [Flask Blog](./Python/Flask_Blog) + * [Getting Started](./Python/Flask_Blog/01-Getting-Started) + * [Templates](./Python/Flask_Blog/02-Templates) + * [Forms and Validation](./Python/Flask_Blog/03-Forms-and-Validation) + * [Database](./Python/Flask_Blog/04-Database) + * [Package Structure](./Python/Flask_Blog/05-Package-Structure) + * [Logging Auth](./Python/Flask_Blog/06-Login-Auth) + * [User Account Profile Picture](./Python/Flask_Blog/07-User-Account-Profile-Pic) + * [Posts](./Python/Flask_Blog/08-Posts) + * [Pagination](./Python/Flask_Blog/09-Pagination) + * [Password, Reset, Email](./Python/Flask_Blog/10-Password-Reset-Email) + * [Blueprints](./Python/Flask_Blog/11-Blueprints) + * [Error Pages](./Python/Flask_Blog/12-Error-Pages) + * [Deployment Linode](./Python/Flask_Blog/13-Deployment-Linode) +3. [Iterators](./Python/Iterators) +4. [Iterators Coding Problem](./Python/Iterators-Coding-Problem) +5. [Itertools](./Python/Itertools) +6. [Matplotlib](./Python/Matplotlib) + * [Introduction](./Python/Matplotlib/01-Introduction) + * [Bar Charts](./Python/Matplotlib/02-BarCharts) + * [Pie Charts](./Python/Matplotlib/03-PieCharts) + * [Stack Plots](./Python/Matplotlib/04-StackPlots) + * [Fill Betweens](./Python/Matplotlib/05-Fill_Betweens) + * [Histograms](./Python/Matplotlib/06-Histograms) + * [Scatter Plots](./Python/Matplotlib/07-ScatterPlots) + * [Time Series](./Python/Matplotlib/08-TimeSeries) + * [Live Data](./Python/Matplotlib/09-LiveData) + * [Subplots](./Python/Matplotlib/10-Subplots) +7. [Multiprocessing](./Python/MultiProcessing) +8. [Pandas](./Python/Pandas) + * [Installation](./Python/Pandas/01-Installation) + * [Dataframes](./Python/Pandas/02-DataFrames) + * [Indexing](./Python/Pandas/03-Indexes) + * [Filtering](./Python/Pandas/04-Filtering) + * [Updating data](./Python/Pandas/05-Updating-Data) + * [Adding and removing rows/columns](./Python/Pandas/06-Add-Remove-Rows-Columns) + * [Sorting data](./Python/Pandas/07-Sorting-Data) + * [Grouping and aggregating](./Python/Pandas/08-Grouping-Aggregates) + * [Cleaning data](./Python/Pandas/09-Cleaning-Data) + * [Datetime timeseries](./Python/Pandas/10-Datetime-Timeseries) + * [Importing and exporting data](./Python/Pandas/11-Import-Export) +9. [Pip Environment](./Python/Pipenv) +10. [Python Environment Variables](./Python/Python-Environment-Variables) +11. [Python Sets](./Python/Python-Sets) +12. [Requests - HTML](./Python/Requests-HTML) +13. [Site Monitor](./Python/Site-Monitor) +14. [Stack Overflow 2019](./Python/StackOverflow-2019) +15. [Threading](./Python/Threading) +16. [YouTube API](./Python/YouTube-API) +### [Object Oriented Programming]() \ No newline at end of file From 8b0cfc5b27b326548b5e7bbdb120cd4787650246 Mon Sep 17 00:00:00 2001 From: anunda-nyagami Date: Sun, 15 May 2022 22:31:25 +0300 Subject: [PATCH 5/7] Update README.md file --- README.md | 48 ++++++++++++++++++++++++------------------------ 1 file changed, 24 insertions(+), 24 deletions(-) diff --git a/README.md b/README.md index f33d2b1df..029d3dc61 100644 --- a/README.md +++ b/README.md @@ -1,34 +1,34 @@ # code_snippets -### [Atom Python](./Atom-Python) -### [Automation](./Automation) -### [Beautiful soup](./BeautifulSoup) -### [Closures](./Closure) -### [Combination permutations](./Combinations-Permutations) -### [Cron tasks](./Cron-Tasks) -### [Datetime](./Datetime) -### [Django Blog](./Django_Blog) -### [EAFP](./EAFP) -### [Exceptions](./Exceptions) -### [Ex-Machina](./Ex-Machina) -### [FC Functions](./FC_Functions) -### [For - Else](./For_Else) -### [Generators](./Generators) -### [Methods](./Idempotence) -### [List Comprehensions](./List_Comp) -### [Logging Advanced](./Logging-Advanced) -### [Logging Basics](./Logging-Basics) -### [Memoization](./Memoization) -### [Mutable](./Mutable) -### [Named Tuples](./NamedTuples) -### [Object Oriented Programming](./Object-Oriented) +#### [Atom Python](./Atom-Python) +#### [Automation](./Automation) +#### [Beautiful soup](./BeautifulSoup) +#### [Closures](./Closure) +#### [Combination permutations](./Combinations-Permutations) +#### [Cron tasks](./Cron-Tasks) +#### [Datetime](./Datetime) +#### [Django Blog](./Django_Blog) +#### [EAFP](./EAFP) +#### [Exceptions](./Exceptions) +#### [Ex-Machina](./Ex-Machina) +#### [FC Functions](./FC_Functions) +#### [For - Else](./For_Else) +#### [Generators](./Generators) +#### [Methods](./Idempotence) +#### [List Comprehensions](./List_Comp) +#### [Logging Advanced](./Logging-Advanced) +#### [Logging Basics](./Logging-Basics) +#### [Memoization](./Memoization) +#### [Mutable](./Mutable) +#### [Named Tuples](./NamedTuples) +#### [Object Oriented Programming](./Object-Oriented) 1. [First Classes](./Object-Oriented/1-FirstClasses) 2. [Class Instance Variables](./Object-Oriented/2-Class-Instance-Variables) 3. [Class Static Methods](./Object-Oriented/3-Class-Static-Methods) 4. [Inheritance](./Object-Oriented/4-Inheritance) 5. [Special Methods](./Object-Oriented/5-SpecialMethods) 6. [Property Decorators](./Object-Oriented/6-property-decorator) -### [Python](./Python) +#### [Python](./Python) 1. [Emails](./Python/Emails) 2. [Flask Blog](./Python/Flask_Blog) * [Getting Started](./Python/Flask_Blog/01-Getting-Started) @@ -79,4 +79,4 @@ 14. [Stack Overflow 2019](./Python/StackOverflow-2019) 15. [Threading](./Python/Threading) 16. [YouTube API](./Python/YouTube-API) -### [Object Oriented Programming]() \ No newline at end of file +#### [Object Oriented Programming]() \ No newline at end of file From fe6a3d1a36db2cb6afdfe5578f2c736f49ec377d Mon Sep 17 00:00:00 2001 From: anunda-nyagami Date: Wed, 18 May 2022 18:57:29 +0300 Subject: [PATCH 6/7] Updated README.md with links. Edited string interpolation folder name by adding a dash between the two words --- README.md | 29 ++++++++++++++++++++++++++++- String Interpolation/test.py | 9 --------- 2 files changed, 28 insertions(+), 10 deletions(-) delete mode 100644 String Interpolation/test.py diff --git a/README.md b/README.md index 029d3dc61..0764d0eb9 100644 --- a/README.md +++ b/README.md @@ -79,4 +79,31 @@ 14. [Stack Overflow 2019](./Python/StackOverflow-2019) 15. [Threading](./Python/Threading) 16. [YouTube API](./Python/YouTube-API) -#### [Object Oriented Programming]() \ No newline at end of file +#### [Python Conditionals](./Python-Conditionals) +#### [Python Context Managers](./Python-Context-Managers) +#### [Python CSV](./Python-CSV) +#### [Python Decorator Arguments](./Python-Decorator-Arguments) +#### [Python Dictionaries](./Python-Dicts) +#### [Python Files](./Python-Files) +#### [Python Functions](./Python-Functions) + +#### [Python Future Date](./Python-Future-Date) +#### [Python Imports](./Python-Imports) +#### [Python Integers](./Python-Ints) +#### [Python JSON](./Python-JSON) +#### [Python Lists](./Python-Lists) +#### [Python Loops](./Python-Loops) +#### [Python Patreon CSV](./Python-Patreon-CSV) +#### [Python Random](./Python-Random) +#### [Python Regular Expressions](./Python-Regular-Expressions) +#### [Python SQLite](./Python-SQLite) +#### [Python Strings](./Python-Strings) +#### [Python Unit Testing](./Python-Unit-Testing) +#### [Regular Expressions](./Regular-Expressions) +#### [Scope](./Scope) +#### [Slicing](./Slicing) +#### [Starting Code](./Starting_Code) +#### [String Interpolation](./String-Interpolation) +#### [String Formatting](./String-Formatting) +#### [String Representation](./Str_Repr) +#### [Terminal](./Terminal) diff --git a/String Interpolation/test.py b/String Interpolation/test.py deleted file mode 100644 index 4162dd97d..000000000 --- a/String Interpolation/test.py +++ /dev/null @@ -1,9 +0,0 @@ -name = 'Corey' -age = 28 - -# greeting = 'My name is ' + name + ' and I am ' + str(age) + ' years old' - -greeting = 'I am {age} years old and my name is {name}'.format(name=name, age=age) - -print greeting - From 0e3a68c89a7c6b66ccef9a2ae5249e1b4ee6739f Mon Sep 17 00:00:00 2001 From: anunda-nyagami Date: Wed, 18 May 2022 18:58:53 +0300 Subject: [PATCH 7/7] Updated string interpolation folder name --- String-Interpolation/test.py | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 String-Interpolation/test.py diff --git a/String-Interpolation/test.py b/String-Interpolation/test.py new file mode 100644 index 000000000..4162dd97d --- /dev/null +++ b/String-Interpolation/test.py @@ -0,0 +1,9 @@ +name = 'Corey' +age = 28 + +# greeting = 'My name is ' + name + ' and I am ' + str(age) + ' years old' + +greeting = 'I am {age} years old and my name is {name}'.format(name=name, age=age) + +print greeting +