Enter this in the search box along with your search terms:
Get all gists from the user santisbon.
user:santisbon
Find all gists with a .yml extension.
extension:yml
Find all gists with HTML files.
language:html
Enter this in the search box along with your search terms:
Get all gists from the user santisbon.
user:santisbon
Find all gists with a .yml extension.
extension:yml
Find all gists with HTML files.
language:html
| # Python 3.10 switch case example for a list | |
| def file_handler_v1(command): | |
| match command.split(): | |
| case ["show"]: | |
| print("List all files and directories: ") | |
| # code to list files | |
| case ["remove", *files]: | |
| print("Removing files: {}".format(files)) | |
| # code to remove files | |
| case _: |
| URL |
|---|
https://isporsearch302.aws.mtxgp.net//searchblox/servlet/SearchServlet?query=*&default=AND&xsl=json&facet=on&col=2&pagesize=10&f.events.filter=2019-11%2C%20ISPOR%20Europe%202019%2C%20Copenhagen%2C%20Denmark&page=1&sort=relevance&facet.field=citable&f.citable.size=1000&facet.field=categories&f.categories.size=1000&facet.field=areaofstudy&f.areaofstudy.size=1000&facet.field=disease&f.disease.size=1000&facet.field=events&f.events.size=1000
| class mdict(dict): | |
| def __missing__(self, key): | |
| keys = list(self.keys()) | |
| return next(in_key for in_key in keys if key in in_key) or keys[0] | |
| if __name__ == "__main__": | |
| item = mdict() | |
| item["abc"] = 123 |
| >>> df1 | |
| name flag | |
| 0 1 1 | |
| 1 2 1 | |
| 2 3 1 | |
| 3 4 1 | |
| >>> df2 | |
| name flag | |
| 0 3 NaN | |
| 1 4 NaN |
| from itertools import chain | |
| def gen_iterables(): | |
| while True: | |
| for i in range(1, 6): # memory equivalent to that used by `range` is consumed at any moment | |
| yield range(i) | |
| gen = chain.from_iterable(gen_iterables()) | |
| for i in range(20): |
| items = list(range(1,11)) | |
| i_items = iter(items) | |
| while el := next(i_items): | |
| print(el) |
| pandas | |
| openpyxl | |
| spacy |