Skip to content

Instantly share code, notes, and snippets.

View viniciussvl's full-sized avatar

Vinicius Aquino viniciussvl

  • Brasil
View GitHub Profile
@danielschmitz
danielschmitz / associado.js
Created March 20, 2019 20:01
AXIOS e VUE, como fazer
import http from './http'
const associadoService = {
getAll: page => http.get(`/associados?page=${page}`),
getById: id => http.get(`/associados/${id}`)
}
export default associadoService
@IgorDePaula
IgorDePaula / cpf.js
Last active November 3, 2021 13:40
vee-validate em pt-br
function calcChecker1 (firstNineDigits) {
let sum = null
for (let j = 0; j < 9; ++j) {
sum += firstNineDigits.toString().charAt(j) * (10 - j)
}
const lastSumChecker1 = sum % 11
const checker1 = (lastSumChecker1 < 2) ? 0 : 11 - lastSumChecker1
@pitch-gist
pitch-gist / gist:2999707
Created June 26, 2012 22:21
HTML: Simple Maintenance Page
<!doctype html>
<title>Site Maintenance</title>
<style>
body { text-align: center; padding: 150px; }
h1 { font-size: 50px; }
body { font: 20px Helvetica, sans-serif; color: #333; }
article { display: block; text-align: left; width: 650px; margin: 0 auto; }
a { color: #dc8100; text-decoration: none; }
a:hover { color: #333; text-decoration: none; }
</style>