Skip to content

Instantly share code, notes, and snippets.

View Rony20191's full-sized avatar

Rony Rony20191

View GitHub Profile
@Rony20191
Rony20191 / semantic-commit-messages.md
Created November 14, 2021 00:28 — forked from joshbuchea/semantic-commit-messages.md
Semantic Commit Messages

Semantic Commit Messages

See how a minor change to your commit message style can make you a better programmer.

Format: <type>(<scope>): <subject>

<scope> is optional

Example

@Rony20191
Rony20191 / tests.yml
Created November 3, 2021 02:57 — forked from rubenvanassche/tests.yml
A simple Laravel testing workflow for GitHub Actions
name: Tests (PHP)
on: [push]
jobs:
tests:
name: Run tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
@Rony20191
Rony20191 / timerjavascript.js
Created July 24, 2020 16:46
Created TimerJavascript
setTimeout( function() {
console.log( 'Executa uma vez após 1 segundo.' );
}, 1000 );
setInterval( function() {
console.log( 'Executa infinitamente, 1 vez por segundo.' );
}, 1000 );
/*
@Rony20191
Rony20191 / siglas_estados.js
Created June 11, 2020 23:38
siglas dos estados array
siglas: [
{value: "AC",text: "Acre" },
{value: "AL",text: "Alagoas" },
{value: "AP",text: "Amapá" },
{value: "AM",text: "Amazonas" },
{value: "BA",text: "Bahia" },
{value: "CE",text: "Ceará" },
{value: "DF",text: "Distrito Federal" },
{value: "ES",text: "Espírito Santo" },
{value: "GO",text: "Goiás" },
@Rony20191
Rony20191 / idade.js
Created June 11, 2020 00:35
Idade real ( ano/anos , mês/meses e dia/dias) em javascript
var nascimento = new Date('1992-09-30')
var hoje2 = new Date();
let ano = hoje.getFullYear();
let mes = hoje.getMonth();
let dia = hoje.getDate();
/**
* @license Copyright (c) 2014-2020, CKSource - Frederico Knabben. All rights reserved.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
*/
import DecoupledDocumentEditor from '@ckeditor/ckeditor5-editor-decoupled/src/decouplededitor.js';
import Alignment from '@ckeditor/ckeditor5-alignment/src/alignment.js';
import Autoformat from '@ckeditor/ckeditor5-autoformat/src/autoformat.js';
import BlockQuote from '@ckeditor/ckeditor5-block-quote/src/blockquote.js';
import Bold from '@ckeditor/ckeditor5-basic-styles/src/bold.js';
import CKFinder from '@ckeditor/ckeditor5-ckfinder/src/ckfinder.js';
@Rony20191
Rony20191 / date.js
Created March 5, 2020 19:53
Trabalhando com date ( Obter mês anterior)
let data = new Date()
data.setMonth(data.getMonth() - 1)
@Rony20191
Rony20191 / filter.js
Created March 3, 2020 20:45
Filter list vue js
/*
items: sua lista
search: seu campo de pesquisar
*/
computed: {
filterItems () {
return this.items.filter(item => {
return (
item.title.toLowerCase().indexOf(this.search.trim().toLowerCase()) >