Reorganize snippets

This commit is contained in:
Angelos Chalaris
2023-05-03 21:19:02 +03:00
parent 7511813169
commit 5c913d20bd
1240 changed files with 992 additions and 0 deletions

View File

@ -1,6 +1,7 @@
---
title: Add days to date
type: snippet
language: python
tags: [date]
cover: orange-flower
dateModified: 2020-10-28T16:19:04+02:00

View File

@ -1,6 +1,7 @@
---
title: Check if list elements are identical
type: snippet
language: python
tags: [list]
cover: fallen-leaves
dateModified: 2020-10-11T13:40:42+03:00

View File

@ -1,6 +1,7 @@
---
title: Check if list has no duplicates
type: snippet
language: python
tags: [list]
cover: touch-flower
dateModified: 2021-01-07T23:30:28+02:00

View File

@ -1,6 +1,7 @@
---
title: Arithmetic progression
type: snippet
language: python
tags: [math]
cover: number-2
dateModified: 2020-11-02T19:27:07+02:00

View File

@ -1,6 +1,7 @@
---
title: Mapped list average
type: snippet
language: python
tags: [math,list]
cover: flower-vase
dateModified: 2020-11-02T19:27:07+02:00

View File

@ -1,6 +1,7 @@
---
title: Average
type: snippet
language: python
tags: [math,list]
cover: digital-nomad-15
dateModified: 2020-11-02T19:27:07+02:00

View File

@ -1,6 +1,7 @@
---
title: Bifurcate list based on function
type: snippet
language: python
tags: [list]
cover: two-flower-vases
dateModified: 2020-11-02T19:27:07+02:00

View File

@ -1,6 +1,7 @@
---
title: Bifurcate list based on values
type: snippet
language: python
tags: [list]
cover: mug-flower-book
dateModified: 2020-11-02T19:27:07+02:00

View File

@ -1,6 +1,7 @@
---
title: Binomial coefficient
type: snippet
language: python
tags: [math]
cover: digital-nomad-5
dateModified: 2020-11-02T19:27:07+02:00

View File

@ -1,6 +1,7 @@
---
title: Byte size of string
type: snippet
language: python
tags: [string]
cover: river-house-lights
dateModified: 2020-11-02T19:27:07+02:00

View File

@ -1,6 +1,7 @@
---
title: Camelcase string
type: snippet
language: python
tags: [string,regexp]
cover: digital-nomad-9
dateModified: 2020-11-02T19:27:07+02:00

View File

@ -1,6 +1,7 @@
---
title: Capitalize every word
type: snippet
language: python
tags: [string]
cover: trippy-chemicals
dateModified: 2020-11-02T19:27:07+02:00

View File

@ -1,6 +1,7 @@
---
title: Capitalize string
type: snippet
language: python
tags: [string]
cover: palm-tree-house
dateModified: 2020-11-02T19:27:07+02:00

View File

@ -1,6 +1,7 @@
---
title: Cast to list
type: snippet
language: python
tags: [list]
cover: colorful-pots
dateModified: 2020-11-02T19:27:07+02:00

View File

@ -1,6 +1,7 @@
---
title: Celsius to Fahrenheit
type: snippet
language: python
tags: [math]
unlisted: true
cover: last-light

View File

@ -1,6 +1,7 @@
---
title: Check property
type: snippet
language: python
tags: [function]
cover: lake-trees
dateModified: 2020-11-02T19:27:07+02:00

View File

@ -1,6 +1,7 @@
---
title: Split list into n chunks
type: snippet
language: python
tags: [list]
cover: succulent-10
dateModified: 2020-10-23T05:35:06+03:00

View File

@ -1,6 +1,7 @@
---
title: Split list into chunks
type: snippet
language: python
tags: [list]
cover: red-berries
dateModified: 2020-11-02T19:27:07+02:00

View File

@ -1,6 +1,7 @@
---
title: Clamp number
type: snippet
language: python
tags: [math]
cover: highlands
dateModified: 2020-11-02T19:27:07+02:00

View File

@ -1,6 +1,7 @@
---
title: Invert dictionary
type: snippet
language: python
tags: [dictionary]
cover: working-bee
dateModified: 2020-11-02T19:27:07+02:00

View File

@ -1,6 +1,7 @@
---
title: Combine dictionary values
type: snippet
language: python
tags: [dictionary]
cover: fruit-feast
dateModified: 2021-04-04T14:32:35+03:00

View File

@ -1,6 +1,7 @@
---
title: Compact list
type: snippet
language: python
tags: [list]
cover: new-plant
dateModified: 2020-11-02T19:27:07+02:00

View File

@ -1,6 +1,7 @@
---
title: Reverse compose functions
type: snippet
language: python
tags: [function]
cover: lavender-shelf
dateModified: 2020-11-02T19:27:07+02:00

View File

@ -1,6 +1,7 @@
---
title: Compose functions
type: snippet
language: python
tags: [function]
cover: tram-car-2
dateModified: 2020-11-02T19:27:07+02:00

View File

@ -1,6 +1,7 @@
---
title: Count grouped elements
type: snippet
language: python
tags: [list]
cover: rabbit-call
dateModified: 2020-11-02T19:27:07+02:00

View File

@ -1,6 +1,7 @@
---
title: Count occurrences
type: snippet
language: python
tags: [list]
cover: pineapple-at-work
dateModified: 2021-01-10T00:00:36+02:00

View File

@ -1,6 +1,7 @@
---
title: Partial sum list
type: snippet
language: python
tags: [list]
cover: digital-nomad-16
dateModified: 2021-01-13T23:30:41+02:00

View File

@ -1,6 +1,7 @@
---
title: Curry function
type: snippet
language: python
tags: [function]
cover: leaves-read
dateModified: 2020-11-02T19:27:07+02:00

View File

@ -1,6 +1,7 @@
---
title: Date range
type: snippet
language: python
tags: [date]
cover: maple-leaf-palette
dateModified: 2021-01-07T23:30:28+02:00

View File

@ -1,6 +1,7 @@
---
title: Days ago
type: snippet
language: python
tags: [date]
cover: cup-of-orange
dateModified: 2020-10-28T16:19:30+02:00

View File

@ -1,6 +1,7 @@
---
title: Date difference in days
type: snippet
language: python
tags: [date]
cover: succulent-9
dateModified: 2020-10-28T16:19:39+02:00

View File

@ -1,6 +1,7 @@
---
title: Days from now
type: snippet
language: python
tags: [date]
cover: clutter
dateModified: 2020-10-28T16:19:51+02:00

View File

@ -1,6 +1,7 @@
---
title: Decapitalize string
type: snippet
language: python
tags: [string]
cover: succulent-crowd
dateModified: 2020-11-02T19:27:53+02:00

View File

@ -1,6 +1,7 @@
---
title: Deep flatten list
type: snippet
language: python
tags: [list,recursion]
cover: mask-quiet
dateModified: 2020-12-29T19:53:45+02:00

View File

@ -1,6 +1,7 @@
---
title: Degrees to radians
type: snippet
language: python
tags: [math]
cover: digital-nomad-6
dateModified: 2020-11-02T19:27:53+02:00

View File

@ -1,6 +1,7 @@
---
title: Delayed function execution
type: snippet
language: python
tags: [function]
cover: succulent-10
dateModified: 2020-11-02T19:27:53+02:00

View File

@ -1,6 +1,7 @@
---
title: Dictionary to list
type: snippet
language: python
tags: [dictionary,list]
cover: new-york
dateModified: 2020-11-02T19:27:53+02:00

View File

@ -1,6 +1,7 @@
---
title: List difference based on function
type: snippet
language: python
tags: [list,function]
cover: coconuts
dateModified: 2020-11-02T19:27:53+02:00

View File

@ -1,6 +1,7 @@
---
title: List difference
type: snippet
language: python
tags: [list]
cover: frog-blue-flower
dateModified: 2020-11-02T19:27:53+02:00

View File

@ -1,6 +1,7 @@
---
title: Digitize number
type: snippet
language: python
tags: [math,list]
cover: laptop-with-code
dateModified: 2020-09-15T16:13:06+03:00

View File

@ -1,6 +1,7 @@
---
title: Drop list elements from the right
type: snippet
language: python
tags: [list]
author: chalarangelo
cover: digital-nomad-7

View File

@ -1,6 +1,7 @@
---
title: Drop list elements from the left
type: snippet
language: python
tags: [list]
author: chalarangelo
cover: pink-flower

View File

@ -1,6 +1,7 @@
---
title: Every nth element in list
type: snippet
language: python
tags: [list]
cover: cherry-trees
dateModified: 2020-11-02T19:27:53+02:00

View File

@ -1,6 +1,7 @@
---
title: Test if every list element is truthy
type: snippet
language: python
tags: [list]
cover: walking
dateModified: 2020-11-02T19:27:53+02:00

View File

@ -1,6 +1,7 @@
---
title: Factorial
type: snippet
language: python
tags: [math,recursion]
cover: succulent-11
dateModified: 2020-09-15T16:13:06+03:00

View File

@ -1,6 +1,7 @@
---
title: Fahrenheit to Celsius
type: snippet
language: python
tags: [math]
unlisted: true
cover: last-light

View File

@ -1,6 +1,7 @@
---
title: Fibonacci
type: snippet
language: python
tags: [math,list]
cover: san-francisco-skyline
dateModified: 2020-11-02T19:27:53+02:00

View File

@ -1,6 +1,7 @@
---
title: Filter non-unique list values
type: snippet
language: python
tags: [list]
cover: cobbled-street
dateModified: 2020-11-02T19:27:53+02:00

View File

@ -1,6 +1,7 @@
---
title: Filter unique list values
type: snippet
language: python
tags: [list]
cover: feathers
dateModified: 2020-11-02T19:27:53+02:00

View File

@ -1,6 +1,7 @@
---
title: Find all matching indexes
type: snippet
language: python
tags: [list]
cover: tree-roots
dateModified: 2020-11-02T19:27:53+02:00

View File

@ -1,6 +1,7 @@
---
title: Find matching index
type: snippet
language: python
tags: [list]
cover: book-chair
dateModified: 2020-11-02T19:27:53+02:00

View File

@ -1,6 +1,7 @@
---
title: Find key of value
type: snippet
language: python
tags: [dictionary]
cover: blue-red-mountain
dateModified: 2020-11-02T19:27:53+02:00

View File

@ -1,6 +1,7 @@
---
title: Find keys with value
type: snippet
language: python
tags: [dictionary]
cover: laptop-plants-2
dateModified: 2020-11-02T19:27:53+02:00

View File

@ -1,6 +1,7 @@
---
title: Find last matching index
type: snippet
language: python
tags: [list]
cover: succulent-8
dateModified: 2020-11-02T19:27:53+02:00

View File

@ -1,6 +1,7 @@
---
title: Find last matching value
type: snippet
language: python
tags: [list]
cover: tropical-waterfall
dateModified: 2020-11-02T19:27:53+02:00

View File

@ -1,6 +1,7 @@
---
title: Find parity outliers
type: snippet
language: python
tags: [list,math]
cover: beach-pineapple
dateModified: 2020-11-02T19:27:53+02:00

View File

@ -1,6 +1,7 @@
---
title: Find matching value
type: snippet
language: python
tags: [list]
cover: duck-plants
dateModified: 2020-11-02T19:27:53+02:00

View File

@ -1,6 +1,7 @@
---
title: Flatten list
type: snippet
language: python
tags: [list]
cover: jars-on-shelf
dateModified: 2020-11-02T19:27:53+02:00

View File

@ -1,6 +1,7 @@
---
title: Execute function for each list element in reverse
type: snippet
language: python
tags: [list]
cover: bridge-drop
dateModified: 2020-09-15T16:13:06+03:00

View File

@ -1,6 +1,7 @@
---
title: Execute function for each list element
type: snippet
language: python
tags: [list]
cover: green-plant
dateModified: 2020-09-15T16:13:06+03:00

View File

@ -1,6 +1,7 @@
---
title: Value frequencies
type: snippet
language: python
tags: [list]
cover: succulent-6
dateModified: 2020-11-02T19:27:53+02:00

View File

@ -1,6 +1,7 @@
---
title: Date from ISO format
type: snippet
language: python
tags: [date]
cover: purple-leaves
dateModified: 2021-01-07T23:30:28+02:00

View File

@ -1,6 +1,7 @@
---
title: Greatest common divisor
type: snippet
language: python
tags: [math]
cover: digital-nomad-12
dateModified: 2020-09-15T16:13:06+03:00

View File

@ -1,6 +1,7 @@
---
title: Geometric progression
type: snippet
language: python
tags: [math,list]
cover: kettle-laptop
excerpt: Initializes a list containing the numbers in the specified geometric progression range.

View File

@ -1,6 +1,7 @@
---
title: Get nested value
type: snippet
language: python
tags: [dictionary,list]
cover: digital-nomad-2
dateModified: 2020-10-28T12:21:39+02:00

View File

@ -1,6 +1,7 @@
---
title: Group list elements
type: snippet
language: python
tags: [list,dictionary]
cover: body-of-water
dateModified: 2020-11-02T19:28:05+02:00

View File

@ -1,6 +1,7 @@
---
title: Hamming distance
type: snippet
language: python
tags: [math]
cover: tulips-and-reeds
dateModified: 2021-02-18T14:22:25+02:00

View File

@ -1,6 +1,7 @@
---
title: Check for duplicates in list
type: snippet
language: python
tags: [list]
cover: jars-on-shelf-2
dateModified: 2020-11-02T19:28:05+02:00

View File

@ -1,6 +1,7 @@
---
title: Check lists have same contents
type: snippet
language: python
tags: [list]
cover: racoon
dateModified: 2020-11-02T19:28:05+02:00

View File

@ -1,6 +1,7 @@
---
title: List head
type: snippet
language: python
tags: [list]
cover: purple-laptop
dateModified: 2020-09-15T16:13:06+03:00

View File

@ -1,6 +1,7 @@
---
title: Hex to RGB
type: snippet
language: python
tags: [string,math]
cover: sleepy-cat
dateModified: 2020-09-15T16:13:06+03:00

View File

@ -1,6 +1,7 @@
---
title: Number in range
type: snippet
language: python
tags: [math]
cover: pineapple-on-green
dateModified: 2020-09-15T16:13:06+03:00

View File

@ -1,6 +1,7 @@
---
title: List includes all values
type: snippet
language: python
tags: [list]
cover: switzerland-night
dateModified: 2020-11-02T19:28:05+02:00

View File

@ -1,6 +1,7 @@
---
title: List includes any values
type: snippet
language: python
tags: [list]
cover: forest-balcony
dateModified: 2020-11-02T19:28:05+02:00

View File

@ -1,6 +1,7 @@
---
title: All indexes of value
type: snippet
language: python
tags: [list]
cover: purple-flower-bunch
dateModified: 2020-10-11T13:45:19+03:00

View File

@ -1,6 +1,7 @@
---
title: List without last element
type: snippet
language: python
tags: [list]
cover: pop-of-green
dateModified: 2020-11-02T19:28:05+02:00

View File

@ -1,6 +1,7 @@
---
title: Initialize 2D list
type: snippet
language: python
tags: [list]
cover: succulent-7
dateModified: 2020-11-02T19:28:05+02:00

View File

@ -1,6 +1,7 @@
---
title: Initialize list with range
type: snippet
language: python
tags: [list]
cover: succulent-3
dateModified: 2020-11-02T19:28:05+02:00

View File

@ -1,6 +1,7 @@
---
title: Initialize list with values
type: snippet
language: python
tags: [list]
cover: dog-waiting
dateModified: 2020-11-02T19:28:05+02:00

View File

@ -1,6 +1,7 @@
---
title: List intersection based on function
type: snippet
language: python
tags: [list,function]
cover: duck-plants
dateModified: 2020-11-02T19:28:05+02:00

View File

@ -1,6 +1,7 @@
---
title: List intersection
type: snippet
language: python
tags: [list]
cover: wooden-bowl
dateModified: 2020-11-02T19:28:05+02:00

View File

@ -1,6 +1,7 @@
---
title: Invert dictionary
type: snippet
language: python
tags: [dictionary]
cover: rustic-cup
dateModified: 2020-11-02T19:28:05+02:00

View File

@ -1,6 +1,7 @@
---
title: String is anagram
type: snippet
language: python
tags: [string]
cover: digital-nomad-8
dateModified: 2020-11-02T19:28:05+02:00

View File

@ -1,6 +1,7 @@
---
title: List is contained in other list
type: snippet
language: python
tags: [list]
cover: tropical-bike
dateModified: 2021-01-07T23:30:28+02:00

View File

@ -1,6 +1,7 @@
---
title: Number is divisible
type: snippet
language: python
tags: [math]
unlisted: true
cover: interior-9

View File

@ -1,6 +1,7 @@
---
title: Collection is empty
type: snippet
language: python
tags: [list,dictionary,string]
author: chalarangelo
cover: salad-1

View File

@ -1,6 +1,7 @@
---
title: Number is even
type: snippet
language: python
tags: [math]
unlisted: true
cover: interior-3

View File

@ -1,6 +1,7 @@
---
title: Number is odd
type: snippet
language: python
tags: [math]
unlisted: true
cover: interior-6

View File

@ -1,6 +1,7 @@
---
title: Number is prime
type: snippet
language: python
tags: [math]
cover: carrots
dateModified: 2020-11-02T19:28:05+02:00

View File

@ -1,6 +1,7 @@
---
title: Date is weekday
type: snippet
language: python
tags: [date]
cover: succulent-4
dateModified: 2020-11-02T19:28:05+02:00

View File

@ -1,6 +1,7 @@
---
title: Date is weekend
type: snippet
language: python
tags: [date]
cover: two-lighthouses
dateModified: 2020-11-02T19:28:05+02:00

View File

@ -1,6 +1,7 @@
---
title: Kebabcase string
type: snippet
language: python
tags: [string,regexp]
cover: mask-quiet
dateModified: 2020-11-02T19:28:05+02:00

View File

@ -1,6 +1,7 @@
---
title: Key in dictionary
type: snippet
language: python
tags: [dictionary]
cover: rocky-mountains
dateModified: 2020-10-16T21:30:49+03:00

View File

@ -1,6 +1,7 @@
---
title: Key of max value
type: snippet
language: python
tags: [dictionary]
cover: succulent-7
dateModified: 2021-01-07T23:15:48+02:00

View File

@ -1,6 +1,7 @@
---
title: Key of min value
type: snippet
language: python
tags: [dictionary]
cover: goat-wooden-cottage
dateModified: 2021-01-07T23:15:48+02:00

View File

@ -1,6 +1,7 @@
---
title: Dictionary keys
type: snippet
language: python
tags: [dictionary,list]
cover: succulent-5
dateModified: 2020-11-02T19:28:05+02:00

View File

@ -1,6 +1,7 @@
---
title: Km to miles
type: snippet
language: python
tags: [math]
unlisted: true
cover: interior-5

View File

@ -1,6 +1,7 @@
---
title: Last list element
type: snippet
language: python
tags: [list]
cover: lake-runner
dateModified: 2020-11-02T19:28:05+02:00

View File

@ -1,6 +1,7 @@
---
title: Least common multiple
type: snippet
language: python
tags: [math,list]
cover: fruit-feast
dateModified: 2020-11-02T19:31:15+02:00

View File

@ -1,6 +1,7 @@
---
title: Longest item
type: snippet
language: python
tags: [list,string]
cover: keyboard-tea
dateModified: 2021-10-17T18:24:43+02:00

Some files were not shown because too many files have changed in this diff Show More