Skip to content

Instantly share code, notes, and snippets.

View eltonmarques96's full-sized avatar
:shipit:
Always coding

Elton Marques dos Santos eltonmarques96

:shipit:
Always coding
View GitHub Profile
@eltonmarques96
eltonmarques96 / AdonisJS Basic config
Created March 25, 2020 05:04
Package.json model for AdonisJS with: lint-staged, husky, prettier, eslint and commitlint
{
"name": "adonis-api-app",
"version": "4.1.0",
"adonis-version": "4.1.0",
"description": "Adonisjs boilerplate for API server with pre-configured JWT",
"main": "index.js",
"scripts": {
"start": "yarn install && node ace migration:run && node server.js",
"dev": "nodemon --inspect server.js",
"test": "node ace test --bail --timeout 5000",
@eltonmarques96
eltonmarques96 / index.html
Created February 5, 2020 02:21 — forked from umidjons/index.html
Upload File using jQuery.ajax() with progress support
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Upload File using jQuery.ajax() with progress support</title>
</head>
<body>
<input type="file" name="file" id="sel-file"/>
{
"above": "The {{field}} should be above {{argument.0}}.",
"accepted": "The {{field}} should have been accepted",
"after": "The {{field}} should be a date after {{argument.0}}",
"after_offset_of": "The {{field}} should be after {{argument.0}} {{argument.1}} from today’s date",
"alpha": "The {{field}} should contain letters only",
"alpha_numeric": "The {{field}} should contain letters and numbers only",
"array": "The {{field}} should be an ARRAY.",
"before": "The {{field}} should be a date before {{argument.0}}.",
"before_offset_of": "The {{field}} should be before {{argument.0}} {{argument.1}} from today’s date",
{
"above": "The {{field}} should be above {{argument.0}}.",
"accepted": "The {{field}} should have been accepted",
"after": "The {{field}} should be a date after {{argument.0}}",
"after_offset_of": "The {{field}} should be after {{argument.0}} {{argument.1}} from today’s date",
"alpha": "The {{field}} should contain letters only",
"alpha_numeric": "The {{field}} should contain letters and numbers only",
"array": "The {{field}} should be an ARRAY.",
"before": "The {{field}} should be a date before {{argument.0}}.",
"before_offset_of": "The {{field}} should be before {{argument.0}} {{argument.1}} from today’s date",
{
"above": "The {{field}} should be above {{argument.0}}.",
"accepted": "The {{field}} should have been accepted",
"after": "The {{field}} should be a date after {{argument.0}}",
"after_offset_of": "The {{field}} should be after {{argument.0}} {{argument.1}} from today’s date",
"alpha": "The {{field}} should contain letters only",
"alpha_numeric": "The {{field}} should contain letters and numbers only",
"array": "The {{field}} should be an ARRAY.",
"before": "The {{field}} should be a date before {{argument.0}}.",
"before_offset_of": "The {{field}} should be before {{argument.0}} {{argument.1}} from today’s date",
{
"above": "{{field}} deve ser acima de {{argument.0}}.",
"accepted": "{{field}} deve ter sido aceito",
"after": "{{field}} deve ser uma data após {{argument.0}}",
"after_offset_of": "{{field}} deve ser mais recente que {{argument.0}} {{argument.1}} a partir da data atual",
"alpha": "{{field}} deve conter apenas letras",
"alpha_numeric": "{{field}} deve conter apenas letras e números",
"array": "{{field}} deve ser um ARRAY.",
"before": "{{field}} deve ser uma data anterior a {{argument.0}}.",
"before_offset_of": "{{field}} deve ser aterior a {{argument.0}} {{argument.1}} a partir da data de hoje",
# editorconfig.org
root = true
[*]
indent_size = 2
indent_style = space
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true
{
"singleQuote": true,
"trailingComma": "es5"
}
{
"env": {
"browser": true,
"commonjs": true,
"es6": true
},
"extends": ["airbnb-base", "prettier"],
"plugins": ["prettier"],
"globals": {
"use": "readonly",
{
// Controls whether the editor shows CodeLens.
"diffEditor.codeLens": false,
// When enabled, the diff editor ignores changes in leading or trailing whitespace.
"diffEditor.ignoreTrimWhitespace": true,
// Timeout in milliseconds after which diff computation is cancelled. Use 0 for no timeout.
"diffEditor.maxComputationTime": 5000,