Skip to content

Instantly share code, notes, and snippets.

View luscas's full-sized avatar
📍
home office

Lucas luscas

📍
home office
View GitHub Profile
class Noticia {
String title;
DateTime createdAt;
Noticia(this.title, this.createdAt);
}
void main() {
List<Noticia> registers = [
Noticia("Primeira postagem", DateTime(2022,07,01)),
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) {
import os
from flask import Flask
from flask import request
from pika.compat import xrange
from pyspark.sql import SparkSession
app = Flask(__name__)
version: "3.9"
volumes:
kong-db:
driver: local
networks:
internal:
external: false