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 kong:latest | |
| USER root | |
| RUN luarocks install kong-jwt2header && \ | |
| luarocks install kong-upstream-jwt && \ | |
| luarocks install kong-spec-expose | |
| USER kong |
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: "3.9" | |
| volumes: | |
| kong-db: | |
| driver: local | |
| networks: | |
| internal: | |
| external: false |
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 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 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 { 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 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
| 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 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
| <?php | |
| namespace App\Http\Controllers; | |
| use Illuminate\Http\Request; | |
| use Illuminate\Support\Facades\Auth; | |
| class AuthController extends Controller | |
| { | |
| // Muda a rota pra AuthController@index ao invés de dashboard pra seguir o padrão REST (index, show, update, create, delete...) |
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
| #include <stdio.h> | |
| #include <stdlib.h> | |
| #include <locale.h> | |
| void ordenaVetor(int v[], int n) { | |
| int i = 0, j = 0, menor = 0, troca = 0; | |
| /* percorre todo o vetor */ | |
| for(i = 0; i < n-1; i++) { | |
| /* procura o menor elemento para a posi��o "i" */ |
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
| const products = [ | |
| { | |
| id: 1, | |
| title: "Banho", | |
| description: "Realizamos a higiene completa do seu pet", | |
| quantity: 5, | |
| price: 79.9, | |
| }, | |
| { | |
| id: 2, |
This file has been truncated, but you can view the full file.
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
| {"v":"5.5.7","meta":{"g":"LottieFiles AE 0.1.20","a":"","k":"","d":"","tc":""},"fr":30,"ip":0,"op":300,"w":1200,"h":800,"nm":"Hero1","ddd":0,"assets":[{"id":"image_0","w":1200,"h":800,"u":"","p":"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAABLAAAAMgCAYAAAAz4JsCAAAgAElEQVR4XuzdUXITR9g/6m5Jdi45O8g/NzbYlYKsIN8OYAd4B5kdMOxA7MDsAHYQVnCgvrKDuTlhB/HdQbam/zWyMEpwgs24rR7No7uA9E738zapml9N98TgQ4AAAQIECBAgQIAAAQIECBAgQKBggVjw2AyNAAECBAgQIECAAAECBAgQIECAQBBgWQQECBAgQIAAAQIECBAgQIAAAQJFCwiwim6PwREgQIAAAQIECBAgQIAAAQIECAiwrAECBAgQIECAAAECBAgQIECAAIGiBQRYRbfH4AgQIECAAAECBAgQIECAAAECBARY1gABAgQIECBAgAABAgQIECBAgEDRAgKsottjcAQIECBAgAABAgQIECBAgAABAgIsa4AAAQIECBAgQIAAAQIECBAgQKBoAQFW0e0xOAIECBAgQIAAAQIECBAgQIAAAQGWNUCAAAECBAgQIECAAAECBAgQIFC0gACr6PYYHAECBAgQIECAAAECBAgQIECAgADLGiBAgAABAgQIECBAgAABAgQIEChaQIBVdHsMjgABAgQIECBAgAABAgQIECBAQIBlDRAgQIAAAQIECBAgQIAAAQIECBQtIMAquj0GR4AAAQIECBAgQIAAAQIECBAgIMCyBggQIECAAAECBAgQIECAAAECBIoWEGAV3R6DI0CAAAECBAgQIECAAAECBAgQEGBZAwQIECBAgAABAgQIECBAgAABAkULCLCKbo/BESBAgAABAgQIECBAgAABAgQICL |
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
| 0x1ad31a923af5ba1a6fdf3c180679cfa1ecd3f9d1 |
NewerOlder