Skip to content

Instantly share code, notes, and snippets.

View devgiordane's full-sized avatar
🏠
Working from home

Giordane Oliveira devgiordane

🏠
Working from home
View GitHub Profile
version: "3.8"
services:
minio:
image: quay.io/minio/minio
command: server /data --console-address ":9001"
networks:
- traefik_public
volumes:
- minio_data:/data
//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();
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.
[{
"_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",
@devgiordane
devgiordane / gota.html
Last active October 24, 2020 14:38
Nesse vídeo eu ensino a fazer o desenho de uma gota em CSS, a dica aqui é usar o transform: rotate() e o border-radius, com um pouco de criatividade na propriedade box-shadow é possível chegar a um resultado bem interessante.
<!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;
<!-- 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>
@devgiordane
devgiordane / formulario_chat.js
Created May 23, 2020 17:57
formulario_chat.js
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";
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)
}
});
<!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 {
@devgiordane
devgiordane / JSON_TABELA_BRASILEIRAO_2018.json
Created February 5, 2019 01:15
Json de exemplo da primeira aula de VUE JS
[
{
"nome":"Palmeiras",
"silga":"PAL",
"pontos":"80",
"jogos":"38",
"vitorias":"23",
"empates":"11",
"derrotas":"4",
"gols_pro":"64",