Skip to content

Commit

Permalink
Unlist the entirety of Python
Browse files Browse the repository at this point in the history
  • Loading branch information
Chalarangelo committed Sep 23, 2024
1 parent d58c0d3 commit f2c937b
Show file tree
Hide file tree
Showing 47 changed files with 47 additions and 47 deletions.
2 changes: 1 addition & 1 deletion content/snippets/python/s/6-f-strings-tips.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ language: python
tags: [string]
cover: sea-view
excerpt: Python's f-strings can do a lot more than you might expect. Learn a few useful tips and tricks in this quick guide.
listed: true
listed: false
dateModified: 2021-07-20
---

Expand Down
2 changes: 1 addition & 1 deletion content/snippets/python/s/bare-except.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ language: python
tags: [error]
cover: dark-cloud
excerpt: It's generally not a good idea to use bare `except` clause in Python, but do you know why?
listed: true
listed: false
dateModified: 2022-02-20
---

Expand Down
2 changes: 1 addition & 1 deletion content/snippets/python/s/binomial-coefficient.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ language: python
tags: [math]
cover: digital-nomad-5
excerpt: Calculate the number of ways to choose `k` items from `n` items without repetition and without order.
listed: true
listed: false
dateModified: 2024-05-09
---

Expand Down
2 changes: 1 addition & 1 deletion content/snippets/python/s/byte-size.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ language: python
tags: [string]
cover: river-house-lights
excerpt: Find the byte size of a Python string, containing special characters or not.
listed: true
listed: false
dateModified: 2024-08-16
---

Expand Down
2 changes: 1 addition & 1 deletion content/snippets/python/s/chunk-list.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ language: python
tags: [list]
cover: succulent-10
excerpt: Chunks a list into a set amount of smaller lists or into lists of a specified size.
listed: true
listed: false
dateModified: 2024-07-17
---

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ language: python
tags: [list,performance]
cover: walking-on-top
excerpt: Writing efficient Python code can be tricky. Read how we optimize our list snippets to increase performance using a couple of simple tricks.
listed: true
listed: false
dateModified: 2021-11-07
---

Expand Down
2 changes: 1 addition & 1 deletion content/snippets/python/s/collect-dictionary.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ language: python
tags: [dictionary]
cover: working-bee
excerpt: Invert a dictionary with non-unique hashable values.
listed: true
listed: false
dateModified: 2024-05-08
---

Expand Down
2 changes: 1 addition & 1 deletion content/snippets/python/s/date-difference.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ language: python
tags: [date]
cover: succulent-9
excerpt: Calculates the day, month, or year difference between two dates.
listed: true
listed: false
dateModified: 2024-07-16
---

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ language: python
tags: [date]
cover: cup-of-orange
excerpt: Calculate dates relative to today or a given date by adding or subtracting days.
listed: true
listed: false
dateModified: 2024-05-19
---

Expand Down
2 changes: 1 addition & 1 deletion content/snippets/python/s/dict-getkey-vs-dictkey.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ language: python
tags: [dictionary]
cover: compass-2
excerpt: Learn the difference between two common ways to access values in Python dictionaries and level up your code today.
listed: true
listed: false
dateModified: 2021-06-12
---

Expand Down
2 changes: 1 addition & 1 deletion content/snippets/python/s/dictionary-to-list.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ language: python
tags: [dictionary,list]
cover: new-york
excerpt: Convert a dictionary to a list of tuples and vice versa.
listed: true
listed: false
dateModified: 2024-07-04
---

Expand Down
2 changes: 1 addition & 1 deletion content/snippets/python/s/empty-list.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ language: python
tags: [list]
cover: salad-2
excerpt: There's a good way to test the emptiness of a Python list and a better one. Which one are you using?
listed: true
listed: false
dateModified: 2023-01-15
---

Expand Down
2 changes: 1 addition & 1 deletion content/snippets/python/s/file-close.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ language: python
tags: [file]
cover: flower-pond
excerpt: When working with files in Python, it's important to ensure that the file is closed correctly. Here are a couple of ways to do that.
listed: true
listed: false
dateModified: 2022-02-03
---

Expand Down
2 changes: 1 addition & 1 deletion content/snippets/python/s/filter-unique.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ language: python
tags: [list]
cover: feathers
excerpt: Filter unique or non-unique values from a list using `collections.Counter`.
listed: true
listed: false
dateModified: 2024-06-14
---

Expand Down
2 changes: 1 addition & 1 deletion content/snippets/python/s/find-matches-list-dictionary.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ language: python
tags: [list,dictionary]
cover: tree-roots
excerpt: Learn how to find the matching values, indexes or keys in a list or dictionary.
listed: true
listed: false
dateModified: 2024-08-20
---

Expand Down
2 changes: 1 addition & 1 deletion content/snippets/python/s/first-last-initial-head-tail.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ language: python
tags: [list]
cover: pop-of-green
excerpt: Learn how to perform some very common operations on Python lists, such as getting the first, last, initial, head, and tail elements.
listed: true
listed: false
dateModified: 2024-05-15
---

Expand Down
2 changes: 1 addition & 1 deletion content/snippets/python/s/fstrings-str-format.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ language: python
tags: [string]
cover: feathers
excerpt: Learn two ways to format a string in Python with this quick tip.
listed: true
listed: false
dateModified: 2021-06-12
---

Expand Down
2 changes: 1 addition & 1 deletion content/snippets/python/s/hamming-distance.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ language: python
tags: [math]
cover: tulips-and-reeds
excerpt: Learn how to calculate the Hamming distance between two values.
listed: true
listed: false
dateModified: 2024-05-11
---

Expand Down
2 changes: 1 addition & 1 deletion content/snippets/python/s/hex-to-rgb.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ language: python
tags: [string,math]
cover: sleepy-cat
excerpt: Converts a hexadecimal color code to a tuple of integers corresponding to its RGB components and vice versa.
listed: true
listed: false
dateModified: 2024-08-11
---

Expand Down
2 changes: 1 addition & 1 deletion content/snippets/python/s/identity-equality.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ language: python
tags: [type,comparison]
cover: umbrellas
excerpt: Python provides two distinct comparison operators for different task. Stop mixing them up using this quick guide.
listed: true
listed: false
dateModified: 2021-06-12
---

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ language: python
tags: [list,date]
cover: succulent-3
excerpt: Master list initialization, using simple techniques and level up your Python skills.
listed: true
listed: false
dateModified: 2024-05-30
---

Expand Down
2 changes: 1 addition & 1 deletion content/snippets/python/s/is-weekend-or-weekday.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ language: python
tags: [date]
cover: two-lighthouses
excerpt: Checks if the given date is a weekend or a weekday.
listed: true
listed: false
dateModified: 2024-05-23
---

Expand Down
2 changes: 1 addition & 1 deletion content/snippets/python/s/key-of-min-max.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ language: python
tags: [dictionary]
cover: goat-wooden-cottage
excerpt: Find the key of the minimum or maximum value in a Python dictionary.
listed: true
listed: false
dateModified: 2024-05-08
---

Expand Down
2 changes: 1 addition & 1 deletion content/snippets/python/s/lists-tuples.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ language: python
tags: [list]
cover: red-mountain
excerpt: Learn how Python's lists and tuples are different and level up your code today.
listed: true
listed: false
dateModified: 2021-06-12
---

Expand Down
2 changes: 1 addition & 1 deletion content/snippets/python/s/lowercase.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ language: python
tags: [string]
cover: type-stamps
excerpt: Learn of the two different ways to convert strings to lowercase in Python and understand when you should use each one with this quick guide.
listed: true
listed: false
dateModified: 2021-06-12
---

Expand Down
2 changes: 1 addition & 1 deletion content/snippets/python/s/map-values.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ language: python
tags: [dictionary]
cover: pineapple-laptop
excerpt: Create a dictionary with the same keys as the provided dictionary and values generated by running the provided function for each value.
listed: true
listed: false
dateModified: 2024-08-03
---

Expand Down
2 changes: 1 addition & 1 deletion content/snippets/python/s/min-max-element-index.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ language: python
tags: [math,list]
cover: two-cities
excerpt: Find the index of the element with the minimum or maximum value in a list.
listed: true
listed: false
dateModified: 2024-07-18
---

Expand Down
2 changes: 1 addition & 1 deletion content/snippets/python/s/mutable-default-arguments.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ language: python
tags: [function]
cover: goat-wooden-cottage
excerpt: Mutable default arguments can trip up Python beginners and veterans alike. Here's a quick workaround to deal with them.
listed: true
listed: false
dateModified: 2022-02-27
---

Expand Down
2 changes: 1 addition & 1 deletion content/snippets/python/s/named-tuples.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ language: python
tags: [list,dictionary]
cover: mask-quiet
excerpt: Understand Python's named tuples and start using them in your projects today.
listed: true
listed: false
dateModified: 2021-06-12
---

Expand Down
2 changes: 1 addition & 1 deletion content/snippets/python/s/num-to-range.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ language: python
tags: [math]
cover: round-leaves
excerpt: Map a number from one range to another range.
listed: true
listed: false
dateModified: 2024-07-02
---

Expand Down
2 changes: 1 addition & 1 deletion content/snippets/python/s/offset.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ language: python
tags: [list]
cover: digital-nomad-10
excerpt: Move a specified amount of elements to the end of a list.
listed: true
listed: false
dateModified: 2024-05-24
---

Expand Down
2 changes: 1 addition & 1 deletion content/snippets/python/s/prime-factors.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ language: python
tags: [math,algorithm]
cover: river-flow
excerpt: Find the list of prime factors of a number, using a simple Python function.
listed: true
listed: false
dateModified: 2024-05-12
---

Expand Down
2 changes: 1 addition & 1 deletion content/snippets/python/s/setup-python3-pip3-as-default.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ language: python
tags: [setup]
cover: avocado-slices
excerpt: A very common problem when working with Python is having to remember the correct version. Luckily, there's an easy fix for that.
listed: true
listed: false
dateModified: 2021-06-12
---

Expand Down
2 changes: 1 addition & 1 deletion content/snippets/python/s/slice-assignment.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ language: python
tags: [list]
cover: sliced-fruits
excerpt: Learn everything you need to know about Python's slice assignment with this handy guide.
listed: true
listed: false
dateModified: 2021-06-12
---

Expand Down
2 changes: 1 addition & 1 deletion content/snippets/python/s/slice-notation.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ language: python
tags: [list]
cover: sliced-fruits
excerpt: Learn everything you need to know about Python's slice notation with this handy guide.
listed: true
listed: false
dateModified: 2021-06-12
---

Expand Down
2 changes: 1 addition & 1 deletion content/snippets/python/s/slugify.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ language: python
tags: [string,regexp]
cover: sliced-fruits
excerpt: Convert a string to a URL-friendly slug, using Python and regular expressions.
listed: true
listed: false
dateModified: 2024-07-13
---

Expand Down
2 changes: 1 addition & 1 deletion content/snippets/python/s/sort-by-indexes.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ language: python
tags: [list]
cover: little-white-flowers
excerpt: Sort a Python list based on another list containing the desired indexes.
listed: true
listed: false
dateModified: 2024-08-06
---

Expand Down
2 changes: 1 addition & 1 deletion content/snippets/python/s/sort-dictionary-tuple-key.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ language: python
tags: [list,dictionary]
cover: matrix-flow
excerpt: Learn how to sort a Python dictionary list using a tuple key.
listed: true
listed: false
dateModified: 2023-01-04
---

Expand Down
2 changes: 1 addition & 1 deletion content/snippets/python/s/sortedlist-vs-list-sort.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ language: python
tags: [list]
cover: duck-plants
excerpt: Learn the difference between Python's built-in list sorting methods and when one is preferred over the other.
listed: true
listed: false
dateModified: 2021-06-12
---

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ language: python
tags: [string,regexp]
cover: digital-nomad-9
excerpt: Learn how to capitalize, camelcase, snake case, and kebab case strings in Python.
listed: true
listed: false
dateModified: 2024-08-25
---

Expand Down
2 changes: 1 addition & 1 deletion content/snippets/python/s/string-is-empty.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ language: python
tags: [string]
cover: tea-laptop-table
excerpt: Here are two quick and elegant ways to check if a string is empty in Python.
listed: true
listed: false
dateModified: 2022-08-05
---

Expand Down
2 changes: 1 addition & 1 deletion content/snippets/python/s/strip-string-prefix.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ language: python
tags: [string]
cover: cave-exploration
excerpt: Using `str.lstrip()` to strip a prefix from a string might not be exactly what you're looking for. Here's what you should use instead.
listed: true
listed: false
dateModified: 2024-01-18
---

Expand Down
2 changes: 1 addition & 1 deletion content/snippets/python/s/sum-of-powers.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ language: python
tags: [math]
cover: river-flow
excerpt: Find the sum of the powers of all the numbers from `start` to `end` (both inclusive).
listed: true
listed: false
dateModified: 2024-05-10
---

Expand Down
2 changes: 1 addition & 1 deletion content/snippets/python/s/swap-variables.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ language: python
tags: [variables]
cover: leaves-read
excerpt: Learn 3 easy ways to swap the values of two variables in Python.
listed: true
listed: false
dateModified: 2021-11-07
---

Expand Down
Loading

0 comments on commit f2c937b

Please sign in to comment.