Skip to content

Instantly share code, notes, and snippets.

View brunokunace's full-sized avatar
🕶️
Turn down for what?

Bruno Henry brunokunace

🕶️
Turn down for what?
View GitHub Profile
@brunokunace
brunokunace / algo.vue
Last active September 15, 2017 19:26 — forked from WandersonAlves/algo.js
Computed props
computed: {
strokeDashoffset() {
return 339.292 * (1 - (this.computedPercentage / 100))
},
xAxis() {
if (this.computedPercentage >= 100) { return 36 }
if (this.computedPercentage >=0 && this.computedPercentage <=9) { return 47 }
return 42
},
computedDirection() {
$model['sefaz'] = array();
$array_sefaz_0 = array();
$tabelas = $dom->getElementsByTagName('table');
foreach($tabelas as $node){
if($node->nodeName=='table' && $node->getAttribute('class')=='toggle box' OR $node->getAttribute('class')=='toggable box'){
if($node->getAttribute('class')=='toggle box'){
foreach($node->childNodes as $child){
$cols = $child->getElementsByTagName('td');
$array_sefaz_0['numero_item'] = (int)$cols->item(0)->nodeValue;
$array_sefaz_0['nome_produto'] = $cols->item(1)->nodeValue;
<!--
Sistema Tagnos
TDR Informatica Ltda
Todos os direitos reservados ©
***********************************************
Nome do arquivo: listagem.vue
Criado por : Hamilton Gabriel
Data da criacao : 07/04/2018
Observacao :
@brunokunace
brunokunace / section.vue
Last active April 24, 2018 02:23
how change the a.selector background style
<template lang="pug>
section(id="main")
a(href="#" @click="ModalShow" :class="{'selector' : sectionModal}")
span
i(class="fa fa-bar-chart")
span Open section modal
<modal v-if="sectionModal">
h1 hello my friend!!
button(class="button is-info is-large modal-button" @click="closeModal") Close
</modal>