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
extends KinematicBody2D | |
var velocidade = 200 | |
var pulo = 500 | |
var gravidade = 20 | |
var movimento = Vector2() | |
func _physics_process(_delta): | |
movimento.y += gravidade |
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
<style> | |
div { | |
align-item: center; | |
display: flex; | |
justify-content: center; | |
height: 300px; | |
width: 300px; | |
} | |
button { | |
background: red; |
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
<style> | |
div { | |
background-image: url('https://picsum.photos/600/400'); | |
background-size: cover; | |
height: 400px; | |
width: 600px; | |
} | |
</style> | |
<div></div> |
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
<div class="catalogo"> | |
<div class="produto"> | |
<div class="produto-imagem> | |
<img src="/mouse.png" alt="imagem do produto"/> | |
</div> | |
<div class="produto-dados"> | |
<h1> Mouse Razer Vipher </h1> | |
<p> O Mouse mais preciso e caro do universo gamer! </p> | |
<p> R$ 1.900,00 </p> |
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
<button onclick="Acessar()"> Logar </button> | |
<script> | |
function Acessar() { | |
location.href = "/inicio.html" | |
} | |
</script> |
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
<style> | |
div.scrolling { | |
background: red; | |
border: 16px solid purple; | |
display: flex; | |
gap: 16px; | |
height: 200px; | |
overflow: hidden; | |
padding: 16px; |
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
// npx expo install expo-linear-gradient | |
import React from "react" | |
import { Text } from "react-native" | |
import { LinearGradient } from "expo-linear-gradient" | |
export default function App() { | |
return <LinearGradient colors={["red", "transparent"]}> | |
<Text> Olá, testando o Linear Gradient do Expo </Text> |
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
// Criptografar | |
const iv = crypto.randomBytes(16); | |
const cipher = crypto.createCipheriv('aes-256-cbc', CRYPTO_SECRET, iv); | |
let dadosCriptografados = cipher.update(JSON.stringify({imei, dataInicial, dataFinal}), 'utf8', 'hex'); | |
dadosCriptografados += cipher.final('hex'); | |
dadosCriptografados = iv.toString('hex') + dadosCriptografados; | |
// Descriptografar | |
const ivRecuperado = Buffer.from(dadosCriptografados.slice(0, 32), 'hex'); |
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 axios from "axios"; | |
import POSITIONMOCK from "./POSITIONMOCK.js"; | |
// ECONNREFUSED - SERVICO DESLIGADO (CONEXAO RECUSADA) | |
// ERR_NETWORK - ERRO NA CONEXAO | |
// ECONNRESET - SERVICO CONEXAO RESETADA | |
// SSL ALERT NUMBER 40 - CLOUDFLARE BLOQUEIO | |
// ETIMEDOUT - CONEXAO PERDIDA POR TEMPO |
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
<head> | |
<title> JSON to URL </title> | |
<script src="https://cdnjs.cloudflare.com/ajax/libs/crypto-js/4.1.1/crypto-js.min.js"></script> | |
</head> | |
<body style="font-family: monospace; display: flex; align-items: center; justify-content: center; text-align: center; width: 100vw; margin: 0; height: 100vh;"> |
OlderNewer