Skip to content

Instantly share code, notes, and snippets.

View andyalmeida's full-sized avatar
:shipit:

André Almeida andyalmeida

:shipit:
View GitHub Profile
@andyalmeida
andyalmeida / - Configuring ZSH.md
Last active October 13, 2019 00:04
ZSH Configuration
@andyalmeida
andyalmeida / - Configuring VSCode.md
Last active October 16, 2019 23:41
VSCode Configuration

VSCode Configurations

Instaled extensions

  • Color Highlight
  • Dracula Official
  • EditorConfig for VS Code
  • ESLint
  • MaterialIcon Theme
  • Rocketseat React Native
@andyalmeida
andyalmeida / .eslintrc.js
Created October 16, 2019 23:43
ESLint Configuration
module.exports = {
env: {
es6: true,
node: true,
},
extends: [
'airbnb-base',
'prettier'
],
plugins: [
@andyalmeida
andyalmeida / .prettierrc
Last active October 17, 2019 00:22
Prettier Configuration
{
"singleQuote": true,
"trailingComma": "es5"
}
@andyalmeida
andyalmeida / .editorconfig
Created October 16, 2019 23:44
EditorConfig Configuration
root = true
[*]
indent_style = space
indent_size = 2
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true
@andyalmeida
andyalmeida / launch.json
Created October 16, 2019 23:57
VSCode debuger with sucrase Configuration
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"type": "node",
"request": "attach",
"name": "Launch Program",
@andyalmeida
andyalmeida / nodemon.json
Created October 19, 2019 12:24
Noremon configuration
{
"execMap": {
"js": "node -r sucrase/register"
}
}
@andyalmeida
andyalmeida / .sequelizerc
Created October 19, 2019 13:07
Sequelize paths configuration
const { resolve } = require('path');
module.exports = {
config: resolve( __dirname, 'src', 'config', 'database.js'),
'models-path': resolve( __dirname, 'src', 'app', 'models'),
'migrations-path': resolve( __dirname, 'src', 'database', 'migrations'),
'seeders-path': resolve( __dirname, 'src', 'database', 'seeds'),
};
@andyalmeida
andyalmeida / leitor.js
Last active November 18, 2022 22:42
Load .pdf files with pdf.js
var leitor = {};
leitor.PageNum = 1;
var pdfDoc = null;
var pageRendering = false;
var pageNumPending = null;
var scale = 0.8;
// Prepare canvas using PDF page dimensions
var canvas = null;
var context = null;
@andyalmeida
andyalmeida / babel.config.js
Last active November 3, 2019 03:38
New React Project without react-cli configuration
module.exports = {
presets: [
'@babel/preset-env',
'@babel/preset-react'
],
plugins: [
'@babel/plugin-proposal-class-properties'
]
}