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.8" | |
services: | |
minio: | |
image: quay.io/minio/minio | |
command: server /data --console-address ":9001" | |
networks: | |
- traefik_public | |
volumes: | |
- minio_data:/data |
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
//image upload | |
if ($request->hasFile('image') && $request->file('image')->isValid()) { | |
$requestImage = $request->image; | |
$extension = $requestImage->extension(); | |
$imageName = $requestImage->getClientOriginalName() . strtotime("now") . "." . $extension; | |
$request->file('image')->move(public_path('img/events', $imageName)); | |
$event->image = $imageName; | |
} | |
$event->save(); |
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 User(ModelBase): | |
email = TextField(unique=True) | |
name = TextField() | |
password = TextField() | |
def login(self, email, password): | |
user = self.select().where(self.email==email).get() | |
if user and user.password == password: | |
return user | |
return None |
This file has been truncated, but you can view the full file.
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
[{ | |
"_id": { | |
"$oid": "5fd6cc2b3eb38e211cabdb2c" | |
}, | |
"product_id": "udemy-3605406", | |
"product_title": "SQL : Detecção e correcção da corrupção de bases de dados", | |
"product_description": "Descubra como detectar fácil e automaticamente a corrupção com uma perda mínima de dados no SQL Server 2019.", | |
"product_slug": "deteccion-y-correccion-de-la-corrupcion-de-la-base-de-datos-i", | |
"product_url": "https://click.linksynergy.com/deeplink?id=pvNIOMONdAY&mid=39197&murl=https%3A%2F%2Fwww.udemy.com%2Fcourse%2Fdeteccion-y-correccion-de-la-corrupcion-de-la-base-de-datos-i%2F", | |
"product_image": "https://img-a.udemycdn.com/course/480x270/3605406_1313_4.jpg?JHnr7esnU3O3mRsf5rqUm3SjmhZxR_NpOIfwu5WTVGgM3YnRZUpjtxT0ndIPJMCrwPKCe4220drJUoDdgQCVwLn7Tnwff6F47M5aN7DlkT5UJgdCfmbWEF63iyg6QNIW", |
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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8" /> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> | |
<title>Gota d'água com CSS</title> | |
<style> | |
body { | |
margin: 0; | |
display: flex; |
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
<!-- item will be appened to this layout --> | |
<div id="log" class="sl__chat__layout"> | |
</div> | |
<!-- chat item --> | |
<script type="text/template" id="chatlist_item"> | |
<div data-from="{from}" data-id="{messageId}"> | |
<span class="meta" style="color: {color}"> | |
<span class="badges"> | |
</span> |
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
var nome = document.getElementsByClassName("field-nome"); | |
var operounabolsa = document.getElementsByClassName("field-operounabolsa"); | |
var email = document.getElementsByClassName("field-email"); | |
var sonho = document.getElementsByClassName("field-sonho"); | |
var telefone = document.getElementsByClassName("field-telefone"); | |
var botao = document.getElementsByClassName("fl-optin-button"); | |
operounabolsa[0].style.display = "none"; | |
email[0].style.display = "none"; | |
sonho[0].style.display = "none"; |
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
app.get('/l/:url', async function (req, res) { | |
try { | |
await getInfo(req.params.url) // não tem haver com 301 | |
await sendClick(req.params.url) // não tem haver com 301 | |
await res.status(301).redirect(linkredir) | |
} catch (error) { | |
// Passes errors into the error handler | |
return next(error) | |
} | |
}); |
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
<!DOCTYPE html> | |
<html lang="pt-br"> | |
<head> | |
<meta charset="UTF-8" /> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> | |
<meta http-equiv="X-UA-Compatible" content="ie=edge" /> | |
<title>CSS load API</title> | |
<style> | |
body { |
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
[ | |
{ | |
"nome":"Palmeiras", | |
"silga":"PAL", | |
"pontos":"80", | |
"jogos":"38", | |
"vitorias":"23", | |
"empates":"11", | |
"derrotas":"4", | |
"gols_pro":"64", |
NewerOlder