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
class Noticia { | |
String title; | |
DateTime createdAt; | |
Noticia(this.title, this.createdAt); | |
} | |
void main() { | |
List<Noticia> registers = [ | |
Noticia("Primeira postagem", DateTime(2022,07,01)), |
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 { withAuth } from "next-auth/middleware"; | |
export default withAuth({ | |
callbacks: { | |
authorized: ({ token }) => { | |
if (token) { | |
const expiration = Number(token.exp) * 1000; | |
const now = Date.now(); | |
if (expiration < now) { |
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 os | |
from flask import Flask | |
from flask import request | |
from pika.compat import xrange | |
from pyspark.sql import SparkSession | |
app = Flask(__name__) | |
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
version: "3.9" | |
volumes: | |
kong-db: | |
driver: local | |
networks: | |
internal: | |
external: false |
OlderNewer