Skip to content

Instantly share code, notes, and snippets.

Leonardo Marcelino leomarcelino

  • UNIFEOB
  • São João da Boa Vista
Block or report user

Report or block leomarcelino

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@leomarcelino
leomarcelino / multer.js
Created Oct 30, 2019
Multer config example
View multer.js
const multer = require('multer')
const path = require('path')
const crypto = require('crypto')
module.exports = {
dest: path.resolve(__dirname, '..', '..', 'tmp', 'uploads'),
storage: multer.diskStorage({
destination: (req, file, done) => {
done(null, path.resolve(__dirname, '..', '..', 'tmp', 'uploads'))
},
@leomarcelino
leomarcelino / aula-07-tarefas-main-styles.js
Created Sep 18, 2019
Aula 07 - Tarefas - Main/styles.js
View aula-07-tarefas-main-styles.js
import styled, { css } from "styled-components";
export const Container = styled.div`
display: flex;
flex-direction: column;
align-items: center;
padding-top: 60px;
`;
export const Title = styled.h1`
You can’t perform that action at this time.