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 requests | |
| from py2neo import Graph, Node | |
| from time import time | |
| import json | |
| import re | |
| def main(): | |
| t1 = time() | |
| connection = connect_database() |
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": "0.2.0", | |
| "configurations": [ | |
| { | |
| "type": "node", | |
| "request": "launch", | |
| "name": "nodemon", | |
| "runtimeExecutable": "nodemon", | |
| "program": "${workspaceFolder}/server.js", | |
| "restart": true, |
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 csv | |
| import requests | |
| import time | |
| from lxml import html | |
| title_list = [] | |
| author_list = [] | |
| def get_authors(element): |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 { NgModule } from '@angular/core'; | |
| import { BrowserModule } from '@angular/platform-browser'; | |
| import { HttpClientModule, HttpClient } from '@angular/common/http'; | |
| import { TranslateLoader, TranslateModule } from '@ngx-translate/core'; | |
| import { TranslateHttpLoader } from '@ngx-translate/http-loader'; | |
| import { AppComponent } from './app.component'; | |
| @NgModule({ |
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
| { | |
| "mainPhrase": "This is the main phrase.", | |
| "subPhrase": "This is the sub phrase.", | |
| "buttonPhrase": "pt-BR" | |
| } |
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
| { | |
| "mainPhrase": "Essa é a frase principal.", | |
| "subPhrase": "Essa é a subfrase.", | |
| "buttonPhrase": "en" | |
| } |
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 { HttpClient, HttpHeaders } from '@angular/common/http'; | |
| import { Injectable } from '@angular/core'; | |
| import { Observable, throwError } from 'rxjs'; | |
| import { catchError, map } from 'rxjs/operators'; | |
| @Injectable({ | |
| providedIn: 'root' | |
| }) | |
| export class ApiService { |
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 { Component, OnInit } from '@angular/core'; | |
| import { TranslateService } from '@ngx-translate/core'; | |
| import { lastValueFrom } from 'rxjs'; | |
| import { ApiService } from './api.service'; | |
| @Component({ | |
| selector: 'app-root', | |
| template: ` | |
| <div> | |
| <h1 translate> mainPhrase </h1> |
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
| FROM python:3.8-slim-buster | |
| COPY ./requirements.txt /app/requirements.txt | |
| COPY . /app | |
| WORKDIR /app | |
| #JAVA CONFIG | |
| RUN apt-get update | |
| RUN apt-get install -y apt-utils \ |