Skip to content

Instantly share code, notes, and snippets.

View MarioRinaldi's full-sized avatar

Mario Felipe Rinaldi MarioRinaldi

View GitHub Profile
@MarioRinaldi
MarioRinaldi / api.js
Last active April 9, 2019 19:30
api node + express + routes
'use strict';
const express = require('express');
const fs = require("fs");
const args = require('yargs').argv;
const app = express();
const router = express.Router();
const host = args.host || 'http://localhost';
@MarioRinaldi
MarioRinaldi / server.js
Last active April 9, 2019 19:29
servidor connect + vhost
'use strict';
var path = require('path'),
connect = require('connect'),
serveStatic = require('serve-static'),
vhost = require('vhost'),
morgan = require('morgan'),
args = require('yargs').argv;
@MarioRinaldi
MarioRinaldi / README-Template.md
Created February 7, 2019 21:29 — forked from PurpleBooth/README-Template.md
A template to make good README.md

Project Title

One Paragraph of project description goes here

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites

@MarioRinaldi
MarioRinaldi / cloudSettings
Last active July 9, 2019 14:09
Visual Studio Code Settings Sync Gist
{"lastUpload":"2019-05-07T16:17:07.368Z","extensionVersion":"v3.2.9"}
{
// 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": "launch",
// package.json
{
"devDependencies": {
"eslint": "4.9.0",
"eslint-config-airbnb-base": "9.0.0",
"eslint-plugin-import": "2.0.1",
"git-validate": "2.2.4",
"lint-staged": "^8.1.7",
"prettier-eslint-cli": "^4.7.1"

Keybase proof

I hereby claim:

  • I am mariorinaldi on github.
  • I am mariorinaldi (https://keybase.io/mariorinaldi) on keybase.
  • I have a public key ASDBkf-PEghQP2BZRFdmET1lXJeyAfP8s7o5R9mx5kglGgo

To claim this, I am signing this object:

@MarioRinaldi
MarioRinaldi / js-terms.md
Created August 24, 2020 21:50 — forked from AllThingsSmitty/js-terms.md
10 terms to help you better understand JavaScript

10 JavaScript Terms You Should Know

From currying to closures there are quite a number of special words used in JavaScript. These will not only help you increase your vocabulary but also better understand JavaScript. Special terms are normally found in documentation and technical articles. But some of them like closures are pretty standard things to know about. Knowing what the word itself means can help you know the concept it's named for better.

  1. Arity
  2. Anonymous
  3. Closure
  4. Currying
  5. Hoisting
  6. Mutation
@MarioRinaldi
MarioRinaldi / WSL.txt
Last active July 20, 2021 19:51
WSL: settings windows terminal
1) instalar WSL1 e alterar para WSL2 (https://docs.microsoft.com/pt-br/windows/wsl/)
2) instalar MS terminal (https://docs.microsoft.com/pt-br/windows/terminal/)
2.1) Seguir o seguinte powerUp do MS terminal+WSL (https://twasa.ml/post/wsl/)
2.1.1) instalar ZSH no WSL
2.1.2) instalar o "oh my ZSH" (https://ohmyz.sh/)
2.2) Ajustar o settings.json do MS terminal (https://gist.github.com/MarioRinaldi/bd871231936e92ae2670825f8dc9ee5c)
@MarioRinaldi
MarioRinaldi / settings.json
Created September 5, 2020 00:15
VSCODE settings
{
"launch": {
"configurations": [],
"compounds": []
},
"git.autofetch": true,
// "git.path": "C:\\Users\\lalor\\AppData\\Local\\wslgit.exe",
"[git-commit]": {
"editor.rulers": [