Skip to content

Instantly share code, notes, and snippets.

View TammyPaola's full-sized avatar
🌴
De vacaciones

TammyPaola

🌴
De vacaciones
View GitHub Profile
const fs = require("fs").promises;
async function main() {}
const salesFiles = await findSalesFiles("stores");
console.log(salesFiles);
main();
Requesting a Cloud Shell.Succeeded.
Connecting terminal...
Welcome to Azure Cloud Shell
Type "az" to use Azure CLI
Type "help" to learn about Cloud Shell
paolive1990@Azure:~$ source <(curl -Ls https://aka.ms/install-node-lts)
Node.js v14.7.0 is ready to use.
Requesting a Cloud Shell.Succeeded.
Connecting terminal...
Welcome to Azure Cloud Shell
Type "az" to use Azure CLI
Type "help" to learn about Cloud Shell
paolive1990@Azure:~$ source <(curl -Ls https://aka.ms/install-node-lts)
Node.js v14.7.0 is ready to use.
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>mapas</title>
<link rel="stylesheet" href="https://unpkg.com/leaflet@1.6.0/dist/leaflet.css"
integrity="sha512-xwE/Az9zrjBIphAcBb3F6JVqxf46+CDLwfLMHloNu6KEQCAWi6HcDUbeOfBIptF7tcCzusKFjFw2yuvEpDL9wQ=="
crossorigin=""/>
class Futbolista{
constructor(id,nombre,apellido){
this.id =id,
this.nombre = nombre,
this.apellido = apellido
correr(){
console.log(this.nombre + ' hola mucho gusto ');
}
}
};
{ "name": "tailwind-trader-api", "version": "1.0.0", "description": "An HTTP API that will manage items from Tailwind Traders database", "main": "index.js", "scripts": { "start": "node ./src/index.js", "test": "echo \"Error: no test specified\" && exit 1" }, "keywords": [ "api", "database" ], "author": "sam", "license": "ISC" }
ar modeloCarros={
marca :"toyota",
año: 2004,
corre(){
console.log(this.nombre + ' hola mucho gusto ');
},
};
//clase
class Auto{
constructor(marca,año){
@TammyPaola
TammyPaola / gist:4962d4bd4e67de1e1ad45324a2dd88d8
Created July 11, 2020 01:21
Use the parseInt Function with a Radix
function convertToInteger(str) {
return parseInt(str,2)
}
convertToInteger("10011");
@TammyPaola
TammyPaola / gist:361ada36c6c4aaf0b7393a9d7a558bd3
Created July 11, 2020 01:17
Create complex multi-dimensional arraysPassed
let myNestedArray = [
// Only change code below this line
['unshift', ['deep',['deeper',['deepest']]],false, 1, 2, 3, 'complex', 'nested'],
['loop', 'shift', 6, 7, 1000, 'method'],
['concat', false, true, 'spread', 'array'],
['mutate', 1327.98, 'splice', 'slice', 'push'],
['iterate', 1.3849, 7, '8.4876', 'arbitrary', 'depth']
];
function mixedNumbers(arr) {
arr.push(7, 'VIII', 9);
arr.unshift('I', 2, 'three');
return arr;
}
console.log(mixedNumbers(['IV', 5, 'six']));