Update snippet titles

This commit is contained in:
Isabelle Viktoria Maciohsek
2022-02-13 14:41:40 +02:00
parent b3b60cd838
commit 0f3e0f9ed0
48 changed files with 52 additions and 52 deletions

View File

@ -1,5 +1,5 @@
---
title: months_diff
title: Date difference in months
tags: date,beginner
firstSeen: 2020-10-28T16:20:39+02:00
lastUpdated: 2020-10-28T16:20:39+02:00

View File

@ -1,5 +1,5 @@
---
title: most_frequent
title: Most frequent element
tags: list,beginner
firstSeen: 2019-10-12T00:40:49+03:00
lastUpdated: 2020-11-02T19:28:27+02:00

View File

@ -1,5 +1,5 @@
---
title: n_times_string
title: Repeat string
tags: string,beginner
firstSeen: 2019-09-27T10:07:25+03:00
lastUpdated: 2020-11-02T19:28:27+02:00

View File

@ -1,5 +1,5 @@
---
title: none
title: Test if every list element is falsy
tags: list,intermediate
firstSeen: 2019-08-20T15:54:50+03:00
lastUpdated: 2020-11-02T19:28:27+02:00

View File

@ -1,5 +1,5 @@
---
title: num_to_range
title: Map number to range
tags: math,beginner
firstSeen: 2020-10-04T12:43:57+03:00
lastUpdated: 2021-04-05T18:25:46+03:00

View File

@ -1,5 +1,5 @@
---
title: offset
title: Offset list elements
tags: list,beginner
firstSeen: 2019-08-20T15:53:15+03:00
lastUpdated: 2020-11-02T19:28:27+02:00

View File

@ -1,5 +1,5 @@
---
title: pad
title: Pad string
tags: string,beginner
firstSeen: 2020-10-04T01:53:05+03:00
lastUpdated: 2020-10-04T01:53:05+03:00

View File

@ -1,5 +1,5 @@
---
title: pad_number
title: Pad number
tags: string,math,beginner
firstSeen: 2020-10-04T01:42:19+03:00
lastUpdated: 2020-11-02T19:28:27+02:00

View File

@ -1,5 +1,5 @@
---
title: palindrome
title: Palindrome
tags: string,intermediate
firstSeen: 2018-02-01T10:19:59+02:00
lastUpdated: 2020-11-02T19:28:27+02:00

View File

@ -1,5 +1,5 @@
---
title: pluck
title: Pluck values from list of dictionaries
tags: list,dictionary,beginner
firstSeen: 2020-10-22T03:49:25+03:00
lastUpdated: 2020-10-22T10:09:44+03:00

View File

@ -1,5 +1,5 @@
---
title: powerset
title: Powerset
tags: math,list,advanced
firstSeen: 2020-10-04T13:14:01+03:00
lastUpdated: 2020-11-02T19:28:27+02:00

View File

@ -1,5 +1,5 @@
---
title: rads_to_degrees
title: Radians to degrees
tags: math,beginner
firstSeen: 2019-08-20T15:58:57+03:00
lastUpdated: 2020-11-02T19:28:27+02:00

View File

@ -1,5 +1,5 @@
---
title: reverse
title: Reverse list
tags: list,string,beginner
firstSeen: 2020-10-06T19:02:30+03:00
lastUpdated: 2020-11-02T19:28:27+02:00
@ -15,6 +15,6 @@ def reverse(itr):
```
```py
reverse([1, 2, 3]) # [3, 2, 1]
reverse('snippet') # 'teppins'
reverse([1, 2, 3]) # [3, 2, 1]
reverse('snippet') # 'teppins'
```

View File

@ -1,5 +1,5 @@
---
title: reverse_number
title: Reverse number
tags: math,intermediate
firstSeen: 2020-10-04T14:21:41+03:00
lastUpdated: 2020-11-02T19:28:27+02:00

View File

@ -1,5 +1,5 @@
---
title: rgb_to_hex
title: RGB to hex
tags: string,math,intermediate
firstSeen: 2020-09-13T01:08:00+03:00
lastUpdated: 2020-11-02T19:28:27+02:00

View File

@ -1,5 +1,5 @@
---
title: roll
title: Rotate list elements
tags: list,beginner
firstSeen: 2020-11-02T19:15:44+02:00
lastUpdated: 2020-11-02T19:15:44+02:00

View File

@ -1,5 +1,5 @@
---
title: sample
title: Random element in list
tags: list,random,beginner
firstSeen: 2019-08-20T16:02:37+03:00
lastUpdated: 2020-10-28T11:45:34+02:00

View File

@ -1,5 +1,5 @@
---
title: shuffle
title: Shuffle list
tags: list,random,advanced
firstSeen: 2018-01-19T11:59:33+02:00
lastUpdated: 2020-11-02T19:28:35+02:00

View File

@ -1,5 +1,5 @@
---
title: similarity
title: List similarity
tags: list,beginner
firstSeen: 2019-08-20T16:12:11+03:00
lastUpdated: 2020-11-02T19:28:35+02:00

View File

@ -1,5 +1,5 @@
---
title: slugify
title: String to slug
tags: string,regexp,intermediate
firstSeen: 2020-10-05T21:57:34+03:00
lastUpdated: 2020-10-25T12:43:20+02:00

View File

@ -1,5 +1,5 @@
---
title: snake
title: Snakecase string
tags: string,regexp,intermediate
firstSeen: 2019-08-21T08:59:54+03:00
lastUpdated: 2020-11-02T19:28:35+02:00

View File

@ -1,5 +1,5 @@
---
title: some
title: Test if some list elements are truthy
tags: list,intermediate
firstSeen: 2019-08-20T11:42:30+03:00
lastUpdated: 2020-11-02T19:28:35+02:00

View File

@ -1,5 +1,5 @@
---
title: sort_by_indexes
title: Sort list by indexes
tags: list,intermediate
firstSeen: 2020-09-07T09:58:39+03:00
lastUpdated: 2020-11-02T19:28:35+02:00

View File

@ -1,5 +1,5 @@
---
title: sort_dict_by_key
title: Sort dictionary by key
tags: dictionary,intermediate
firstSeen: 2020-10-16T21:24:33+03:00
lastUpdated: 2020-11-02T19:28:35+02:00

View File

@ -1,5 +1,5 @@
---
title: sort_dict_by_value
title: Sort dictinary by value
tags: dictionary,intermediate
firstSeen: 2020-10-16T21:25:19+03:00
lastUpdated: 2021-01-08T00:56:50+02:00

View File

@ -1,5 +1,5 @@
---
title: split_lines
title: Split into lines
tags: string,beginner
firstSeen: 2019-08-20T16:15:15+03:00
lastUpdated: 2020-11-02T19:28:35+02:00

View File

@ -1,5 +1,5 @@
---
title: spread
title: Spread list
tags: list,intermediate
firstSeen: 2018-01-08T22:38:05+02:00
lastUpdated: 2020-09-15T16:13:06+03:00

View File

@ -1,5 +1,5 @@
---
title: sum_by
title: Sum list based on function
tags: math,list,beginner
firstSeen: 2019-08-21T08:30:04+03:00
lastUpdated: 2020-11-02T19:28:35+02:00

View File

@ -1,5 +1,5 @@
---
title: sum_of_powers
title: Sum of powers
tags: math,intermediate
firstSeen: 2020-10-04T14:21:41+03:00
lastUpdated: 2020-11-02T19:28:35+02:00

View File

@ -1,5 +1,5 @@
---
title: symmetric_difference
title: List symmetric difference
tags: list,intermediate
firstSeen: 2019-08-21T08:37:04+03:00
lastUpdated: 2020-11-02T19:28:35+02:00

View File

@ -1,5 +1,5 @@
---
title: symmetric_difference_by
title: List symmetric difference based on function
tags: list,intermediate
firstSeen: 2019-08-21T08:37:04+03:00
lastUpdated: 2020-11-02T19:28:35+02:00

View File

@ -1,5 +1,5 @@
---
title: tail
title: List tail
tags: list,beginner
firstSeen: 2019-08-20T14:08:52+03:00
lastUpdated: 2020-11-02T19:28:35+02:00

View File

@ -1,5 +1,5 @@
---
title: take
title: Remove list elements
tags: list,beginner
firstSeen: 2020-03-16T19:52:44+02:00
lastUpdated: 2020-09-15T16:13:06+03:00

View File

@ -1,5 +1,5 @@
---
title: take_right
title: Remove list elements from the end
tags: list,beginner
firstSeen: 2020-03-16T19:52:44+02:00
lastUpdated: 2020-09-15T16:13:06+03:00

View File

@ -1,5 +1,5 @@
---
title: to_binary
title: Number to binary
tags: math,beginner
firstSeen: 2020-10-07T19:46:01+03:00
lastUpdated: 2020-10-07T19:46:01+03:00

View File

@ -1,5 +1,5 @@
---
title: to_dictionary
title: Lists to dictionary
tags: list,dictionary,intermediate
firstSeen: 2020-04-13T19:30:29+03:00
lastUpdated: 2020-11-02T19:28:35+02:00

View File

@ -1,5 +1,5 @@
---
title: to_hex
title: Number to hex
tags: math,beginner
firstSeen: 2020-10-09T09:45:47+03:00
lastUpdated: 2020-10-09T09:45:47+03:00

View File

@ -1,5 +1,5 @@
---
title: to_iso_date
title: Date to ISO format
tags: date,intermediate
firstSeen: 2020-10-28T16:20:50+02:00
lastUpdated: 2021-01-07T23:30:28+02:00

View File

@ -1,11 +1,11 @@
---
title: to_roman_numeral
title: Integer to roman numeral
tags: math,string,intermediate
firstSeen: 2020-10-07T00:04:09+03:00
lastUpdated: 2020-11-02T19:28:35+02:00
---
Converts an integer to its roman numeral representation.
Converts an integer to its roman numeral representation.
Accepts value between `1` and `3999` (both inclusive).
- Create a lookup list containing tuples in the form of (roman value, integer).

View File

@ -1,5 +1,5 @@
---
title: transpose
title: Transpose matrix
tags: list,intermediate
firstSeen: 2019-10-02T07:03:20+03:00
lastUpdated: 2020-11-02T19:28:35+02:00

View File

@ -1,5 +1,5 @@
---
title: unfold
title: Unfold list
tags: function,list,advanced
firstSeen: 2020-01-02T20:17:51+02:00
lastUpdated: 2020-11-02T19:28:35+02:00
@ -14,7 +14,7 @@ Builds a list, using an iterator function and an initial seed value.
```py
def unfold(fn, seed):
def fn_generator(val):
while True:
while True:
val = fn(val[1])
if val == False: break
yield val[0]

View File

@ -1,5 +1,5 @@
---
title: union
title: List union
tags: list,beginner
firstSeen: 2019-08-21T09:10:39+03:00
lastUpdated: 2020-11-02T19:28:35+02:00

View File

@ -1,5 +1,5 @@
---
title: union_by
title: List union based on function
tags: list,intermediate
firstSeen: 2019-08-21T09:10:39+03:00
lastUpdated: 2020-11-02T19:28:35+02:00

View File

@ -1,5 +1,5 @@
---
title: unique_elements
title: Unique elements in list
tags: list,beginner
firstSeen: 2018-10-09T20:01:19+03:00
lastUpdated: 2020-09-15T16:13:06+03:00

View File

@ -1,5 +1,5 @@
---
title: values_only
title: Dictionary values
tags: dictionary,list,beginner
firstSeen: 2018-04-01T23:56:31+03:00
lastUpdated: 2020-11-02T19:28:35+02:00

View File

@ -1,5 +1,5 @@
---
title: weighted_average
title: Weighted average
tags: math,list,intermediate
firstSeen: 2020-10-09T07:00:33+03:00
lastUpdated: 2020-12-24T15:00:53+02:00

View File

@ -1,5 +1,5 @@
---
title: when
title: Apply function when true
tags: function,intermediate
firstSeen: 2020-01-02T20:25:45+02:00
lastUpdated: 2020-11-09T23:56:11+02:00

View File

@ -1,5 +1,5 @@
---
title: words
title: String to words
tags: string,regexp,beginner
firstSeen: 2020-10-04T00:35:00+03:00
lastUpdated: 2020-11-02T19:28:35+02:00