Skip to content

Instantly share code, notes, and snippets.

View emersxw's full-sized avatar
😎
oh, hey!

Emerson Lopes emersxw

😎
oh, hey!
  • Upstart13
  • São Paulo / Brazil
  • 11:52 (UTC -03:00)
  • LinkedIn in/emersxw
View GitHub Profile
# If you come from bash you might have to change your $PATH.
# export PATH=$HOME/bin:/usr/local/bin:$PATH
# Path to your oh-my-zsh installation.
export ZSH=/Users/lupuselit/.oh-my-zsh
export PATH=${PATH}:/usr/local/mysql/bin
# Set name of the theme to load. Optionally, if you set this to "random"
# it'll load a random theme each time that oh-my-zsh is loaded.
# See https://github.com/robbyrussell/oh-my-zsh/wiki/Themes
const express = require('express');
const app = express();
app.get('/', (req, res) {
res.send('Hello world!');
});
app.listen(3000, () => {
console.log('Magic happens on port 3000')
})
@emersxw
emersxw / .eslintrc
Created April 14, 2018 11:44
ESLint config
{
"plugins": [
"react"
],
"extends": "airbnb",
"env": {
"browser": true,
"node": true,
"es6": true,
"commonjs": true
@emersxw
emersxw / .vscode
Last active October 5, 2018 13:03
vsCode Config
{
"editor.tabSize": 2,
"editor.scrollbar.verticalScrollbarSize": 1,
"explorer.scrollbar.verticalScrollbarSize": 1,
"editor.scrollbar.horizontalScrollbarSize": 1,
"editor.overviewRulerBorder": false,
"editor.snippetSuggestions": "top",
"prettier.eslintIntegration": true,
"workbench.welcome.enable": false,
"prettier.singleQuote": true,
const express = require('express'),
bodyParser = require('body-parser');
app = express();
const todoRoutes = require('./routes/todos');
// body parser conf
app.use(bodyParser.json());
app.use(bodyParser.urlencoded({extended: true}));