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 array = [ ...Array(100).keys() ] | |
const msg = ['fizz', 'buzz', 'fizzbuzz'] | |
const startWithOne = x => x + 1 | |
const fizz = x => x % 3 ? '' : msg[0] | |
const buzz = x => x % 5 ? '' : msg[1] |
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 array1 = [ | |
[21, "Bowling Ball"], | |
[2, "Dirty Sock"], | |
[1, "Hair Pin"], | |
[5, "Microphone"] | |
] | |
const array2 = [ | |
[2, "Hair Pin"], | |
[3, "Half-Eaten Apple"], |
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 array = [7, 9, 11, 13, 15] | |
const matchTwoNumbers = 20 | |
const match = ( total, num, index, arr ) => { | |
let sum = total + num | |
let indexs = [] | |
// console.log(total, num, sum, index, arr ) | |
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
var arr = [ | |
[ | |
{ "name":"Distri Equipamente Cirurgicos", "data":18 }, | |
{ "name":"DNAPet", "data":70 } | |
], | |
[ | |
{ "name":"Distri Equipamente Cirurgicos", "data":62 }, | |
{ "name":"Medical Pet&Thingss", "data":184 }, | |
{ "name":"DNAPet", "data":251.2 } | |
], |
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
public class MainActivity extends AppCompatActivity { | |
private List<String> mLista = new ArrayList<>(); | |
private EditText mEdtProduto; | |
private ListView mLstProdutos; | |
@Override | |
protected void onCreate(Bundle savedInstanceState) { | |
super.onCreate(savedInstanceState); | |
setContentView(R.layout.activity_main); |
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
<template> | |
<div class="row"> | |
<div class="col-md-6"> | |
<div class="form-group"> | |
<label>Matricula</label> | |
<input type="matricula" v-model="user.matricula" class="form-control"> | |
</div> | |
<div class="form-group"> |
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
<template> | |
<div class="row"> | |
<div class="col-md-6"> | |
<div class="form-group"> | |
<label>Matricula</label> | |
<input type="matricula" v-model="user.matricula" class="form-control"> | |
</div> | |
<div class="form-group" v-if="showPassword"> |
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
<template> | |
<div id="add-item"> | |
<div class="row"> | |
<div class="col-md-2 mb-2"> | |
<!--<money v-model="total" v-bind="money" class="form-control" disabled></money>--> | |
Total {{ total }} | |
</div> | |
</div> |
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
services.registra_adiantamento = (adiantamento, itens, purchasing_id, valorTotalItens, deposito) => { | |
const queryCodigoBlueform = repositorys.queryCodigoBlueform(id_user) | |
const PROMISE1 = new Promise((resolve, reject) => { | |
return db.query(queryCodigoBlueform, (err, results) => { | |
if (err) reject(new Error(err)) | |
return resolve(results) | |
}) |
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
services.registra_adiantamento = (adiantamento, itens, purchasing_id, valorTotalItens, deposito) => { | |
const queryCodigoBlueform = repositorys.queryCodigoBlueform() | |
return new Promise((resolve, reject) => { | |
db.query(queryCodigoBlueform, (err, results) => { | |
if (err) reject(new Error(err)) | |
const codigoBlueform = results[0].codigoblueform + 1 | |
const codigoAdiantamento = results[0].codigoadiantamento + 1 |
OlderNewer