diff --git a/snippets/add-days.md b/snippets/add-days.md index 0e26f5874..00929e84e 100644 --- a/snippets/add-days.md +++ b/snippets/add-days.md @@ -1,9 +1,9 @@ --- title: Add days to date -tags: date +type: snippet +tags: [date] cover: orange-flower -firstSeen: 2020-10-28T16:19:04+02:00 -lastUpdated: 2020-10-28T16:19:04+02:00 +dateModified: 2020-10-28T16:19:04+02:00 --- Calculates the date of `n` days from the given date. diff --git a/snippets/all-equal.md b/snippets/all-equal.md index 62fbb5529..8adb5d49a 100644 --- a/snippets/all-equal.md +++ b/snippets/all-equal.md @@ -1,9 +1,9 @@ --- title: Check if list elements are identical -tags: list +type: snippet +tags: [list] cover: fallen-leaves -firstSeen: 2019-08-20T11:39:18+03:00 -lastUpdated: 2020-10-11T13:40:42+03:00 +dateModified: 2020-10-11T13:40:42+03:00 --- Checks if all elements in a list are equal. diff --git a/snippets/all-unique.md b/snippets/all-unique.md index 7fec41a60..f181059ae 100644 --- a/snippets/all-unique.md +++ b/snippets/all-unique.md @@ -1,9 +1,9 @@ --- title: Check if list has no duplicates -tags: list +type: snippet +tags: [list] cover: touch-flower -firstSeen: 2018-04-01T11:03:09+03:00 -lastUpdated: 2021-01-07T23:30:28+02:00 +dateModified: 2021-01-07T23:30:28+02:00 --- Checks if all the values in a list are unique. diff --git a/snippets/arithmetic-progression.md b/snippets/arithmetic-progression.md index 0f5c563a8..e4d4aadd5 100644 --- a/snippets/arithmetic-progression.md +++ b/snippets/arithmetic-progression.md @@ -1,9 +1,9 @@ --- title: Arithmetic progression -tags: math +type: snippet +tags: [math] cover: number-2 -firstSeen: 2020-07-28T13:57:33+03:00 -lastUpdated: 2020-11-02T19:27:07+02:00 +dateModified: 2020-11-02T19:27:07+02:00 --- Generates a list of numbers in the arithmetic progression starting with the given positive integer and up to the specified limit. diff --git a/snippets/average-by.md b/snippets/average-by.md index 8ead9fe50..fbb5b3e13 100644 --- a/snippets/average-by.md +++ b/snippets/average-by.md @@ -1,9 +1,9 @@ --- title: Mapped list average -tags: math,list +type: snippet +tags: [math,list] cover: flower-vase -firstSeen: 2019-08-20T11:55:10+03:00 -lastUpdated: 2020-11-02T19:27:07+02:00 +dateModified: 2020-11-02T19:27:07+02:00 --- Calculates the average of a list, after mapping each element to a value using the provided function. diff --git a/snippets/average.md b/snippets/average.md index 46c38005f..e17a1b2f3 100644 --- a/snippets/average.md +++ b/snippets/average.md @@ -1,9 +1,9 @@ --- title: Average -tags: math,list +type: snippet +tags: [math,list] cover: digital-nomad-15 -firstSeen: 2018-01-27T07:16:41+02:00 -lastUpdated: 2020-11-02T19:27:07+02:00 +dateModified: 2020-11-02T19:27:07+02:00 --- Calculates the average of two or more numbers. diff --git a/snippets/bifurcate-by.md b/snippets/bifurcate-by.md index 5097b5d5d..cc761ca43 100644 --- a/snippets/bifurcate-by.md +++ b/snippets/bifurcate-by.md @@ -1,9 +1,9 @@ --- title: Bifurcate list based on function -tags: list +type: snippet +tags: [list] cover: two-flower-vases -firstSeen: 2019-08-20T12:41:21+03:00 -lastUpdated: 2020-11-02T19:27:07+02:00 +dateModified: 2020-11-02T19:27:07+02:00 --- Splits values into two groups, based on the result of the given filtering function. diff --git a/snippets/bifurcate.md b/snippets/bifurcate.md index 44e3a0f9d..7306619dd 100644 --- a/snippets/bifurcate.md +++ b/snippets/bifurcate.md @@ -1,9 +1,9 @@ --- title: Bifurcate list based on values -tags: list +type: snippet +tags: [list] cover: mug-flower-book -firstSeen: 2019-08-20T12:37:06+03:00 -lastUpdated: 2020-11-02T19:27:07+02:00 +dateModified: 2020-11-02T19:27:07+02:00 --- Splits values into two groups, based on the result of the given `filter` list. diff --git a/snippets/binomial-coefficient.md b/snippets/binomial-coefficient.md index ec1b45d37..d6bd17d76 100644 --- a/snippets/binomial-coefficient.md +++ b/snippets/binomial-coefficient.md @@ -1,9 +1,9 @@ --- title: Binomial coefficient -tags: math +type: snippet +tags: [math] cover: digital-nomad-5 -firstSeen: 2020-10-04T11:56:31+03:00 -lastUpdated: 2020-11-02T19:27:07+02:00 +dateModified: 2020-11-02T19:27:07+02:00 --- Calculates the number of ways to choose `k` items from `n` items without repetition and without order. diff --git a/snippets/byte-size.md b/snippets/byte-size.md index e01d6a4a7..7d2560382 100644 --- a/snippets/byte-size.md +++ b/snippets/byte-size.md @@ -1,9 +1,9 @@ --- title: Byte size of string -tags: string +type: snippet +tags: [string] cover: river-house-lights -firstSeen: 2018-02-01T10:19:59+02:00 -lastUpdated: 2020-11-02T19:27:07+02:00 +dateModified: 2020-11-02T19:27:07+02:00 --- Returns the length of a string in bytes. diff --git a/snippets/camel.md b/snippets/camel.md index b782fc450..68b19f81c 100644 --- a/snippets/camel.md +++ b/snippets/camel.md @@ -1,9 +1,9 @@ --- title: Camelcase string -tags: string,regexp +type: snippet +tags: [string,regexp] cover: digital-nomad-9 -firstSeen: 2019-08-21T08:59:54+03:00 -lastUpdated: 2020-11-02T19:27:07+02:00 +dateModified: 2020-11-02T19:27:07+02:00 --- Converts a string to camelcase. diff --git a/snippets/capitalize-every-word.md b/snippets/capitalize-every-word.md index 12e5afbc0..9d5d22f4e 100644 --- a/snippets/capitalize-every-word.md +++ b/snippets/capitalize-every-word.md @@ -1,9 +1,9 @@ --- title: Capitalize every word -tags: string +type: snippet +tags: [string] cover: trippy-chemicals -firstSeen: 2018-02-01T10:19:59+02:00 -lastUpdated: 2020-11-02T19:27:07+02:00 +dateModified: 2020-11-02T19:27:07+02:00 --- Capitalizes the first letter of every word in a string. diff --git a/snippets/capitalize.md b/snippets/capitalize.md index 8b014061f..357875b51 100644 --- a/snippets/capitalize.md +++ b/snippets/capitalize.md @@ -1,9 +1,9 @@ --- title: Capitalize string -tags: string +type: snippet +tags: [string] cover: palm-tree-house -firstSeen: 2018-02-01T10:19:59+02:00 -lastUpdated: 2020-11-02T19:27:07+02:00 +dateModified: 2020-11-02T19:27:07+02:00 --- Capitalizes the first letter of a string. diff --git a/snippets/cast-list.md b/snippets/cast-list.md index adc4a23d8..9cf8cafd8 100644 --- a/snippets/cast-list.md +++ b/snippets/cast-list.md @@ -1,9 +1,9 @@ --- title: Cast to list -tags: list +type: snippet +tags: [list] cover: colorful-pots -firstSeen: 2019-08-20T12:47:43+03:00 -lastUpdated: 2020-11-02T19:27:07+02:00 +dateModified: 2020-11-02T19:27:07+02:00 --- Casts the provided value as a list if it's not one. diff --git a/snippets/celsius-to-fahrenheit.md b/snippets/celsius-to-fahrenheit.md index 702202ea8..ce39a756c 100644 --- a/snippets/celsius-to-fahrenheit.md +++ b/snippets/celsius-to-fahrenheit.md @@ -1,10 +1,10 @@ --- title: Celsius to Fahrenheit -tags: math +type: snippet +tags: [math] unlisted: true cover: last-light -firstSeen: 2020-04-05T12:29:03+03:00 -lastUpdated: 2021-01-04T12:47:04+02:00 +dateModified: 2021-01-04T12:47:04+02:00 --- Converts Celsius to Fahrenheit. diff --git a/snippets/check-prop.md b/snippets/check-prop.md index 82539c483..58644b8d0 100644 --- a/snippets/check-prop.md +++ b/snippets/check-prop.md @@ -1,9 +1,9 @@ --- title: Check property -tags: function +type: snippet +tags: [function] cover: lake-trees -firstSeen: 2020-01-02T16:49:25+02:00 -lastUpdated: 2020-11-02T19:27:07+02:00 +dateModified: 2020-11-02T19:27:07+02:00 --- Creates a function that will invoke a predicate function for the specified property on a given dictionary. diff --git a/snippets/chunk-into-n.md b/snippets/chunk-into-n.md index 064d45f70..bfb1e8d0e 100644 --- a/snippets/chunk-into-n.md +++ b/snippets/chunk-into-n.md @@ -1,9 +1,9 @@ --- title: Split list into n chunks -tags: list +type: snippet +tags: [list] cover: succulent-10 -firstSeen: 2020-10-12T22:11:30+03:00 -lastUpdated: 2020-10-23T05:35:06+03:00 +dateModified: 2020-10-23T05:35:06+03:00 --- Chunks a list into `n` smaller lists. diff --git a/snippets/chunk.md b/snippets/chunk.md index 7ff5f582d..06669f85b 100644 --- a/snippets/chunk.md +++ b/snippets/chunk.md @@ -1,9 +1,9 @@ --- title: Split list into chunks -tags: list +type: snippet +tags: [list] cover: red-berries -firstSeen: 2018-01-09T06:39:42+02:00 -lastUpdated: 2020-11-02T19:27:07+02:00 +dateModified: 2020-11-02T19:27:07+02:00 --- Chunks a list into smaller lists of a specified size. diff --git a/snippets/clamp-number.md b/snippets/clamp-number.md index f8e9a3d68..bd05be4fb 100644 --- a/snippets/clamp-number.md +++ b/snippets/clamp-number.md @@ -1,9 +1,9 @@ --- title: Clamp number -tags: math +type: snippet +tags: [math] cover: highlands -firstSeen: 2019-08-20T12:50:38+03:00 -lastUpdated: 2020-11-02T19:27:07+02:00 +dateModified: 2020-11-02T19:27:07+02:00 --- Clamps `num` within the inclusive range specified by the boundary values. diff --git a/snippets/collect-dictionary.md b/snippets/collect-dictionary.md index 40ecbf74a..3fa7c1b3a 100644 --- a/snippets/collect-dictionary.md +++ b/snippets/collect-dictionary.md @@ -1,9 +1,9 @@ --- title: Invert dictionary -tags: dictionary +type: snippet +tags: [dictionary] cover: working-bee -firstSeen: 2020-04-07T21:15:06+03:00 -lastUpdated: 2020-11-02T19:27:07+02:00 +dateModified: 2020-11-02T19:27:07+02:00 --- Inverts a dictionary with non-unique hashable values. diff --git a/snippets/combine-values.md b/snippets/combine-values.md index 01293f332..625a278f6 100644 --- a/snippets/combine-values.md +++ b/snippets/combine-values.md @@ -1,9 +1,9 @@ --- title: Combine dictionary values -tags: dictionary +type: snippet +tags: [dictionary] cover: fruit-feast -firstSeen: 2021-03-07T12:30:47+02:00 -lastUpdated: 2021-04-04T14:32:35+03:00 +dateModified: 2021-04-04T14:32:35+03:00 --- Combines two or more dictionaries, creating a list of values for each key. diff --git a/snippets/compact.md b/snippets/compact.md index 704af0af4..154934bdb 100644 --- a/snippets/compact.md +++ b/snippets/compact.md @@ -1,9 +1,9 @@ --- title: Compact list -tags: list +type: snippet +tags: [list] cover: new-plant -firstSeen: 2018-01-19T12:17:06+02:00 -lastUpdated: 2020-11-02T19:27:07+02:00 +dateModified: 2020-11-02T19:27:07+02:00 --- Removes falsy values from a list. diff --git a/snippets/compose-right.md b/snippets/compose-right.md index 7a00c1097..a6f1aa36c 100644 --- a/snippets/compose-right.md +++ b/snippets/compose-right.md @@ -1,9 +1,9 @@ --- title: Reverse compose functions -tags: function +type: snippet +tags: [function] cover: lavender-shelf -firstSeen: 2020-01-02T15:51:26+02:00 -lastUpdated: 2020-11-02T19:27:07+02:00 +dateModified: 2020-11-02T19:27:07+02:00 --- Performs left-to-right function composition. diff --git a/snippets/compose.md b/snippets/compose.md index 796bc0b29..6eba092d9 100644 --- a/snippets/compose.md +++ b/snippets/compose.md @@ -1,9 +1,9 @@ --- title: Compose functions -tags: function +type: snippet +tags: [function] cover: tram-car-2 -firstSeen: 2020-01-02T15:51:20+02:00 -lastUpdated: 2020-11-02T19:27:07+02:00 +dateModified: 2020-11-02T19:27:07+02:00 --- Performs right-to-left function composition. diff --git a/snippets/count-by.md b/snippets/count-by.md index 01d47d1b5..1f594599a 100644 --- a/snippets/count-by.md +++ b/snippets/count-by.md @@ -1,9 +1,9 @@ --- title: Count grouped elements -tags: list +type: snippet +tags: [list] cover: rabbit-call -firstSeen: 2018-02-07T10:33:47+02:00 -lastUpdated: 2020-11-02T19:27:07+02:00 +dateModified: 2020-11-02T19:27:07+02:00 --- Groups the elements of a list based on the given function and returns the count of elements in each group. diff --git a/snippets/count-occurrences.md b/snippets/count-occurrences.md index fa43439a3..a7fb031bb 100644 --- a/snippets/count-occurrences.md +++ b/snippets/count-occurrences.md @@ -1,9 +1,9 @@ --- title: Count occurrences -tags: list +type: snippet +tags: [list] cover: pineapple-at-work -firstSeen: 2021-01-10T00:00:36+02:00 -lastUpdated: 2021-01-10T00:00:36+02:00 +dateModified: 2021-01-10T00:00:36+02:00 --- Counts the occurrences of a value in a list. diff --git a/snippets/cumsum.md b/snippets/cumsum.md index ea36e0fe3..e01f891d8 100644 --- a/snippets/cumsum.md +++ b/snippets/cumsum.md @@ -1,9 +1,9 @@ --- title: Partial sum list -tags: list +type: snippet +tags: [list] cover: digital-nomad-16 -firstSeen: 2021-01-13T23:30:41+02:00 -lastUpdated: 2021-01-13T23:30:41+02:00 +dateModified: 2021-01-13T23:30:41+02:00 --- Creates a list of partial sums. diff --git a/snippets/curry.md b/snippets/curry.md index 2d1e12290..5ca280aa1 100644 --- a/snippets/curry.md +++ b/snippets/curry.md @@ -1,9 +1,9 @@ --- title: Curry function -tags: function +type: snippet +tags: [function] cover: leaves-read -firstSeen: 2020-01-02T16:14:50+02:00 -lastUpdated: 2020-11-02T19:27:07+02:00 +dateModified: 2020-11-02T19:27:07+02:00 --- Curries a function. diff --git a/snippets/daterange.md b/snippets/daterange.md index 948331cf7..2d802e171 100644 --- a/snippets/daterange.md +++ b/snippets/daterange.md @@ -1,9 +1,9 @@ --- title: Date range -tags: date +type: snippet +tags: [date] cover: maple-leaf-palette -firstSeen: 2020-10-28T16:19:14+02:00 -lastUpdated: 2021-01-07T23:30:28+02:00 +dateModified: 2021-01-07T23:30:28+02:00 --- Creates a list of dates between `start` (inclusive) and `end` (not inclusive). diff --git a/snippets/days-ago.md b/snippets/days-ago.md index e10133814..a90c4fd3a 100644 --- a/snippets/days-ago.md +++ b/snippets/days-ago.md @@ -1,9 +1,9 @@ --- title: Days ago -tags: date +type: snippet +tags: [date] cover: cup-of-orange -firstSeen: 2020-10-28T16:19:30+02:00 -lastUpdated: 2020-10-28T16:19:30+02:00 +dateModified: 2020-10-28T16:19:30+02:00 --- Calculates the date of `n` days ago from today. diff --git a/snippets/days-diff.md b/snippets/days-diff.md index 6c8e38731..cd8149a56 100644 --- a/snippets/days-diff.md +++ b/snippets/days-diff.md @@ -1,9 +1,9 @@ --- title: Date difference in days -tags: date +type: snippet +tags: [date] cover: succulent-9 -firstSeen: 2020-10-28T16:19:39+02:00 -lastUpdated: 2020-10-28T16:19:39+02:00 +dateModified: 2020-10-28T16:19:39+02:00 --- Calculates the day difference between two dates. diff --git a/snippets/days-from-now.md b/snippets/days-from-now.md index 59d811761..5b3024361 100644 --- a/snippets/days-from-now.md +++ b/snippets/days-from-now.md @@ -1,9 +1,9 @@ --- title: Days from now -tags: date +type: snippet +tags: [date] cover: clutter -firstSeen: 2020-10-28T16:19:51+02:00 -lastUpdated: 2020-10-28T16:19:51+02:00 +dateModified: 2020-10-28T16:19:51+02:00 --- Calculates the date of `n` days from today. diff --git a/snippets/decapitalize.md b/snippets/decapitalize.md index f1db5c048..5337242c5 100644 --- a/snippets/decapitalize.md +++ b/snippets/decapitalize.md @@ -1,9 +1,9 @@ --- title: Decapitalize string -tags: string +type: snippet +tags: [string] cover: succulent-crowd -firstSeen: 2018-02-01T10:19:59+02:00 -lastUpdated: 2020-11-02T19:27:53+02:00 +dateModified: 2020-11-02T19:27:53+02:00 --- Decapitalizes the first letter of a string. diff --git a/snippets/deep-flatten.md b/snippets/deep-flatten.md index 0868b126a..1a354b8ef 100644 --- a/snippets/deep-flatten.md +++ b/snippets/deep-flatten.md @@ -1,9 +1,9 @@ --- title: Deep flatten list -tags: list,recursion +type: snippet +tags: [list,recursion] cover: mask-quiet -firstSeen: 2018-01-16T16:54:14+02:00 -lastUpdated: 2020-12-29T19:53:45+02:00 +dateModified: 2020-12-29T19:53:45+02:00 --- Deep flattens a list. diff --git a/snippets/degrees-to-rads.md b/snippets/degrees-to-rads.md index 779021465..8c44f92e0 100644 --- a/snippets/degrees-to-rads.md +++ b/snippets/degrees-to-rads.md @@ -1,9 +1,9 @@ --- title: Degrees to radians -tags: math +type: snippet +tags: [math] cover: digital-nomad-6 -firstSeen: 2019-10-15T14:31:11+03:00 -lastUpdated: 2020-11-02T19:27:53+02:00 +dateModified: 2020-11-02T19:27:53+02:00 --- Converts an angle from degrees to radians. diff --git a/snippets/delay.md b/snippets/delay.md index b49900918..412c8201e 100644 --- a/snippets/delay.md +++ b/snippets/delay.md @@ -1,9 +1,9 @@ --- title: Delayed function execution -tags: function +type: snippet +tags: [function] cover: succulent-10 -firstSeen: 2020-01-02T16:24:51+02:00 -lastUpdated: 2020-11-02T19:27:53+02:00 +dateModified: 2020-11-02T19:27:53+02:00 --- Invokes the provided function after `ms` milliseconds. diff --git a/snippets/dict-to-list.md b/snippets/dict-to-list.md index 531c5d61d..2ac720d1b 100644 --- a/snippets/dict-to-list.md +++ b/snippets/dict-to-list.md @@ -1,9 +1,9 @@ --- title: Dictionary to list -tags: dictionary,list +type: snippet +tags: [dictionary,list] cover: new-york -firstSeen: 2020-10-16T21:24:14+03:00 -lastUpdated: 2020-11-02T19:27:53+02:00 +dateModified: 2020-11-02T19:27:53+02:00 --- Converts a dictionary to a list of tuples. diff --git a/snippets/difference-by.md b/snippets/difference-by.md index 262583cef..4c4962b85 100644 --- a/snippets/difference-by.md +++ b/snippets/difference-by.md @@ -1,9 +1,9 @@ --- title: List difference based on function -tags: list,function +type: snippet +tags: [list,function] cover: coconuts -firstSeen: 2018-02-08T15:59:27+02:00 -lastUpdated: 2020-11-02T19:27:53+02:00 +dateModified: 2020-11-02T19:27:53+02:00 --- Returns the difference between two lists, after applying the provided function to each list element of both. diff --git a/snippets/difference.md b/snippets/difference.md index f9fb5caba..0bf6f4e65 100644 --- a/snippets/difference.md +++ b/snippets/difference.md @@ -1,9 +1,9 @@ --- title: List difference -tags: list +type: snippet +tags: [list] cover: frog-blue-flower -firstSeen: 2018-01-20T16:16:44+02:00 -lastUpdated: 2020-11-02T19:27:53+02:00 +dateModified: 2020-11-02T19:27:53+02:00 --- Calculates the difference between two iterables, without filtering duplicate values. diff --git a/snippets/digitize.md b/snippets/digitize.md index 141484d73..ce12a4c5e 100644 --- a/snippets/digitize.md +++ b/snippets/digitize.md @@ -1,9 +1,9 @@ --- title: Digitize number -tags: math,list +type: snippet +tags: [math,list] cover: laptop-with-code -firstSeen: 2019-08-20T13:00:27+03:00 -lastUpdated: 2020-09-15T16:13:06+03:00 +dateModified: 2020-09-15T16:13:06+03:00 --- Converts a number to a list of digits. diff --git a/snippets/drop-right.md b/snippets/drop-right.md index fd8bbcf4a..925d86793 100644 --- a/snippets/drop-right.md +++ b/snippets/drop-right.md @@ -1,10 +1,10 @@ --- title: Drop list elements from the right -tags: list +type: snippet +tags: [list] author: chalarangelo cover: digital-nomad-7 -firstSeen: 2020-03-10T21:59:41+02:00 -lastUpdated: 2020-11-02T19:27:53+02:00 +dateModified: 2020-11-02T19:27:53+02:00 --- Returns a list with `n` elements removed from the right. diff --git a/snippets/drop.md b/snippets/drop.md index 9790c6543..459924405 100644 --- a/snippets/drop.md +++ b/snippets/drop.md @@ -1,10 +1,10 @@ --- title: Drop list elements from the left -tags: list +type: snippet +tags: [list] author: chalarangelo cover: pink-flower -firstSeen: 2020-03-10T21:59:41+02:00 -lastUpdated: 2020-11-02T19:27:53+02:00 +dateModified: 2020-11-02T19:27:53+02:00 --- Returns a list with `n` elements removed from the left. diff --git a/snippets/every-nth.md b/snippets/every-nth.md index 922fb8524..e87bf69e1 100644 --- a/snippets/every-nth.md +++ b/snippets/every-nth.md @@ -1,9 +1,9 @@ --- title: Every nth element in list -tags: list +type: snippet +tags: [list] cover: cherry-trees -firstSeen: 2019-08-20T13:10:12+03:00 -lastUpdated: 2020-11-02T19:27:53+02:00 +dateModified: 2020-11-02T19:27:53+02:00 --- Returns every `nth` element in a list. diff --git a/snippets/every.md b/snippets/every.md index b59faff78..b75cda316 100644 --- a/snippets/every.md +++ b/snippets/every.md @@ -1,9 +1,9 @@ --- title: Test if every list element is truthy -tags: list +type: snippet +tags: [list] cover: walking -firstSeen: 2019-08-20T11:34:24+03:00 -lastUpdated: 2020-11-02T19:27:53+02:00 +dateModified: 2020-11-02T19:27:53+02:00 --- Checks if the provided function returns `True` for every element in the list. diff --git a/snippets/factorial.md b/snippets/factorial.md index 4e634eaf2..231e5b705 100644 --- a/snippets/factorial.md +++ b/snippets/factorial.md @@ -1,9 +1,9 @@ --- title: Factorial -tags: math,recursion +type: snippet +tags: [math,recursion] cover: succulent-11 -firstSeen: 2018-01-27T07:29:56+02:00 -lastUpdated: 2020-09-15T16:13:06+03:00 +dateModified: 2020-09-15T16:13:06+03:00 --- Calculates the factorial of a number. diff --git a/snippets/fahrenheit-to-celsius.md b/snippets/fahrenheit-to-celsius.md index a1f3b355c..d89784b0a 100644 --- a/snippets/fahrenheit-to-celsius.md +++ b/snippets/fahrenheit-to-celsius.md @@ -1,10 +1,10 @@ --- title: Fahrenheit to Celsius -tags: math +type: snippet +tags: [math] unlisted: true cover: last-light -firstSeen: 2020-04-05T12:29:03+03:00 -lastUpdated: 2021-01-04T12:47:04+02:00 +dateModified: 2021-01-04T12:47:04+02:00 --- Converts Fahrenheit to Celsius. diff --git a/snippets/fibonacci.md b/snippets/fibonacci.md index 3da3a5594..d1f037d64 100644 --- a/snippets/fibonacci.md +++ b/snippets/fibonacci.md @@ -1,9 +1,9 @@ --- title: Fibonacci -tags: math,list +type: snippet +tags: [math,list] cover: san-francisco-skyline -firstSeen: 2018-10-06T06:06:33+03:00 -lastUpdated: 2020-11-02T19:27:53+02:00 +dateModified: 2020-11-02T19:27:53+02:00 --- Generates a list, containing the Fibonacci sequence, up until the nth term. diff --git a/snippets/filter-non-unique.md b/snippets/filter-non-unique.md index 45a48acf2..c1430c920 100644 --- a/snippets/filter-non-unique.md +++ b/snippets/filter-non-unique.md @@ -1,9 +1,9 @@ --- title: Filter non-unique list values -tags: list +type: snippet +tags: [list] cover: cobbled-street -firstSeen: 2019-08-20T13:13:51+03:00 -lastUpdated: 2020-11-02T19:27:53+02:00 +dateModified: 2020-11-02T19:27:53+02:00 --- Creates a list with the non-unique values filtered out. diff --git a/snippets/filter-unique.md b/snippets/filter-unique.md index a6820f57d..307d02ec2 100644 --- a/snippets/filter-unique.md +++ b/snippets/filter-unique.md @@ -1,9 +1,9 @@ --- title: Filter unique list values -tags: list +type: snippet +tags: [list] cover: feathers -firstSeen: 2019-10-02T20:06:24+03:00 -lastUpdated: 2020-11-02T19:27:53+02:00 +dateModified: 2020-11-02T19:27:53+02:00 --- Creates a list with the unique values filtered out. diff --git a/snippets/find-index-of-all.md b/snippets/find-index-of-all.md index 7e1b1980e..b19fbf25f 100644 --- a/snippets/find-index-of-all.md +++ b/snippets/find-index-of-all.md @@ -1,9 +1,9 @@ --- title: Find all matching indexes -tags: list +type: snippet +tags: [list] cover: tree-roots -firstSeen: 2020-10-11T13:45:19+03:00 -lastUpdated: 2020-11-02T19:27:53+02:00 +dateModified: 2020-11-02T19:27:53+02:00 --- Finds the indexes of all elements in the given list that satisfy the provided testing function. diff --git a/snippets/find-index.md b/snippets/find-index.md index 1bb4e4a3c..f64ba46de 100644 --- a/snippets/find-index.md +++ b/snippets/find-index.md @@ -1,9 +1,9 @@ --- title: Find matching index -tags: list +type: snippet +tags: [list] cover: book-chair -firstSeen: 2020-03-10T22:38:48+02:00 -lastUpdated: 2020-11-02T19:27:53+02:00 +dateModified: 2020-11-02T19:27:53+02:00 --- Finds the index of the first element in the given list that satisfies the provided testing function. diff --git a/snippets/find-key.md b/snippets/find-key.md index 89cb9ae44..8dd5151ff 100644 --- a/snippets/find-key.md +++ b/snippets/find-key.md @@ -1,9 +1,9 @@ --- title: Find key of value -tags: dictionary +type: snippet +tags: [dictionary] cover: blue-red-mountain -firstSeen: 2020-04-16T19:13:20+03:00 -lastUpdated: 2020-11-02T19:27:53+02:00 +dateModified: 2020-11-02T19:27:53+02:00 --- Finds the first key in the provided dictionary that has the given value. diff --git a/snippets/find-keys.md b/snippets/find-keys.md index e7d71aa3a..7edc6a4d7 100644 --- a/snippets/find-keys.md +++ b/snippets/find-keys.md @@ -1,9 +1,9 @@ --- title: Find keys with value -tags: dictionary +type: snippet +tags: [dictionary] cover: laptop-plants-2 -firstSeen: 2020-04-16T19:17:13+03:00 -lastUpdated: 2020-11-02T19:27:53+02:00 +dateModified: 2020-11-02T19:27:53+02:00 --- Finds all keys in the provided dictionary that have the given value. diff --git a/snippets/find-last-index.md b/snippets/find-last-index.md index bb7227a3d..5ee233756 100644 --- a/snippets/find-last-index.md +++ b/snippets/find-last-index.md @@ -1,9 +1,9 @@ --- title: Find last matching index -tags: list +type: snippet +tags: [list] cover: succulent-8 -firstSeen: 2020-03-10T22:38:48+02:00 -lastUpdated: 2020-11-02T19:27:53+02:00 +dateModified: 2020-11-02T19:27:53+02:00 --- Finds the index of the last element in the given list that satisfies the provided testing function. diff --git a/snippets/find-last.md b/snippets/find-last.md index d0ef8a7cb..ef5485a35 100644 --- a/snippets/find-last.md +++ b/snippets/find-last.md @@ -1,9 +1,9 @@ --- title: Find last matching value -tags: list +type: snippet +tags: [list] cover: tropical-waterfall -firstSeen: 2020-03-10T22:38:48+02:00 -lastUpdated: 2020-11-02T19:27:53+02:00 +dateModified: 2020-11-02T19:27:53+02:00 --- Finds the value of the last element in the given list that satisfies the provided testing function. diff --git a/snippets/find-parity-outliers.md b/snippets/find-parity-outliers.md index f117d0f58..62d260078 100644 --- a/snippets/find-parity-outliers.md +++ b/snippets/find-parity-outliers.md @@ -1,9 +1,9 @@ --- title: Find parity outliers -tags: list,math +type: snippet +tags: [list,math] cover: beach-pineapple -firstSeen: 2020-01-08T18:54:35+02:00 -lastUpdated: 2020-11-02T19:27:53+02:00 +dateModified: 2020-11-02T19:27:53+02:00 --- Finds the items that are parity outliers in a given list. diff --git a/snippets/find.md b/snippets/find.md index 2de8692f4..0c71e3da4 100644 --- a/snippets/find.md +++ b/snippets/find.md @@ -1,9 +1,9 @@ --- title: Find matching value -tags: list +type: snippet +tags: [list] cover: duck-plants -firstSeen: 2020-03-10T22:38:48+02:00 -lastUpdated: 2020-11-02T19:27:53+02:00 +dateModified: 2020-11-02T19:27:53+02:00 --- Finds the value of the first element in the given list that satisfies the provided testing function. diff --git a/snippets/flatten.md b/snippets/flatten.md index 17c40cdbf..04240178e 100644 --- a/snippets/flatten.md +++ b/snippets/flatten.md @@ -1,9 +1,9 @@ --- title: Flatten list -tags: list +type: snippet +tags: [list] cover: jars-on-shelf -firstSeen: 2019-09-19T15:46:10+03:00 -lastUpdated: 2020-11-02T19:27:53+02:00 +dateModified: 2020-11-02T19:27:53+02:00 --- Flattens a list of lists once. diff --git a/snippets/for-each-right.md b/snippets/for-each-right.md index 872226acd..31db9186d 100644 --- a/snippets/for-each-right.md +++ b/snippets/for-each-right.md @@ -1,9 +1,9 @@ --- title: Execute function for each list element in reverse -tags: list +type: snippet +tags: [list] cover: bridge-drop -firstSeen: 2020-03-15T12:54:08+02:00 -lastUpdated: 2020-09-15T16:13:06+03:00 +dateModified: 2020-09-15T16:13:06+03:00 --- Executes the provided function once for each list element, starting from the list's last element. diff --git a/snippets/for-each.md b/snippets/for-each.md index f60e32e5b..6a3aa070a 100644 --- a/snippets/for-each.md +++ b/snippets/for-each.md @@ -1,9 +1,9 @@ --- title: Execute function for each list element -tags: list +type: snippet +tags: [list] cover: green-plant -firstSeen: 2020-03-15T12:54:08+02:00 -lastUpdated: 2020-09-15T16:13:06+03:00 +dateModified: 2020-09-15T16:13:06+03:00 --- Executes the provided function once for each list element. diff --git a/snippets/frequencies.md b/snippets/frequencies.md index c79a66887..badf60000 100644 --- a/snippets/frequencies.md +++ b/snippets/frequencies.md @@ -1,9 +1,9 @@ --- title: Value frequencies -tags: list +type: snippet +tags: [list] cover: succulent-6 -firstSeen: 2020-03-15T12:54:08+02:00 -lastUpdated: 2020-11-02T19:27:53+02:00 +dateModified: 2020-11-02T19:27:53+02:00 --- Creates a dictionary with the unique values of a list as keys and their frequencies as the values. diff --git a/snippets/from-iso-date.md b/snippets/from-iso-date.md index 03089d316..76d293b6d 100644 --- a/snippets/from-iso-date.md +++ b/snippets/from-iso-date.md @@ -1,9 +1,9 @@ --- title: Date from ISO format -tags: date +type: snippet +tags: [date] cover: purple-leaves -firstSeen: 2020-10-28T16:20:04+02:00 -lastUpdated: 2021-01-07T23:30:28+02:00 +dateModified: 2021-01-07T23:30:28+02:00 --- Converts a date from its ISO-8601 representation. diff --git a/snippets/gcd.md b/snippets/gcd.md index fdf6b0e3b..6c4082fc0 100644 --- a/snippets/gcd.md +++ b/snippets/gcd.md @@ -1,9 +1,9 @@ --- title: Greatest common divisor -tags: math +type: snippet +tags: [math] cover: digital-nomad-12 -firstSeen: 2018-01-08T16:26:35+02:00 -lastUpdated: 2020-09-15T16:13:06+03:00 +dateModified: 2020-09-15T16:13:06+03:00 --- Calculates the greatest common divisor of a list of numbers. diff --git a/snippets/geometric-progression.md b/snippets/geometric-progression.md index 5b864537a..146b3409a 100644 --- a/snippets/geometric-progression.md +++ b/snippets/geometric-progression.md @@ -1,9 +1,9 @@ --- title: Geometric progression -tags: math,list +type: snippet +tags: [math,list] cover: kettle-laptop -firstSeen: 2020-10-04T12:19:28+03:00 -lastUpdated: 2020-11-02T19:28:05+02:00 +dateModified: 2020-11-02T19:28:05+02:00 --- Initializes a list containing the numbers in the specified range where `start` and `end` are inclusive and the ratio between two terms is `step`. diff --git a/snippets/get.md b/snippets/get.md index cf90c571d..7fe536c4d 100644 --- a/snippets/get.md +++ b/snippets/get.md @@ -1,9 +1,9 @@ --- title: Get nested value -tags: dictionary,list +type: snippet +tags: [dictionary,list] cover: digital-nomad-2 -firstSeen: 2020-10-28T12:21:39+02:00 -lastUpdated: 2020-10-28T12:21:39+02:00 +dateModified: 2020-10-28T12:21:39+02:00 --- Retrieves the value of the nested key indicated by the given selector list from a dictionary or list. diff --git a/snippets/group-by.md b/snippets/group-by.md index 7a552bc54..b6be60647 100644 --- a/snippets/group-by.md +++ b/snippets/group-by.md @@ -1,9 +1,9 @@ --- title: Group list elements -tags: list,dictionary +type: snippet +tags: [list,dictionary] cover: body-of-water -firstSeen: 2019-08-20T13:29:00+03:00 -lastUpdated: 2020-11-02T19:28:05+02:00 +dateModified: 2020-11-02T19:28:05+02:00 --- Groups the elements of a list based on the given function. diff --git a/snippets/hamming-distance.md b/snippets/hamming-distance.md index 8aec37c48..e1901ab0e 100644 --- a/snippets/hamming-distance.md +++ b/snippets/hamming-distance.md @@ -1,9 +1,9 @@ --- title: Hamming distance -tags: math +type: snippet +tags: [math] cover: tulips-and-reeds -firstSeen: 2021-01-17T13:04:06+02:00 -lastUpdated: 2021-02-18T14:22:25+02:00 +dateModified: 2021-02-18T14:22:25+02:00 --- Calculates the Hamming distance between two values. diff --git a/snippets/has-duplicates.md b/snippets/has-duplicates.md index 981579a5d..01e9db4d8 100644 --- a/snippets/has-duplicates.md +++ b/snippets/has-duplicates.md @@ -1,9 +1,9 @@ --- title: Check for duplicates in list -tags: list +type: snippet +tags: [list] cover: jars-on-shelf-2 -firstSeen: 2018-04-01T11:03:09+03:00 -lastUpdated: 2020-11-02T19:28:05+02:00 +dateModified: 2020-11-02T19:28:05+02:00 --- Checks if there are duplicate values in a flat list. diff --git a/snippets/have-same-contents.md b/snippets/have-same-contents.md index 0e286a280..bb865e078 100644 --- a/snippets/have-same-contents.md +++ b/snippets/have-same-contents.md @@ -1,9 +1,9 @@ --- title: Check lists have same contents -tags: list +type: snippet +tags: [list] cover: racoon -firstSeen: 2020-03-15T12:54:08+02:00 -lastUpdated: 2020-11-02T19:28:05+02:00 +dateModified: 2020-11-02T19:28:05+02:00 --- Checks if two lists contain the same elements regardless of order. diff --git a/snippets/head.md b/snippets/head.md index f01f084a5..81dedcca3 100644 --- a/snippets/head.md +++ b/snippets/head.md @@ -1,9 +1,9 @@ --- title: List head -tags: list +type: snippet +tags: [list] cover: purple-laptop -firstSeen: 2019-08-20T14:08:52+03:00 -lastUpdated: 2020-09-15T16:13:06+03:00 +dateModified: 2020-09-15T16:13:06+03:00 --- Returns the head of a list. diff --git a/snippets/hex-to-rgb.md b/snippets/hex-to-rgb.md index 57fefd5b1..3d03ded55 100644 --- a/snippets/hex-to-rgb.md +++ b/snippets/hex-to-rgb.md @@ -1,9 +1,9 @@ --- title: Hex to RGB -tags: string,math +type: snippet +tags: [string,math] cover: sleepy-cat -firstSeen: 2020-09-13T01:08:21+03:00 -lastUpdated: 2020-09-15T16:13:06+03:00 +dateModified: 2020-09-15T16:13:06+03:00 --- Converts a hexadecimal color code to a tuple of integers corresponding to its RGB components. diff --git a/snippets/in-range.md b/snippets/in-range.md index c31ab4ca0..227628e7a 100644 --- a/snippets/in-range.md +++ b/snippets/in-range.md @@ -1,9 +1,9 @@ --- title: Number in range -tags: math +type: snippet +tags: [math] cover: pineapple-on-green -firstSeen: 2019-08-20T13:41:40+03:00 -lastUpdated: 2020-09-15T16:13:06+03:00 +dateModified: 2020-09-15T16:13:06+03:00 --- Checks if the given number falls within the given range. diff --git a/snippets/includes-all.md b/snippets/includes-all.md index 1b0e3162c..4bd8bf5d7 100644 --- a/snippets/includes-all.md +++ b/snippets/includes-all.md @@ -1,9 +1,9 @@ --- title: List includes all values -tags: list +type: snippet +tags: [list] cover: switzerland-night -firstSeen: 2020-03-15T12:54:08+02:00 -lastUpdated: 2020-11-02T19:28:05+02:00 +dateModified: 2020-11-02T19:28:05+02:00 --- Checks if all the elements in `values` are included in `lst`. diff --git a/snippets/includes-any.md b/snippets/includes-any.md index ab9e40ea6..1175911f6 100644 --- a/snippets/includes-any.md +++ b/snippets/includes-any.md @@ -1,9 +1,9 @@ --- title: List includes any values -tags: list +type: snippet +tags: [list] cover: forest-balcony -firstSeen: 2020-03-15T12:54:08+02:00 -lastUpdated: 2020-11-02T19:28:05+02:00 +dateModified: 2020-11-02T19:28:05+02:00 --- Checks if any element in `values` is included in `lst`. diff --git a/snippets/index-of-all.md b/snippets/index-of-all.md index 486174520..87979dd37 100644 --- a/snippets/index-of-all.md +++ b/snippets/index-of-all.md @@ -1,9 +1,9 @@ --- title: All indexes of value -tags: list +type: snippet +tags: [list] cover: purple-flower-bunch -firstSeen: 2020-10-11T13:40:42+03:00 -lastUpdated: 2020-10-11T13:45:19+03:00 +dateModified: 2020-10-11T13:45:19+03:00 --- Returns a list of indexes of all the occurrences of an element in a list. diff --git a/snippets/initial.md b/snippets/initial.md index 38bcd1b33..1c42fb258 100644 --- a/snippets/initial.md +++ b/snippets/initial.md @@ -1,9 +1,9 @@ --- title: List without last element -tags: list +type: snippet +tags: [list] cover: pop-of-green -firstSeen: 2019-08-20T14:08:52+03:00 -lastUpdated: 2020-11-02T19:28:05+02:00 +dateModified: 2020-11-02T19:28:05+02:00 --- Returns all the elements of a list except the last one. diff --git a/snippets/initialize-2-d-list.md b/snippets/initialize-2-d-list.md index 7dd5bb074..4267cbcbe 100644 --- a/snippets/initialize-2-d-list.md +++ b/snippets/initialize-2-d-list.md @@ -1,9 +1,9 @@ --- title: Initialize 2D list -tags: list +type: snippet +tags: [list] cover: succulent-7 -firstSeen: 2019-10-25T10:11:51+03:00 -lastUpdated: 2020-11-02T19:28:05+02:00 +dateModified: 2020-11-02T19:28:05+02:00 --- Initializes a 2D list of given width and height and value. diff --git a/snippets/initialize-list-with-range.md b/snippets/initialize-list-with-range.md index b7acb93da..3528494bf 100644 --- a/snippets/initialize-list-with-range.md +++ b/snippets/initialize-list-with-range.md @@ -1,9 +1,9 @@ --- title: Initialize list with range -tags: list +type: snippet +tags: [list] cover: succulent-3 -firstSeen: 2019-08-20T15:21:41+03:00 -lastUpdated: 2020-11-02T19:28:05+02:00 +dateModified: 2020-11-02T19:28:05+02:00 --- Initializes a list containing the numbers in the specified range where `start` and `end` are inclusive with their common difference `step`. diff --git a/snippets/initialize-list-with-values.md b/snippets/initialize-list-with-values.md index 768cbcd26..56112d9f0 100644 --- a/snippets/initialize-list-with-values.md +++ b/snippets/initialize-list-with-values.md @@ -1,9 +1,9 @@ --- title: Initialize list with values -tags: list +type: snippet +tags: [list] cover: dog-waiting -firstSeen: 2019-08-20T14:12:06+03:00 -lastUpdated: 2020-11-02T19:28:05+02:00 +dateModified: 2020-11-02T19:28:05+02:00 --- Initializes and fills a list with the specified value. diff --git a/snippets/intersection-by.md b/snippets/intersection-by.md index 33a6671b9..72bba1cfa 100644 --- a/snippets/intersection-by.md +++ b/snippets/intersection-by.md @@ -1,9 +1,9 @@ --- title: List intersection based on function -tags: list,function +type: snippet +tags: [list,function] cover: duck-plants -firstSeen: 2019-08-20T15:16:27+03:00 -lastUpdated: 2020-11-02T19:28:05+02:00 +dateModified: 2020-11-02T19:28:05+02:00 --- Returns a list of elements that exist in both lists, after applying the provided function to each list element of both. diff --git a/snippets/intersection.md b/snippets/intersection.md index f8dec7c96..09fd551d4 100644 --- a/snippets/intersection.md +++ b/snippets/intersection.md @@ -1,9 +1,9 @@ --- title: List intersection -tags: list +type: snippet +tags: [list] cover: wooden-bowl -firstSeen: 2019-08-20T15:14:26+03:00 -lastUpdated: 2020-11-02T19:28:05+02:00 +dateModified: 2020-11-02T19:28:05+02:00 --- Returns a list of elements that exist in both lists. diff --git a/snippets/invert-dictionary.md b/snippets/invert-dictionary.md index dc3428619..241810d00 100644 --- a/snippets/invert-dictionary.md +++ b/snippets/invert-dictionary.md @@ -1,9 +1,9 @@ --- title: Invert dictionary -tags: dictionary +type: snippet +tags: [dictionary] cover: rustic-cup -firstSeen: 2020-04-07T21:13:32+03:00 -lastUpdated: 2020-11-02T19:28:05+02:00 +dateModified: 2020-11-02T19:28:05+02:00 --- Inverts a dictionary with unique hashable values. diff --git a/snippets/is-anagram.md b/snippets/is-anagram.md index cd4809373..5e52f663d 100644 --- a/snippets/is-anagram.md +++ b/snippets/is-anagram.md @@ -1,9 +1,9 @@ --- title: String is anagram -tags: string +type: snippet +tags: [string] cover: digital-nomad-8 -firstSeen: 2018-10-01T13:17:29+03:00 -lastUpdated: 2020-11-02T19:28:05+02:00 +dateModified: 2020-11-02T19:28:05+02:00 --- Checks if a string is an anagram of another string (case-insensitive, ignores spaces, punctuation and special characters). diff --git a/snippets/is-contained-in.md b/snippets/is-contained-in.md index bb755c207..b7949d6bf 100644 --- a/snippets/is-contained-in.md +++ b/snippets/is-contained-in.md @@ -1,9 +1,9 @@ --- title: List is contained in other list -tags: list +type: snippet +tags: [list] cover: tropical-bike -firstSeen: 2020-03-16T19:48:15+02:00 -lastUpdated: 2021-01-07T23:30:28+02:00 +dateModified: 2021-01-07T23:30:28+02:00 --- Checks if the elements of the first list are contained in the second one regardless of order. diff --git a/snippets/is-divisible.md b/snippets/is-divisible.md index 2cc7246f6..528dfe155 100644 --- a/snippets/is-divisible.md +++ b/snippets/is-divisible.md @@ -1,10 +1,10 @@ --- title: Number is divisible -tags: math +type: snippet +tags: [math] unlisted: true cover: interior-9 -firstSeen: 2019-08-20T14:19:55+03:00 -lastUpdated: 2021-01-04T12:47:04+02:00 +dateModified: 2021-01-04T12:47:04+02:00 --- Checks if the first numeric argument is divisible by the second one. diff --git a/snippets/is-empty.md b/snippets/is-empty.md index 5cf82f370..2ef9062f2 100644 --- a/snippets/is-empty.md +++ b/snippets/is-empty.md @@ -1,9 +1,10 @@ --- title: Collection is empty -tags: list,dictionary,string +type: snippet +tags: [list,dictionary,string] author: chalarangelo cover: salad-1 -firstSeen: 2023-01-12T05:00:00-04:00 +dateModified: 2023-01-12T05:00:00-04:00 --- Checks if the a value is an empty sequence or collection. diff --git a/snippets/is-even.md b/snippets/is-even.md index 0d9742af1..0b9e6e531 100644 --- a/snippets/is-even.md +++ b/snippets/is-even.md @@ -1,10 +1,10 @@ --- title: Number is even -tags: math +type: snippet +tags: [math] unlisted: true cover: interior-3 -firstSeen: 2019-08-20T14:21:44+03:00 -lastUpdated: 2021-01-04T12:47:04+02:00 +dateModified: 2021-01-04T12:47:04+02:00 --- Checks if the given number is even. diff --git a/snippets/is-odd.md b/snippets/is-odd.md index 8fe844d70..00c038c30 100644 --- a/snippets/is-odd.md +++ b/snippets/is-odd.md @@ -1,10 +1,10 @@ --- title: Number is odd -tags: math +type: snippet +tags: [math] unlisted: true cover: interior-6 -firstSeen: 2019-08-20T14:21:44+03:00 -lastUpdated: 2021-01-04T12:47:04+02:00 +dateModified: 2021-01-04T12:47:04+02:00 --- Checks if the given number is odd. diff --git a/snippets/is-prime.md b/snippets/is-prime.md index 3aa2fa8a3..0578bd2df 100644 --- a/snippets/is-prime.md +++ b/snippets/is-prime.md @@ -1,9 +1,9 @@ --- title: Number is prime -tags: math +type: snippet +tags: [math] cover: carrots -firstSeen: 2020-10-03T18:03:32+03:00 -lastUpdated: 2020-11-02T19:28:05+02:00 +dateModified: 2020-11-02T19:28:05+02:00 --- Checks if the provided integer is a prime number. diff --git a/snippets/is-weekday.md b/snippets/is-weekday.md index e6191d65c..d20663832 100644 --- a/snippets/is-weekday.md +++ b/snippets/is-weekday.md @@ -1,9 +1,9 @@ --- title: Date is weekday -tags: date +type: snippet +tags: [date] cover: succulent-4 -firstSeen: 2020-10-28T16:20:18+02:00 -lastUpdated: 2020-11-02T19:28:05+02:00 +dateModified: 2020-11-02T19:28:05+02:00 --- Checks if the given date is a weekday. diff --git a/snippets/is-weekend.md b/snippets/is-weekend.md index 9d80737b8..4be97b8f0 100644 --- a/snippets/is-weekend.md +++ b/snippets/is-weekend.md @@ -1,9 +1,9 @@ --- title: Date is weekend -tags: date +type: snippet +tags: [date] cover: two-lighthouses -firstSeen: 2020-10-28T16:20:27+02:00 -lastUpdated: 2020-11-02T19:28:05+02:00 +dateModified: 2020-11-02T19:28:05+02:00 --- Checks if the given date is a weekend. diff --git a/snippets/kebab.md b/snippets/kebab.md index 0c50d684d..68dd67516 100644 --- a/snippets/kebab.md +++ b/snippets/kebab.md @@ -1,9 +1,9 @@ --- title: Kebabcase string -tags: string,regexp +type: snippet +tags: [string,regexp] cover: mask-quiet -firstSeen: 2019-08-21T08:59:54+03:00 -lastUpdated: 2020-11-02T19:28:05+02:00 +dateModified: 2020-11-02T19:28:05+02:00 --- Converts a string to kebab case. diff --git a/snippets/key-in-dict.md b/snippets/key-in-dict.md index e09ae0887..e1aaf6b14 100644 --- a/snippets/key-in-dict.md +++ b/snippets/key-in-dict.md @@ -1,9 +1,9 @@ --- title: Key in dictionary -tags: dictionary +type: snippet +tags: [dictionary] cover: rocky-mountains -firstSeen: 2020-10-16T21:30:49+03:00 -lastUpdated: 2020-10-16T21:30:49+03:00 +dateModified: 2020-10-16T21:30:49+03:00 --- Checks if the given key exists in a dictionary. diff --git a/snippets/key-of-max.md b/snippets/key-of-max.md index 828142f2a..16adfe507 100644 --- a/snippets/key-of-max.md +++ b/snippets/key-of-max.md @@ -1,9 +1,9 @@ --- title: Key of max value -tags: dictionary +type: snippet +tags: [dictionary] cover: succulent-7 -firstSeen: 2021-01-07T23:15:48+02:00 -lastUpdated: 2021-01-07T23:15:48+02:00 +dateModified: 2021-01-07T23:15:48+02:00 --- Finds the key of the maximum value in a dictionary. diff --git a/snippets/key-of-min.md b/snippets/key-of-min.md index c1baf1784..c07b8eab2 100644 --- a/snippets/key-of-min.md +++ b/snippets/key-of-min.md @@ -1,9 +1,9 @@ --- title: Key of min value -tags: dictionary +type: snippet +tags: [dictionary] cover: goat-wooden-cottage -firstSeen: 2021-01-07T23:15:48+02:00 -lastUpdated: 2021-01-07T23:15:48+02:00 +dateModified: 2021-01-07T23:15:48+02:00 --- Finds the key of the minimum value in a dictionary. diff --git a/snippets/keys-only.md b/snippets/keys-only.md index 17fdb0dd5..4293aefeb 100644 --- a/snippets/keys-only.md +++ b/snippets/keys-only.md @@ -1,9 +1,9 @@ --- title: Dictionary keys -tags: dictionary,list +type: snippet +tags: [dictionary,list] cover: succulent-5 -firstSeen: 2018-04-01T23:56:31+03:00 -lastUpdated: 2020-11-02T19:28:05+02:00 +dateModified: 2020-11-02T19:28:05+02:00 --- Creates a flat list of all the keys in a flat dictionary. diff --git a/snippets/km-to-miles.md b/snippets/km-to-miles.md index 15624afe3..afbbd926d 100644 --- a/snippets/km-to-miles.md +++ b/snippets/km-to-miles.md @@ -1,10 +1,10 @@ --- title: Km to miles -tags: math +type: snippet +tags: [math] unlisted: true cover: interior-5 -firstSeen: 2020-10-04T00:23:49+03:00 -lastUpdated: 2021-01-04T12:47:04+02:00 +dateModified: 2021-01-04T12:47:04+02:00 --- Converts kilometers to miles. diff --git a/snippets/last.md b/snippets/last.md index 89108cc5f..8215263d9 100644 --- a/snippets/last.md +++ b/snippets/last.md @@ -1,9 +1,9 @@ --- title: Last list element -tags: list +type: snippet +tags: [list] cover: lake-runner -firstSeen: 2019-08-20T15:11:47+03:00 -lastUpdated: 2020-11-02T19:28:05+02:00 +dateModified: 2020-11-02T19:28:05+02:00 --- Returns the last element in a list. diff --git a/snippets/lcm.md b/snippets/lcm.md index 6d1d0c3ce..b62961a18 100644 --- a/snippets/lcm.md +++ b/snippets/lcm.md @@ -1,9 +1,9 @@ --- title: Least common multiple -tags: math,list +type: snippet +tags: [math,list] cover: fruit-feast -firstSeen: 2018-01-08T22:30:17+02:00 -lastUpdated: 2020-11-02T19:31:15+02:00 +dateModified: 2020-11-02T19:31:15+02:00 --- Returns the least common multiple of a list of numbers. diff --git a/snippets/longest-item.md b/snippets/longest-item.md index 523d2ea2f..deb03b5d6 100644 --- a/snippets/longest-item.md +++ b/snippets/longest-item.md @@ -1,9 +1,9 @@ --- title: Longest item -tags: list,string +type: snippet +tags: [list,string] cover: keyboard-tea -firstSeen: 2019-08-20T15:27:49+03:00 -lastUpdated: 2021-10-17T18:24:43+02:00 +dateModified: 2021-10-17T18:24:43+02:00 --- Takes any number of iterable objects or objects with a length property and returns the longest one. diff --git a/snippets/map-dictionary.md b/snippets/map-dictionary.md index 57cf7e1e2..cd25487c1 100644 --- a/snippets/map-dictionary.md +++ b/snippets/map-dictionary.md @@ -1,10 +1,10 @@ --- title: Map list to dictionary -tags: list,dictionary +type: snippet +tags: [list,dictionary] excerpt: Maps the values of a list to a dictionary using a function. cover: colors-mural -firstSeen: 2020-04-07T19:53:48+03:00 -lastUpdated: 2020-11-02T19:28:27+02:00 +dateModified: 2020-11-02T19:28:27+02:00 --- Maps the values of a list to a dictionary using a function, where the key-value pairs consist of the original value as the key and the result of the function as the value. diff --git a/snippets/map-values.md b/snippets/map-values.md index 4c720aa00..a883d2106 100644 --- a/snippets/map-values.md +++ b/snippets/map-values.md @@ -1,9 +1,9 @@ --- title: Map dictionary values -tags: dictionary +type: snippet +tags: [dictionary] cover: pineapple-laptop -firstSeen: 2019-08-20T15:34:30+03:00 -lastUpdated: 2020-11-02T19:28:27+02:00 +dateModified: 2020-11-02T19:28:27+02:00 --- Creates a dictionary with the same keys as the provided dictionary and values generated by running the provided function for each value. diff --git a/snippets/max-by.md b/snippets/max-by.md index ddf1059a8..9e929344b 100644 --- a/snippets/max-by.md +++ b/snippets/max-by.md @@ -1,9 +1,9 @@ --- title: Max list value based on function -tags: math,list +type: snippet +tags: [math,list] cover: digital-nomad-3 -firstSeen: 2019-08-20T15:42:41+03:00 -lastUpdated: 2020-11-02T19:28:27+02:00 +dateModified: 2020-11-02T19:28:27+02:00 --- Returns the maximum value of a list, after mapping each element to a value using the provided function. diff --git a/snippets/max-element-index.md b/snippets/max-element-index.md index 426211596..eb364352c 100644 --- a/snippets/max-element-index.md +++ b/snippets/max-element-index.md @@ -1,9 +1,9 @@ --- title: Index of max element -tags: math,list +type: snippet +tags: [math,list] cover: dark-cloud -firstSeen: 2019-10-31T09:42:21+02:00 -lastUpdated: 2020-11-02T19:28:27+02:00 +dateModified: 2020-11-02T19:28:27+02:00 --- Returns the index of the element with the maximum value in a list. diff --git a/snippets/max-n.md b/snippets/max-n.md index 47b6b731e..22d1fa6b4 100644 --- a/snippets/max-n.md +++ b/snippets/max-n.md @@ -1,9 +1,9 @@ --- title: N max elements -tags: list,math +type: snippet +tags: [list,math] cover: red-succulent -firstSeen: 2018-01-19T11:25:28+02:00 -lastUpdated: 2020-11-02T19:28:27+02:00 +dateModified: 2020-11-02T19:28:27+02:00 --- Returns the `n` maximum elements from the provided list. diff --git a/snippets/median.md b/snippets/median.md index 5a5a2b5c0..6c14d3efa 100644 --- a/snippets/median.md +++ b/snippets/median.md @@ -1,9 +1,9 @@ --- title: Median -tags: math +type: snippet +tags: [math] cover: little-bird -firstSeen: 2019-10-03T12:02:17+03:00 -lastUpdated: 2020-11-02T19:28:27+02:00 +dateModified: 2020-11-02T19:28:27+02:00 --- Finds the median of a list of numbers. diff --git a/snippets/merge-dictionaries.md b/snippets/merge-dictionaries.md index 30e6f486c..362d5aeeb 100644 --- a/snippets/merge-dictionaries.md +++ b/snippets/merge-dictionaries.md @@ -1,9 +1,9 @@ --- title: Merge dictionaries -tags: dictionary +type: snippet +tags: [dictionary] cover: plant-candle -firstSeen: 2020-04-16T19:28:35+03:00 -lastUpdated: 2020-11-02T19:28:27+02:00 +dateModified: 2020-11-02T19:28:27+02:00 --- Merges two or more dictionaries. diff --git a/snippets/merge.md b/snippets/merge.md index 1df0b8676..20422e84d 100644 --- a/snippets/merge.md +++ b/snippets/merge.md @@ -1,9 +1,9 @@ --- title: Merge lists -tags: list +type: snippet +tags: [list] cover: succulent-2 -firstSeen: 2020-04-13T19:09:12+03:00 -lastUpdated: 2020-11-02T19:28:27+02:00 +dateModified: 2020-11-02T19:28:27+02:00 --- Merges two or more lists into a list of lists, combining elements from each of the input lists based on their positions. diff --git a/snippets/miles-to-km.md b/snippets/miles-to-km.md index d76021fed..664167a1c 100644 --- a/snippets/miles-to-km.md +++ b/snippets/miles-to-km.md @@ -1,10 +1,10 @@ --- title: Miles to km -tags: math +type: snippet +tags: [math] unlisted: true cover: interior-5 -firstSeen: 2020-10-04T00:24:01+03:00 -lastUpdated: 2021-01-04T12:47:04+02:00 +dateModified: 2021-01-04T12:47:04+02:00 --- Converts miles to kilometers. diff --git a/snippets/min-by.md b/snippets/min-by.md index de5ae4832..e56b0cc7e 100644 --- a/snippets/min-by.md +++ b/snippets/min-by.md @@ -1,9 +1,9 @@ --- title: Min list value based on function -tags: math,list +type: snippet +tags: [math,list] cover: purple-flower-field -firstSeen: 2019-08-20T15:42:41+03:00 -lastUpdated: 2020-11-02T19:28:27+02:00 +dateModified: 2020-11-02T19:28:27+02:00 --- Returns the minimum value of a list, after mapping each element to a value using the provided function. diff --git a/snippets/min-element-index.md b/snippets/min-element-index.md index f396a762a..1a2544d41 100644 --- a/snippets/min-element-index.md +++ b/snippets/min-element-index.md @@ -1,9 +1,9 @@ --- title: Index of min element -tags: math,list +type: snippet +tags: [math,list] cover: two-cities -firstSeen: 2020-10-05T22:32:00+03:00 -lastUpdated: 2020-11-02T19:28:27+02:00 +dateModified: 2020-11-02T19:28:27+02:00 --- Returns the index of the element with the minimum value in a list. diff --git a/snippets/min-n.md b/snippets/min-n.md index 980c80840..1324024b0 100644 --- a/snippets/min-n.md +++ b/snippets/min-n.md @@ -1,9 +1,9 @@ --- title: N min elements -tags: list,math +type: snippet +tags: [list,math] cover: balloons -firstSeen: 2018-01-19T11:25:28+02:00 -lastUpdated: 2020-11-02T19:28:27+02:00 +dateModified: 2020-11-02T19:28:27+02:00 --- Returns the `n` minimum elements from the provided list. diff --git a/snippets/months-diff.md b/snippets/months-diff.md index 1c3ee4a55..4c97f1ca0 100644 --- a/snippets/months-diff.md +++ b/snippets/months-diff.md @@ -1,9 +1,9 @@ --- title: Date difference in months -tags: date +type: snippet +tags: [date] cover: succulent-11 -firstSeen: 2020-10-28T16:20:39+02:00 -lastUpdated: 2020-10-28T16:20:39+02:00 +dateModified: 2020-10-28T16:20:39+02:00 --- Calculates the month difference between two dates. diff --git a/snippets/most-frequent.md b/snippets/most-frequent.md index 9de1adb26..ac3a4e615 100644 --- a/snippets/most-frequent.md +++ b/snippets/most-frequent.md @@ -1,9 +1,9 @@ --- title: Most frequent element -tags: list +type: snippet +tags: [list] cover: secret-tree -firstSeen: 2019-10-12T00:40:49+03:00 -lastUpdated: 2020-11-02T19:28:27+02:00 +dateModified: 2020-11-02T19:28:27+02:00 --- Returns the most frequent element in a list. diff --git a/snippets/n-times-string.md b/snippets/n-times-string.md index 3f51cb5f5..184d2ecdf 100644 --- a/snippets/n-times-string.md +++ b/snippets/n-times-string.md @@ -1,9 +1,9 @@ --- title: Repeat string -tags: string +type: snippet +tags: [string] cover: playing-fetch -firstSeen: 2019-09-27T10:07:25+03:00 -lastUpdated: 2020-11-02T19:28:27+02:00 +dateModified: 2020-11-02T19:28:27+02:00 --- Generates a string with the given string value repeated `n` number of times. diff --git a/snippets/none.md b/snippets/none.md index 1712860e6..8f835446a 100644 --- a/snippets/none.md +++ b/snippets/none.md @@ -1,9 +1,9 @@ --- title: Test if every list element is falsy -tags: list +type: snippet +tags: [list] cover: jars-on-shelf-2 -firstSeen: 2019-08-20T15:54:50+03:00 -lastUpdated: 2020-11-02T19:28:27+02:00 +dateModified: 2020-11-02T19:28:27+02:00 --- Checks if the provided function returns `True` for at least one element in the list. diff --git a/snippets/num-to-range.md b/snippets/num-to-range.md index 0d8f135dc..eed85ca22 100644 --- a/snippets/num-to-range.md +++ b/snippets/num-to-range.md @@ -1,9 +1,9 @@ --- title: Map number to range -tags: math +type: snippet +tags: [math] cover: round-leaves -firstSeen: 2020-10-04T12:43:57+03:00 -lastUpdated: 2021-04-05T18:25:46+03:00 +dateModified: 2021-04-05T18:25:46+03:00 --- Maps a number from one range to another range. diff --git a/snippets/offset.md b/snippets/offset.md index a1355a7d5..dfbffa384 100644 --- a/snippets/offset.md +++ b/snippets/offset.md @@ -1,9 +1,9 @@ --- title: Offset list elements -tags: list +type: snippet +tags: [list] cover: digital-nomad-10 -firstSeen: 2019-08-20T15:53:15+03:00 -lastUpdated: 2020-11-02T19:28:27+02:00 +dateModified: 2020-11-02T19:28:27+02:00 --- Moves the specified amount of elements to the end of the list. diff --git a/snippets/pad-number.md b/snippets/pad-number.md index b20def974..3d8fe8edc 100644 --- a/snippets/pad-number.md +++ b/snippets/pad-number.md @@ -1,9 +1,9 @@ --- title: Pad number -tags: string,math +type: snippet +tags: [string,math] cover: umbrellas -firstSeen: 2020-10-04T01:42:19+03:00 -lastUpdated: 2020-11-02T19:28:27+02:00 +dateModified: 2020-11-02T19:28:27+02:00 --- Pads a given number to the specified length. diff --git a/snippets/pad.md b/snippets/pad.md index fd1ca7a36..7408135b3 100644 --- a/snippets/pad.md +++ b/snippets/pad.md @@ -1,10 +1,10 @@ --- title: Pad string -tags: string +type: snippet +tags: [string] author: chalarangelo cover: digital-nomad-11 -firstSeen: 2020-10-04T01:53:05+03:00 -lastUpdated: 2020-10-04T01:53:05+03:00 +dateModified: 2020-10-04T01:53:05+03:00 --- Pads a string on both sides with the specified character, if it's shorter than the specified length. diff --git a/snippets/palindrome.md b/snippets/palindrome.md index a1b2c2287..fed1f140a 100644 --- a/snippets/palindrome.md +++ b/snippets/palindrome.md @@ -1,9 +1,9 @@ --- title: Palindrome -tags: string +type: snippet +tags: [string] cover: succulent-6 -firstSeen: 2018-02-01T10:19:59+02:00 -lastUpdated: 2020-11-02T19:28:27+02:00 +dateModified: 2020-11-02T19:28:27+02:00 --- Checks if the given string is a palindrome. diff --git a/snippets/pluck.md b/snippets/pluck.md index e25b36574..132eb0e99 100644 --- a/snippets/pluck.md +++ b/snippets/pluck.md @@ -1,9 +1,9 @@ --- title: Pluck values from list of dictionaries -tags: list,dictionary +type: snippet +tags: [list,dictionary] cover: succulent-9 -firstSeen: 2020-10-22T03:49:25+03:00 -lastUpdated: 2020-10-22T10:09:44+03:00 +dateModified: 2020-10-22T10:09:44+03:00 --- Converts a list of dictionaries into a list of values corresponding to the specified `key`. diff --git a/snippets/powerset.md b/snippets/powerset.md index 2a7547806..6147be8bc 100644 --- a/snippets/powerset.md +++ b/snippets/powerset.md @@ -1,10 +1,10 @@ --- title: Powerset -tags: math,list +type: snippet +tags: [math,list] author: chalarangelo cover: rock-climbing -firstSeen: 2020-10-04T13:14:01+03:00 -lastUpdated: 2020-11-02T19:28:27+02:00 +dateModified: 2020-11-02T19:28:27+02:00 --- Returns the powerset of a given iterable. diff --git a/snippets/rads-to-degrees.md b/snippets/rads-to-degrees.md index 20c65df5e..16e9bf5e6 100644 --- a/snippets/rads-to-degrees.md +++ b/snippets/rads-to-degrees.md @@ -1,9 +1,9 @@ --- title: Radians to degrees -tags: math +type: snippet +tags: [math] cover: watermelon-bike -firstSeen: 2019-08-20T15:58:57+03:00 -lastUpdated: 2020-11-02T19:28:27+02:00 +dateModified: 2020-11-02T19:28:27+02:00 --- Converts an angle from radians to degrees. diff --git a/snippets/reverse-number.md b/snippets/reverse-number.md index fc5cced89..66c8f4331 100644 --- a/snippets/reverse-number.md +++ b/snippets/reverse-number.md @@ -1,9 +1,9 @@ --- title: Reverse number -tags: math +type: snippet +tags: [math] cover: taking-photos -firstSeen: 2020-10-04T14:21:41+03:00 -lastUpdated: 2020-11-02T19:28:27+02:00 +dateModified: 2020-11-02T19:28:27+02:00 --- Reverses a number. diff --git a/snippets/reverse.md b/snippets/reverse.md index e873e5063..972d6b80d 100644 --- a/snippets/reverse.md +++ b/snippets/reverse.md @@ -1,9 +1,9 @@ --- title: Reverse list -tags: list,string +type: snippet +tags: [list,string] cover: industrial-tokyo -firstSeen: 2020-10-06T19:02:30+03:00 -lastUpdated: 2020-11-02T19:28:27+02:00 +dateModified: 2020-11-02T19:28:27+02:00 --- Reverses a list or a string. diff --git a/snippets/rgb-to-hex.md b/snippets/rgb-to-hex.md index 1dc78decf..04e7dd3f5 100644 --- a/snippets/rgb-to-hex.md +++ b/snippets/rgb-to-hex.md @@ -1,9 +1,9 @@ --- title: RGB to hex -tags: string,math +type: snippet +tags: [string,math] cover: campfire -firstSeen: 2020-09-13T01:08:00+03:00 -lastUpdated: 2020-11-02T19:28:27+02:00 +dateModified: 2020-11-02T19:28:27+02:00 --- Converts the values of RGB components to a hexadecimal color code. diff --git a/snippets/roll.md b/snippets/roll.md index 33f04da55..88371d0b9 100644 --- a/snippets/roll.md +++ b/snippets/roll.md @@ -1,9 +1,9 @@ --- title: Rotate list elements -tags: list +type: snippet +tags: [list] cover: colorful-pots -firstSeen: 2020-11-02T19:15:44+02:00 -lastUpdated: 2020-11-02T19:15:44+02:00 +dateModified: 2020-11-02T19:15:44+02:00 --- Moves the specified amount of elements to the start of the list. diff --git a/snippets/sample.md b/snippets/sample.md index 1a504dfe4..57ad9379b 100644 --- a/snippets/sample.md +++ b/snippets/sample.md @@ -1,9 +1,9 @@ --- title: Random element in list -tags: list,random +type: snippet +tags: [list,random] cover: walking-on-top -firstSeen: 2019-08-20T16:02:37+03:00 -lastUpdated: 2020-10-28T11:45:34+02:00 +dateModified: 2020-10-28T11:45:34+02:00 --- Returns a random element from a list. diff --git a/snippets/shuffle.md b/snippets/shuffle.md index 516e8a025..cb84379c2 100644 --- a/snippets/shuffle.md +++ b/snippets/shuffle.md @@ -1,9 +1,9 @@ --- title: Shuffle list -tags: list,random +type: snippet +tags: [list,random] cover: tent-stars -firstSeen: 2018-01-19T11:59:33+02:00 -lastUpdated: 2020-11-02T19:28:35+02:00 +dateModified: 2020-11-02T19:28:35+02:00 --- Randomizes the order of the values of an list, returning a new list. diff --git a/snippets/similarity.md b/snippets/similarity.md index 814221b20..c6b901c4f 100644 --- a/snippets/similarity.md +++ b/snippets/similarity.md @@ -1,9 +1,9 @@ --- title: List similarity -tags: list +type: snippet +tags: [list] cover: sunflowers -firstSeen: 2019-08-20T16:12:11+03:00 -lastUpdated: 2020-11-02T19:28:35+02:00 +dateModified: 2020-11-02T19:28:35+02:00 --- Returns a list of elements that exist in both lists. diff --git a/snippets/slugify.md b/snippets/slugify.md index 110355d87..4418d5be8 100644 --- a/snippets/slugify.md +++ b/snippets/slugify.md @@ -1,9 +1,9 @@ --- title: String to slug -tags: string,regexp +type: snippet +tags: [string,regexp] cover: sliced-fruits -firstSeen: 2020-10-05T21:57:34+03:00 -lastUpdated: 2020-10-25T12:43:20+02:00 +dateModified: 2020-10-25T12:43:20+02:00 --- Converts a string to a URL-friendly slug. diff --git a/snippets/snake.md b/snippets/snake.md index c2dfc655b..d2d7bdc8e 100644 --- a/snippets/snake.md +++ b/snippets/snake.md @@ -1,9 +1,9 @@ --- title: Snakecase string -tags: string,regexp +type: snippet +tags: [string,regexp] cover: organizer -firstSeen: 2019-08-21T08:59:54+03:00 -lastUpdated: 2020-11-02T19:28:35+02:00 +dateModified: 2020-11-02T19:28:35+02:00 --- Converts a string to snake case. diff --git a/snippets/some.md b/snippets/some.md index e5230a6e4..6fa5a007a 100644 --- a/snippets/some.md +++ b/snippets/some.md @@ -1,9 +1,9 @@ --- title: Test if some list elements are truthy -tags: list +type: snippet +tags: [list] cover: pink-flower-tree -firstSeen: 2019-08-20T11:42:30+03:00 -lastUpdated: 2020-11-02T19:28:35+02:00 +dateModified: 2020-11-02T19:28:35+02:00 --- Checks if the provided function returns `True` for at least one element in the list. diff --git a/snippets/sort-by-indexes.md b/snippets/sort-by-indexes.md index cf38d0137..f6ace8049 100644 --- a/snippets/sort-by-indexes.md +++ b/snippets/sort-by-indexes.md @@ -1,9 +1,9 @@ --- title: Sort list by indexes -tags: list +type: snippet +tags: [list] cover: little-white-flowers -firstSeen: 2020-09-07T09:58:39+03:00 -lastUpdated: 2020-11-02T19:28:35+02:00 +dateModified: 2020-11-02T19:28:35+02:00 --- Sorts one list based on another list containing the desired indexes. diff --git a/snippets/sort-dict-by-key.md b/snippets/sort-dict-by-key.md index 1cbf229a5..f37de35d6 100644 --- a/snippets/sort-dict-by-key.md +++ b/snippets/sort-dict-by-key.md @@ -1,9 +1,9 @@ --- title: Sort dictionary by key -tags: dictionary +type: snippet +tags: [dictionary] cover: laptop-plants -firstSeen: 2020-10-16T21:24:33+03:00 -lastUpdated: 2020-11-02T19:28:35+02:00 +dateModified: 2020-11-02T19:28:35+02:00 --- Sorts the given dictionary by key. diff --git a/snippets/sort-dict-by-value.md b/snippets/sort-dict-by-value.md index feca20bce..75498ad1f 100644 --- a/snippets/sort-dict-by-value.md +++ b/snippets/sort-dict-by-value.md @@ -1,9 +1,9 @@ --- title: Sort dictionary by value -tags: dictionary +type: snippet +tags: [dictionary] cover: jars-on-shelf -firstSeen: 2020-10-16T21:25:19+03:00 -lastUpdated: 2021-01-08T00:56:50+02:00 +dateModified: 2021-01-08T00:56:50+02:00 --- Sorts the given dictionary by value. diff --git a/snippets/split-lines.md b/snippets/split-lines.md index 01200448b..8baaa73de 100644 --- a/snippets/split-lines.md +++ b/snippets/split-lines.md @@ -1,9 +1,9 @@ --- title: Split into lines -tags: string +type: snippet +tags: [string] cover: succulent-4 -firstSeen: 2019-08-20T16:15:15+03:00 -lastUpdated: 2020-11-02T19:28:35+02:00 +dateModified: 2020-11-02T19:28:35+02:00 --- Splits a multiline string into a list of lines. diff --git a/snippets/spread.md b/snippets/spread.md index d5974902b..869e73055 100644 --- a/snippets/spread.md +++ b/snippets/spread.md @@ -1,9 +1,9 @@ --- title: Spread list -tags: list +type: snippet +tags: [list] cover: digital-nomad-14 -firstSeen: 2018-01-08T22:38:05+02:00 -lastUpdated: 2020-09-15T16:13:06+03:00 +dateModified: 2020-09-15T16:13:06+03:00 --- Flattens a list, by spreading its elements into a new list. diff --git a/snippets/sum-by.md b/snippets/sum-by.md index 1d622b166..e4cd6f71d 100644 --- a/snippets/sum-by.md +++ b/snippets/sum-by.md @@ -1,9 +1,9 @@ --- title: Sum list based on function -tags: math,list +type: snippet +tags: [math,list] cover: horse-sunset -firstSeen: 2019-08-21T08:30:04+03:00 -lastUpdated: 2020-11-02T19:28:35+02:00 +dateModified: 2020-11-02T19:28:35+02:00 --- Calculates the sum of a list, after mapping each element to a value using the provided function. diff --git a/snippets/sum-of-powers.md b/snippets/sum-of-powers.md index af2cefbb3..2f808cc94 100644 --- a/snippets/sum-of-powers.md +++ b/snippets/sum-of-powers.md @@ -1,9 +1,9 @@ --- title: Sum of powers -tags: math +type: snippet +tags: [math] cover: river-flow -firstSeen: 2020-10-04T14:21:41+03:00 -lastUpdated: 2020-11-02T19:28:35+02:00 +dateModified: 2020-11-02T19:28:35+02:00 --- Returns the sum of the powers of all the numbers from `start` to `end` (both inclusive). diff --git a/snippets/symmetric-difference-by.md b/snippets/symmetric-difference-by.md index b032bcc72..857fd111c 100644 --- a/snippets/symmetric-difference-by.md +++ b/snippets/symmetric-difference-by.md @@ -1,9 +1,9 @@ --- title: List symmetric difference based on function -tags: list +type: snippet +tags: [list] cover: succulent-1 -firstSeen: 2019-08-21T08:37:04+03:00 -lastUpdated: 2020-11-02T19:28:35+02:00 +dateModified: 2020-11-02T19:28:35+02:00 --- Returns the symmetric difference between two lists, after applying the provided function to each list element of both. diff --git a/snippets/symmetric-difference.md b/snippets/symmetric-difference.md index 2bbc27c0e..168da1263 100644 --- a/snippets/symmetric-difference.md +++ b/snippets/symmetric-difference.md @@ -1,9 +1,9 @@ --- title: List symmetric difference -tags: list +type: snippet +tags: [list] cover: ice -firstSeen: 2019-08-21T08:37:04+03:00 -lastUpdated: 2020-11-02T19:28:35+02:00 +dateModified: 2020-11-02T19:28:35+02:00 --- Returns the symmetric difference between two iterables, without filtering out duplicate values. diff --git a/snippets/tail.md b/snippets/tail.md index c787c9192..b4b7f28fa 100644 --- a/snippets/tail.md +++ b/snippets/tail.md @@ -1,9 +1,9 @@ --- title: List tail -tags: list +type: snippet +tags: [list] cover: meteora -firstSeen: 2019-08-20T14:08:52+03:00 -lastUpdated: 2020-11-02T19:28:35+02:00 +dateModified: 2020-11-02T19:28:35+02:00 --- Returns all elements in a list except for the first one. diff --git a/snippets/take-right.md b/snippets/take-right.md index 28c873cf1..cfb311c33 100644 --- a/snippets/take-right.md +++ b/snippets/take-right.md @@ -1,10 +1,10 @@ --- title: Remove list elements from the end -tags: list +type: snippet +tags: [list] author: chalarangelo cover: three-vases -firstSeen: 2020-03-16T19:52:44+02:00 -lastUpdated: 2020-09-15T16:13:06+03:00 +dateModified: 2020-09-15T16:13:06+03:00 --- Returns a list with `n` elements removed from the end. diff --git a/snippets/take.md b/snippets/take.md index ffd619e51..6b2a8f5e7 100644 --- a/snippets/take.md +++ b/snippets/take.md @@ -1,10 +1,10 @@ --- title: Remove list elements -tags: list +type: snippet +tags: [list] author: chalarangelo cover: sea-view-2 -firstSeen: 2020-03-16T19:52:44+02:00 -lastUpdated: 2020-09-15T16:13:06+03:00 +dateModified: 2020-09-15T16:13:06+03:00 --- Returns a list with `n` elements removed from the beginning. diff --git a/snippets/to-binary.md b/snippets/to-binary.md index 305c370ab..dee8d29cd 100644 --- a/snippets/to-binary.md +++ b/snippets/to-binary.md @@ -1,9 +1,9 @@ --- title: Number to binary -tags: math +type: snippet +tags: [math] cover: digital-nomad-13 -firstSeen: 2020-10-07T19:46:01+03:00 -lastUpdated: 2020-10-07T19:46:01+03:00 +dateModified: 2020-10-07T19:46:01+03:00 --- Returns the binary representation of the given number. diff --git a/snippets/to-dictionary.md b/snippets/to-dictionary.md index 934a6fab0..9aaabe948 100644 --- a/snippets/to-dictionary.md +++ b/snippets/to-dictionary.md @@ -1,10 +1,10 @@ --- title: Lists to dictionary -tags: list,dictionary +type: snippet +tags: [list,dictionary] excerpt: Combines two lists into a dictionary, using the first one as the keys and the second one as the values. cover: purple-sunset -firstSeen: 2020-04-13T19:30:29+03:00 -lastUpdated: 2020-11-02T19:28:35+02:00 +dateModified: 2020-11-02T19:28:35+02:00 --- Combines two lists into a dictionary, where the elements of the first one serve as the keys and the elements of the second one serve as the values. diff --git a/snippets/to-hex.md b/snippets/to-hex.md index ed2243d1c..188861f95 100644 --- a/snippets/to-hex.md +++ b/snippets/to-hex.md @@ -1,9 +1,9 @@ --- title: Number to hex -tags: math +type: snippet +tags: [math] cover: green-plant -firstSeen: 2020-10-09T09:45:47+03:00 -lastUpdated: 2020-10-09T09:45:47+03:00 +dateModified: 2020-10-09T09:45:47+03:00 --- Returns the hexadecimal representation of the given number. diff --git a/snippets/to-iso-date.md b/snippets/to-iso-date.md index 78e78e4ee..e913a56cc 100644 --- a/snippets/to-iso-date.md +++ b/snippets/to-iso-date.md @@ -1,9 +1,9 @@ --- title: Date to ISO format -tags: date +type: snippet +tags: [date] cover: succulent-red-light -firstSeen: 2020-10-28T16:20:50+02:00 -lastUpdated: 2021-01-07T23:30:28+02:00 +dateModified: 2021-01-07T23:30:28+02:00 --- Converts a date to its ISO-8601 representation. diff --git a/snippets/to-roman-numeral.md b/snippets/to-roman-numeral.md index 735238cc8..be77209f7 100644 --- a/snippets/to-roman-numeral.md +++ b/snippets/to-roman-numeral.md @@ -1,9 +1,9 @@ --- title: Integer to roman numeral -tags: math,string +type: snippet +tags: [math,string] cover: tram-car -firstSeen: 2020-10-07T00:04:09+03:00 -lastUpdated: 2020-11-02T19:28:35+02:00 +dateModified: 2020-11-02T19:28:35+02:00 --- Converts an integer to its roman numeral representation. diff --git a/snippets/transpose.md b/snippets/transpose.md index 7dd2129b9..fd5d570bd 100644 --- a/snippets/transpose.md +++ b/snippets/transpose.md @@ -1,9 +1,9 @@ --- title: Transpose matrix -tags: list +type: snippet +tags: [list] cover: lake-bench -firstSeen: 2019-10-02T07:03:20+03:00 -lastUpdated: 2020-11-02T19:28:35+02:00 +dateModified: 2020-11-02T19:28:35+02:00 --- Transposes a two-dimensional list. diff --git a/snippets/unfold.md b/snippets/unfold.md index 40cfba8b7..15af96cc4 100644 --- a/snippets/unfold.md +++ b/snippets/unfold.md @@ -1,9 +1,9 @@ --- title: Unfold list -tags: function,list +type: snippet +tags: [function,list] cover: painters-desk -firstSeen: 2020-01-02T20:17:51+02:00 -lastUpdated: 2020-11-02T19:28:35+02:00 +dateModified: 2020-11-02T19:28:35+02:00 --- Builds a list, using an iterator function and an initial seed value. diff --git a/snippets/union-by.md b/snippets/union-by.md index fefb0e671..49655e7c7 100644 --- a/snippets/union-by.md +++ b/snippets/union-by.md @@ -1,9 +1,9 @@ --- title: List union based on function -tags: list +type: snippet +tags: [list] cover: sunrise-over-city -firstSeen: 2019-08-21T09:10:39+03:00 -lastUpdated: 2020-11-02T19:28:35+02:00 +dateModified: 2020-11-02T19:28:35+02:00 --- Returns every element that exists in any of the two lists once, after applying the provided function to each element of both. diff --git a/snippets/union.md b/snippets/union.md index 5500dc50b..cb05cb557 100644 --- a/snippets/union.md +++ b/snippets/union.md @@ -1,9 +1,9 @@ --- title: List union -tags: list +type: snippet +tags: [list] cover: river-houses -firstSeen: 2019-08-21T09:10:39+03:00 -lastUpdated: 2020-11-02T19:28:35+02:00 +dateModified: 2020-11-02T19:28:35+02:00 --- Returns every element that exists in any of the two lists once. diff --git a/snippets/unique-elements.md b/snippets/unique-elements.md index 677575ec3..5d694af9e 100644 --- a/snippets/unique-elements.md +++ b/snippets/unique-elements.md @@ -1,9 +1,9 @@ --- title: Unique elements in list -tags: list +type: snippet +tags: [list] cover: cold-mountains -firstSeen: 2018-10-09T20:01:19+03:00 -lastUpdated: 2020-09-15T16:13:06+03:00 +dateModified: 2020-09-15T16:13:06+03:00 --- Returns the unique elements in a given list. diff --git a/snippets/values-only.md b/snippets/values-only.md index 866a8de75..a175e932e 100644 --- a/snippets/values-only.md +++ b/snippets/values-only.md @@ -1,9 +1,9 @@ --- title: Dictionary values -tags: dictionary,list +type: snippet +tags: [dictionary,list] cover: colorful-lounge -firstSeen: 2018-04-01T23:56:31+03:00 -lastUpdated: 2020-11-02T19:28:35+02:00 +dateModified: 2020-11-02T19:28:35+02:00 --- Returns a flat list of all the values in a flat dictionary. diff --git a/snippets/weighted-average.md b/snippets/weighted-average.md index 0c1780b69..2de952314 100644 --- a/snippets/weighted-average.md +++ b/snippets/weighted-average.md @@ -1,9 +1,9 @@ --- title: Weighted average -tags: math,list +type: snippet +tags: [math,list] cover: digital-nomad-4 -firstSeen: 2020-10-09T07:00:33+03:00 -lastUpdated: 2020-12-24T15:00:53+02:00 +dateModified: 2020-12-24T15:00:53+02:00 --- Returns the weighted average of two or more numbers. diff --git a/snippets/when.md b/snippets/when.md index 09361c962..a9c6531f1 100644 --- a/snippets/when.md +++ b/snippets/when.md @@ -1,9 +1,9 @@ --- title: Apply function when true -tags: function +type: snippet +tags: [function] cover: interior-10 -firstSeen: 2020-01-02T20:25:45+02:00 -lastUpdated: 2020-11-09T23:56:11+02:00 +dateModified: 2020-11-09T23:56:11+02:00 --- Tests a value, `x`, against a testing function, conditionally applying a function. diff --git a/snippets/words.md b/snippets/words.md index c8f346168..73623cce8 100644 --- a/snippets/words.md +++ b/snippets/words.md @@ -1,9 +1,9 @@ --- title: String to words -tags: string,regexp +type: snippet +tags: [string,regexp] cover: rocky-lake -firstSeen: 2020-10-04T00:35:00+03:00 -lastUpdated: 2020-11-02T19:28:35+02:00 +dateModified: 2020-11-02T19:28:35+02:00 --- Converts a given string into a list of words.