This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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