This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module.exports = { | |
root: true, | |
env: { | |
node: true | |
}, | |
parserOptions: { | |
parser: 'babel-eslint' | |
}, | |
extends: [ | |
'plugin:vue/recommended', |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Vue from 'vue'; | |
import { VDialog, VCard, VCardText, VProgressLinear } from 'vuetify/lib'; | |
export default async function useLoadingHandler(fn = () => {}, message = 'Processando requisição...') { | |
let loadingView = new Vue({ | |
components: { VDialog, VCard, VCardText, VProgressLinear }, | |
data() { | |
return { | |
show: false |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Vue from 'vue'; | |
import { | |
VDialog, | |
VCard, | |
VCardText, | |
VToolbar, | |
VToolbarTitle, | |
VSpacer, | |
VIcon, | |
VExpansionPanel, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# get current branch in git repo | |
function parse_git_branch() { | |
BRANCH=`git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/\1/'` | |
if [ ! "${BRANCH}" == "" ] | |
then | |
STAT=`parse_git_dirty` | |
echo " [${BRANCH}${STAT}] " | |
else | |
echo " " | |
fi |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<template> | |
<div> | |
<v-layout row align-center @click="show = true" style="cursor:pointer;"> | |
<v-flex shrink class="mr-3"> | |
<v-icon>insert_drive_file</v-icon> | |
</v-flex> | |
<v-flex> | |
<div> | |
<strong>{{ document.tipoAnexo.descricao }}</strong> | |
</div> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** @type {HTMLCanvasElement} */ | |
const canvas = document.querySelector('#screen'); | |
const ctx = canvas.getContext('2d'); | |
canvas.width = 400; | |
canvas.height = 400; | |
let box = { | |
width: 25, | |
height: 25, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module.exports = { | |
config: { | |
// default font size in pixels for all tabs | |
fontSize: 12, | |
// font family with optional fallbacks | |
fontFamily: 'Fira Code, Menlo, "DejaVu Sans Mono", Consolas, "Lucida Console", monospace', | |
// terminal cursor background color and opacity (hex, rgb, hsl, hsv, hwb or cmyk) | |
cursorColor: 'rgba(248,28,229,0.8)', |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"editor.detectIndentation": false, | |
"editor.fontFamily": "Fira Code", | |
"editor.fontWeight": "300", | |
"editor.fontLigatures": false, | |
"editor.fontSize": 15, | |
"editor.formatOnPaste": false, | |
"editor.formatOnSave": false, | |
"editor.insertSpaces": false, | |
"editor.lineHeight": 24, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
// Place your snippets for javascript here. Each snippet is defined under a snippet name and has a prefix, body and | |
// description. The prefix is what is used to trigger the snippet and the body will be expanded and inserted. Possible variables are: | |
// $1, $2 for tab stops, $0 for the final cursor position, and ${1:label}, ${2:another} for placeholders. Placeholders with the | |
// same ids are connected. | |
// Example: | |
"Print to console": { | |
"prefix": "log", | |
"body": ["console.log($1);"], | |
"description": "Log output to console" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React, { useState, useEffect } from 'react'; | |
import { Text, FlatList, View, TextInput, TouchableOpacity } from 'react-native'; | |
let arr: any[] = []; | |
for (let i = 1; i <= 100; i++) { | |
arr.push({ id: i, text: `mensagem bacana #${i}` }); | |
} | |
arr.reverse(); |