This file contains 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
function checkMandatory(idForm){ | |
var cont = []; | |
jQuery(idForm+" [data-Mandatory]").each(function(index, el) { | |
cont.push( validaCampo( jQuery(this) ) ); | |
}); | |
for (var i = 0; i < cont.length; i++) { | |
if(!cont[i]) return false; | |
} |
This file contains 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
printf "\n\e[34m ############## UBUNTU ########################### \e[39m\n\n" | |
echo ' - Instalando pacotes essenciais ...' | |
printf "\n\e[34m #################################################### \e[39m\n\n" | |
sudo apt update && sudo apt -y upgrade && sudo apt -y dist-upgrade &&\ | |
sudo apt install -y \ | |
ssh \ | |
git \ | |
curl \ | |
openssl \ | |
gnupg-agent \ |
This file contains 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 from 'react'; | |
import PropTypes from 'prop-types'; | |
import { Route, Redirect } from 'react-router-dom'; | |
import AuthLayout from '~/screens/_layouts/auth'; | |
import DefaultLayout from '~/screens/_layouts/default'; | |
import { store } from '~/store'; | |
export default function RouteWrapper({ | |
component: Component, |
This file contains 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
function tributes(option) { | |
return { | |
id: Object.keys(option).join('').trim(), | |
get name() { | |
return option[this.id].name | |
} | |
} | |
} | |
this.tributesByProps.filter(item => (optionsChecked.includes(item[Object.keys(item).join('').trim()].name))); |
This file contains 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
Regex que valida data até com ano bissexto no formato DD/MM/YYY | |
^(?:(?:31(\|-|\.)(?:0?[13578]|1[02]))\1|(?:(?:29|30)(\/|-|\.)(?:0?[1,3-9]|1[0-2])\2))(?:(?:1[6-9]|[2-9]\d)?\d{2})$|^(?:29(\|-|\.)(?:0?2)\3(?:(?:(?:1[6-9]|[2-9]\d)?(?:0[48]|[2468][048]|[13579][26])|(?:(?:16|[2468][048]|[3579][26])00))))$|^(?:0?[1-9]|1\d|2[0-8])(\|-|\.)(?:(?:0?[1-9])|(?:1[0-2]))\4(?:(?:1[6-9]|[2-9]\d)?\d{2})$ | |
Regex que valida data até com ano bissexto no formato DD/MM/YYY em formato texto | |
^(?:(?:31(\/|-|\.)(?:0?[13578]|1[02]|(?:Jan|Mar|May|Jul|Aug|Oct|Dec)))\1|(?:(?:29|30)(\/|-|\.)(?:0?[1,3-9]|1[0-2]|(?:Jan|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec))\2))(?:(?:1[6-9]|[2-9]\d)?\d{2})$|^(?:29(\/|-|\.)(?:0?2|(?:Feb))\3(?:(?:(?:1[6-9]|[2-9]\d)?(?:0[48]|[2468][048]|[13579][26])|(?:(?:16|[2468][048]|[3579][26])00))))$|^(?:0?[1-9]|1\d|2[0-8])(\/|-|\.)(?:(?:0?[1-9]|(?:Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep))|(?:1[0-2]|(?:Oct|Nov|Dec)))\4(?:(?:1[6-9]|[2-9]\d)?\d{2})$ |
This file contains 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
<#if entries?has_content> | |
<#list entries as curEntry> | |
<h3>Entries:</h3> ${curEntry} <br><hr> | |
<b>entryId:</b> ${curEntry.entryId}<br> | |
<b>groupId:</b> ${curEntry.groupId}<br> | |
<b>companyId:</b> ${curEntry.companyId}<br> | |
<b>userId:</b> ${curEntry.userId}<br> | |
<b>userName:</b> ${curEntry.userName}<br> |
This file contains 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
<#if entries?has_content> | |
<#list entries as curEntry> | |
<#assign AssetRenderer = curEntry.getAssetRenderer()> | |
<#assign journalArticle = AssetRenderer.getArticle() /> | |
<#assign document = saxReaderUtil.read(journalArticle.getContent()) /> | |
<#assign rootElement = document.getRootElement() /> | |
<!-- FORMA 01 --> | |
<#list rootElement.elements() as dynamicElement> |
This file contains 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
<#if entries?has_content> | |
encontrei conteudo <br><hr> | |
<#list entries as curEntry> | |
<h3>Entries:</h3> ${curEntry} <br><hr> | |
<!-- PROPRIEDADES QUE ESTÃO DISPONÍVEIS --> | |
<H3>propriedades disponíveis:</H3> | |
<b>entryId</b>: ${curEntry.entryId} <br> |
This file contains 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
<#if entries?has_content> | |
encontrei conteudo <br><hr> | |
<#list entries as curBlogEntry> | |
<h3>BlogEntry</h3> ${curBlogEntry} <br><hr> | |
<!-- PROPRIEDADES QUE ESTÃO DISPONÍVEIS --> | |
<H3>propriedades disponíveis:</H3> | |
<b>uuid:</b> ${curBlogEntry.uuid} <br> | |
<b>entryId:</b> ${curBlogEntry.entryId} <br> |
This file contains 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
$distanceBase = 8px; | |
//Padding mixin | |
@mixin padding($top:null, $right:null, $bottom:null, $left:null) | |
{ | |
padding: calcDistance($top) calcDistance($right) calcDistance($bottom) calcDistance($left); | |
} | |
//Margin mixin | |
@mixin margin($top:null, $right:null, $bottom:null, $left:null) |
NewerOlder