Songs that make you nostalgic for a time or a place you haven't been in
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function(sttc){/* | |
Copyright The Closure Library Authors. | |
SPDX-License-Identifier: Apache-2.0 | |
*/ | |
'use strict';var aa={},n=this||self;function ba(a){a=a.split(".");for(var b=n,c=0;c<a.length;c++)if(b=b[a[c]],null==b)return null;return b}function ca(a){var b=typeof a;return"object"!=b?b:a?Array.isArray(a)?"array":b:"null"}function da(a){var b=ca(a);return"array"==b||"object"==b&&"number"==typeof a.length}function ea(a){var b=typeof a;return"object"==b&&null!=a||"function"==b}function fa(a){return Object.prototype.hasOwnProperty.call(a,ha)&&a[ha]||(a[ha]=++ia)} | |
var ha="closure_uid_"+(1E9*Math.random()>>>0),ia=0;function ja(a,b,c){return a.call.apply(a.bind,arguments)}function ka(a,b,c){if(!a)throw Error();if(2<arguments.length){var d=Array.prototype.slice.call(arguments,2);return function(){var e=Array.prototype.slice.call(arguments);Array.prototype.unshift.apply(e,d);return a.apply(b,e)}}return function(){return a.apply(b,arguments)}} | |
function la(a,b,c){la=Function.prototype.bind&&-1!=Function.prototy |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pandas | |
openpyxl | |
spacy |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
items = list(range(1,11)) | |
i_items = iter(items) | |
while el := next(i_items): | |
print(el) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
>>> df1 | |
name flag | |
0 1 1 | |
1 2 1 | |
2 3 1 | |
3 4 1 | |
>>> df2 | |
name flag | |
0 3 NaN | |
1 4 NaN |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
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