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
headers = { | |
"accept": "application/json", | |
"Notion-Version": "2022-06-28", | |
"content-type": "application/json", | |
"Authorization": f"Bearer {access_token}", | |
} | |
url = "https://api.notion.com/v1/blocks/7682fcd5efc740859ea08269201f1e26" | |
import json |
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
Show hidden characters
{ | |
"compilerOptions": { | |
"target": "es2020", | |
"module": "commonjs", | |
"sourceMap": true, | |
"outDir": "dist", | |
"rootDir": "src", | |
"baseUrl": "src", | |
"strict": true, | |
"noImplicitAny": true, |
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
{ | |
"ipcMode": null, | |
"executionRoleArn": "arn:aws:iam::624460490009:role/IaC-EcsTaskExecutionRole", | |
"containerDefinitions": [ | |
{ | |
"dnsSearchDomains": null, | |
"environmentFiles": null, | |
"logConfiguration": { | |
"logDriver": "awslogs", | |
"secretOptions": null, |
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 { NodeTracerProvider } from '@opentelemetry/node' | |
import { Resource } from '@opentelemetry/resources' | |
import { OTLPTraceExporter } from '@opentelemetry/exporter-trace-otlp-http' | |
import { BatchSpanProcessor } from '@opentelemetry/tracing' | |
import { trace } from '@opentelemetry/api' | |
const resource = new Resource({ 'service.name': 'api-feature-flag-manager' }) | |
const provider = new NodeTracerProvider({ resource }) | |
import { registerInstrumentations } from '@opentelemetry/instrumentation' |
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 collections import deque | |
inf = float('inf') | |
def nodes_f(map): | |
counter = 2 | |
nodes = [] | |
nodesCoords = {} | |
start = None | |
end = None |
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
# How to consume Github Package private registry with yarn? | |
Create an .npmrc file in the same location as the package.json with this content. | |
``` | |
registry=https://registry.yarnpkg.com/ | |
@<username>:registry=https://npm.pkg.github.com | |
//npm.pkg.github.com/:_authToken=<your auth token> | |
always-auth=true |