Skip to content

Instantly share code, notes, and snippets.

View cezarpretto's full-sized avatar
🏠
Working from home

Cezar Vinícius de O. Pretto cezarpretto

🏠
Working from home
View GitHub Profile
<?xml version="1.0" encoding="UTF-8"?><Response><Play loop="1">http://prtnsrc.com/2545.mp3</Play></Response>
import configs from '../configs'
import Vue from 'vue'
const ip = configs.IP
const ProdutoService = {
insert(produto) {
return Vue.http.post(`${ip}produto`, produto)
},
const isPalindrome = (word) => word === word.split('').reverse().join('')
console.log(isPalindrome('salas'))
/* eslint-disable no-shadow */
import Vue from 'vue'
import iziToast from 'izitoast'
export default function install(Vue) {
Object.defineProperties(Vue.prototype, {
$iziToast: {
get() {
iziToast.settings({
position: 'topRight',
'use strict'
var fs = require('fs')
var request = require('request')
request.post({
url: 'https://www.sefaz.mt.gov.br/nfce/consultainutilizacaonfce',
headers: {
'Content-Type': 'application/x-www-form-urlencoded'
},
body: 'ret=6&pagn=gerarExcel&cnpjContribuinte=17.332.316/0001-83&ano=17&bttnGerarExcel.x=14&bttnGerarExcel.y=11&bttnGerarExcel=Gerar Excel'
const ModalService = {
show(modalId) {
$(`#${modalId}`).modal('show');
},
hide(modalId) {
$(`#${modalId}`).modal('hide');
}
};
import Model from './Model';
import Genero from './Genero'
import Escolaridade from './Escolaridade';
import { required } from 'vuelidate/lib/validators';
import { validarCpf } from '../services/Utils';
class Candidato extends Model {
constructor() {
super();
this.cpf = undefined;
function easyEditableController($scope) {
$scope.editing = false;
$scope.click = function(){
$scope.editing = !$scope.editing;
}
};
angular.module('myApp').component('easyEditable', {
template: '<div class="col-sm-11">' +
'<a href="" ng-click="click()" ng-show="!editing" style="border-bottom:1px dashed blue;">{{$ctrl.esModel || $ctrl.esDefault}}</a>' +
<template>
<div>
<nav aria-label="Page navigation">
<ul class="pagination pagination-sm">
<li :class="{'disabled': source.page === 1}">
<a href="#" aria-label="Previous" v-on:click.prevent="navigate($event, source.page - 1)">
<span aria-hidden="true">&laquo;</span>
</a>
</li>
<li v-for="page in pages" track-by="$index" :class="{'active': source.page === page}" v-on:click.prevent="navigate($event, page)"><a href="#">{{page}}</a></li>
<template>
<div id="inputCpf">
<input type="text" class="form-control" id="txt1" v-bind:placeholder="placeholder">
<span v-bind:class="icon"></span>
</div>
</template>
<script type="text/javascript">
import Vue from 'vue';
export default {
props: ['value', 'placeholder', 'icon', 'disabled'],