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
import pandas as pd | |
from timeit import Timer | |
def euri10(df): | |
df['t'] = (df['Matrix'].str.endswith('A') & df['Matrix'].shift(-1).str.endswith('B')) | ( | |
df['Matrix'].str.endswith('B') & df['Matrix'].shift(1).str.endswith('A')) | |
df['p'] = (df['Matrix'].str[:-1] == df['Matrix'].shift(-1).str[:-1]) | ( |
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
contract contract1 { | |
struct Person { | |
string name; | |
string description; | |
address primaryAddress; | |
string linkToWebsite; | |
string linkToPicture; | |
address secondaryAddress; | |
uint age; |
This file has been truncated, but you can view the full file.
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
{"label":"","duration":78236.759795,"markers":[{"causeName":"setTimeout handler","end":1447.7127549999996,"endStack":null,"isOffMainThread":false,"name":"Javascript","processType":0,"stack":1,"start":1447.0628530000004},{"causeName":"setTimeout handler","end":1448.4535580000002,"endStack":null,"isOffMainThread":false,"name":"Javascript","processType":0,"stack":2,"start":1447.723003},{"causeName":"setInterval handler","end":1449.0835109999998,"endStack":null,"isOffMainThread":false,"name":"Javascript","processType":0,"stack":3,"start":1448.4638160000004},{"causeName":"setInterval handler","end":1449.6402279999993,"endStack":null,"isOffMainThread":false,"name":"Javascript","processType":0,"stack":4,"start":1449.0920529999994},{"end":1451.0960530000002,"endStack":null,"isOffMainThread":false,"name":"nsCycleCollector::ForgetSkippable","processType":0,"stack":null,"start":1449.7167169999993},{"end":1454.4447019999998,"endStack":null,"eventPhase":2,"isOffMainThread":false,"name":"DOMEvent","processType":0,"stack":n |
This file has been truncated, but you can view the full file.
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
[{"pid":19098,"tid":19098,"ts":460914754803,"ph":"X","cat":"toplevel","name":"MessageLoop::RunTask","args":{"src_file":"./../../base/trace_event/trace_log.cc","src_func":"SetEnabled"},"dur":15,"tdur":13,"tts":1109178}, | |
{"pid":19098,"tid":19098,"ts":460914754819,"ph":"X","cat":"toplevel","name":"MessageLoop::RunTask","args":{"src_file":"./../../base/trace_event/trace_log.cc","src_func":"SetEnabled"},"dur":4,"tdur":4,"tts":1109192}, | |
{"pid":19098,"tid":19098,"ts":460914754827,"ph":"X","cat":"toplevel","name":"MessageLoop::RunTask","args":{"src_file":"./../../base/trace_event/trace_log.cc","src_func":"SetEnabled"},"dur":1,"tdur":1,"tts":1109200}, | |
{"pid":19098,"tid":19098,"ts":460914754828,"ph":"X","cat":"toplevel","name":"MessageLoop::RunTask","args":{"src_file":"./../../base/trace_event/trace_log.cc","src_func":"SetEnabled"},"dur":2,"tdur":1,"tts":1109202}, | |
{"pid":19098,"tid":19098,"ts":460914754833,"ph":"X","cat":"toplevel","name":"MessageLoop::RunTask","args":{"src_file":"./../../base/trace_event/trace_log.cc" |
This file has been truncated, but you can view the full file.
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
[{"pid":19098,"tid":19098,"ts":460914754803,"ph":"X","cat":"toplevel","name":"MessageLoop::RunTask","args":{"src_file":"./../../base/trace_event/trace_log.cc","src_func":"SetEnabled"},"dur":15,"tdur":13,"tts":1109178}, | |
{"pid":19098,"tid":19098,"ts":460914754819,"ph":"X","cat":"toplevel","name":"MessageLoop::RunTask","args":{"src_file":"./../../base/trace_event/trace_log.cc","src_func":"SetEnabled"},"dur":4,"tdur":4,"tts":1109192}, | |
{"pid":19098,"tid":19098,"ts":460914754827,"ph":"X","cat":"toplevel","name":"MessageLoop::RunTask","args":{"src_file":"./../../base/trace_event/trace_log.cc","src_func":"SetEnabled"},"dur":1,"tdur":1,"tts":1109200}, | |
{"pid":19098,"tid":19098,"ts":460914754828,"ph":"X","cat":"toplevel","name":"MessageLoop::RunTask","args":{"src_file":"./../../base/trace_event/trace_log.cc","src_func":"SetEnabled"},"dur":2,"tdur":1,"tts":1109202}, | |
{"pid":19098,"tid":19098,"ts":460914754833,"ph":"X","cat":"toplevel","name":"MessageLoop::RunTask","args":{"src_file":"./../../base/trace_event/trace_log.cc" |
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
#!/bin/bash | |
set -euxo pipefail | |
BASEDIR=$(dirname "$0") | |
mkdir -p ${BASEDIR}/cert && cd ${BASEDIR}/cert | |
sudo rm -f server-key.pem | |
# server certificate |
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
import asyncio | |
import functools | |
import ssl | |
from pathlib import Path | |
import pytest | |
from databases import Database | |
def async_adapter(wrapped_func): | |
""" |
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
import logging | |
import asyncio | |
import uvicorn | |
from aio_pika import connect_robust, ExchangeType, IncomingMessage | |
from celery import Celery | |
from fastapi import FastAPI | |
from starlette.applications import Starlette | |
from starlette.requests import Request | |
from starlette.responses import JSONResponse |
OlderNewer