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
export const ORIGEM = [ | |
'0 – Nacional, exceto as indicadas nos códigos 3, 4, 5 e 8;', | |
'1 – Estrangeira – Importação direta, exceto a indicada no código 6;', | |
'2 – Estrangeira – Adquirida no mercado interno, exceto a indicada no código 7;', | |
'3 – Nacional, mercadoria ou bem com Conteúdo de Im…) e igual ou inferior a 70% (setenta por cento) ;', | |
'4 – Nacional, cuja produção tenha sido feita em co….248/1991, 8.387/1991, 10.176/2001 e 11.484/2007;', | |
'5 – Nacional, mercadoria ou bem com Conteúdo de Importação inferior ou igual a 40%;', | |
'6 – Estrangeira – Importação direta, sem similar n…stante em lista de Resolução Camex e gás natural;', | |
'7 – Estrangeira – Adquirida no mercado interno, se…stante em lista de Resolução Camex e gás natural.', | |
'8 – Nacional – Mercadoria ou bem com Conteúdo de Importação superior a 70% (setenta por cento).' |
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 specialAdd(a: Number, b: Number, factor: Number) { | |
return (a + b) * factor | |
} | |
export function math2() { | |
return add(a: Number, b: Number) { | |
return specialAdd(2, 3, 10) | |
} | |
} |
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
const questions = [ | |
'WHats your name ?', | |
'The book is on the table ?', | |
'The car is moving ?', | |
'Is the best or worst driver you see ?' | |
] | |
let currentQuestion = 0 | |
const showQuestion = () => { |
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
<script> | |
import { debounce } from '@/utils/function' | |
import httpClient from '@/utils/httpClient' | |
export default { | |
name: 'VAutocompleteServer', | |
props: { | |
value: { | |
type: [Array, Object, Number, String], | |
default: () => ([]) |
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
<script> | |
export default { | |
name: 'FormTest', | |
provide: { | |
// Try to imagine what you can do with this approach | |
// So much to think :) | |
register(input) { | |
this.inputs.push(input) | |
} | |
}, |
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
<script> | |
export default { | |
name: 'FormTest', | |
methods: { | |
saveForm({ target }) { | |
const data = new FormData(target) | |
data.forEach((value, key) => { | |
console.log(`Field: ${key}, value: ${value}`) | |
}) | |
// axios.post('/bla', data) You can use direct on axios |
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
<script> | |
export default { | |
name: 'CardContainer', | |
} | |
</script> | |
<template> | |
<div class="container is-fluid is-flex is-flex-direction-column"> | |
<ul id="matchesList" class="is-flex is-flex-direction-column is-align-item"> | |
<slot name="favoritos" /> |
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
use std::{collections::HashMap, fs::File, io::{self, BufRead, BufReader}}; | |
use std::time::{SystemTime, UNIX_EPOCH}; | |
use core::time::Duration; | |
pub fn get_unix_timestamp_ms() -> Duration { | |
SystemTime::now() | |
.duration_since(UNIX_EPOCH) | |
.expect("Time went problem.") | |
} |
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
<script lang="ts"> | |
import './AModal.scss' | |
import { defineComponent, onUpdated, ref } from 'vue' | |
export interface AModalProps { | |
width?: number | string | |
show?: boolean | |
persistent?: boolean | |
} |
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
// See href: https://pokemon-match.netlify.app/#/ | |
// Open browser console, copy past it, have fun :) | |
(function (document){ | |
const btn = document.createElement('button') | |
btn.className = 'v-btn v-size--default' | |
btn.innerText = 'Perfect Match!' | |
btn.style.position = 'fixed' | |
btn.style.bottom = '120px' | |
btn.style.left = '50px' | |
btn.style.border = '2px solid #898989' |
NewerOlder