This file contains hidden or 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
$echo; for test in defaultdict setdefault check_in; do echo -n "${test} "; python3 -m timeit -s "from test import test_${test} as test_func" "test_func()"; done | |
defaultdict 1000 loops, best of 3: 999 usec per loop | |
setdefault 1000 loops, best of 3: 1.89 msec per loop | |
check_in 1000 loops, best of 3: 1.27 msec per loop |
This file contains hidden or 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
server { | |
listen 80 default_server; | |
location = /banana/ { | |
return 200 'this is a banana.\n'; | |
} | |
location / { | |
return 200 'not proxied.\n'; | |
} |
This file contains hidden or 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
"Version": "2012-10-17", | |
"Statement": [ | |
{ | |
"Sid": "", | |
"Effect": "Deny", | |
"NotPrincipal": { | |
"AWS": [ | |
"arn:aws:iam::99999999999:role/AppRole", | |
"arn:aws:iam::99999999999:role/AdminRole" |
OlderNewer