DJANGO
FLASK
REACTJS ReactJS handle 401 and 403
DJANGO
FLASK
REACTJS ReactJS handle 401 and 403
COMPANY_SCHEMA = { | |
'uid': {'type': 'string', 'required': True}, | |
'company_website': {'type': 'string', "required": True}, | |
'company_name': {'type': 'string', 'required': True, 'coerce': str.title}, | |
'company_name_alias': {'type': 'list', 'schema': {'type': 'string'}}, | |
'company_acronym': {'type': 'string'}, | |
'ticker_symbols': { | |
'type': 'list', | |
'schema': { | |
'type': 'dict', |
from functools import reduce | |
pipeline = [lambda x: x * 3, lambda x: x + 1, lambda x: x / 2] | |
val = reduce(lambda x, f: f(x), pipeline, 3) | |
print(val) |
def unique_names(names1, names2): | |
names1_set = set(names1) | |
names2_set = set(names2) | |
return list(names1_set.union(names2_set)) | |
names1 = ["Ava", "Emma", "Olivia"] | |
names2 = ["Olivia", "Sophia", "Emma"] | |
print(unique_names(names1, names2)) |
SELECT name | |
FROM employees | |
WHERE id NOT IN (SELECT managerId FROM employees WHERE managerId IS NOT NULL); |
SELECT userId, avg(duration) | |
FROM sessions | |
GROUP BY userid HAVING COUNT(userid) > 1; |
I hereby claim:
To claim this, I am signing this object: