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
import pgp from "pg-promise"; | |
const connections = []; | |
export default class Redshift { | |
static async getConnection() { | |
const dbName = "myDb"; | |
if (!connections[dbName]) { | |
const dbUser = "dbUser"; |
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
import gzip | |
import shutil | |
from unicodedata import normalize | |
from bs4 import BeautifulSoup | |
import ftfy | |
import re | |
from tqdm import tqdm | |
import csv |
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
# console: | |
# export AWS_ACCESS_KEY_ID=AWS_KEY | |
# export AWS_SECRET_ACCESS_KEY=AWS_SECRET | |
from tqdm import tqdm | |
import boto3 | |
import os | |
s3 = boto3.client('s3') |
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
NAMESPACE=ingress-nginx; kubectl get namespace $NAMESPACE -o json | jq 'del(.spec.finalizers[0])' | kubectl replace --raw "/api/v1/namespaces/$NAMESPACE/finalize" -f - |
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
data = [ | |
{ | |
"text": "paciente diagnosticado com dm , nega has . paciente acompanhado da mãe , dona Maria Fagundes", | |
"clinical_entities": [ | |
{ | |
"entity": "dm", | |
"entity_tokens": ["dm"], | |
"label": "DISEASE", | |
"start": 27, | |
"end": 29 |
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
# Architecture | |
- this is a python module with the followin structure | |
module_name | |
-- __init__.py | |
-- __main__.py | |
-- arg_parser.py | |
requirements.txt | |
- you should always update the arg_parser.py accordingly when creating new parameters to the application. |
OlderNewer