Skip to content

Instantly share code, notes, and snippets.

@alexanderdeoz
alexanderdeoz / gist:7f4e4392177bc87ee97965b7ce3f28f6
Created July 12, 2020 17:57
Free Code Camp /algorimt Estructure// 2-16
function convertToF(celsius) {
let fahrenheit = 1.8 * (celsius) + 32;
return fahrenheit;
}
convertToF(30);
@alexanderdeoz
alexanderdeoz / gist:f76d1e3f5329ce18f009800329ce3897
Created July 11, 2020 17:26
Free Code Camp BS6 // del 2 al 31
function checkScope() {
'use strict';
let i = 'function scope';
if (true) {
let i = 'block scope';
console.log('Block scope i is: ', i);
}
console.log('Function scope i is: ', i);
return i;
}
@alexanderdeoz
alexanderdeoz / gist:39b68cdea9e8eb8e1be8a24b4df87350
Last active July 11, 2020 19:07
Free Code Cap // Data Structure // ordenados desde el 2 al 20
let yourArray = ['a string', 100, true, ['one', 2], 'another string'];
@alexanderdeoz
alexanderdeoz / css
Last active July 2, 2020 00:28
Mapa Google de Quito
#map {height:70vh; width:60hw;}
<!DOCTYPE html>
<html lang="es">
<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">
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css" integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" crossorigin="anonymous">
<title>Serie Fibonacci</title>
</head>
@alexanderdeoz
alexanderdeoz / array
Created August 2, 2019 21:20
Soccer App _ codigo fuente
var jugadores = [
new Jugador ("1718192021", "Luis Antonio Valencia","Olimpia", "#12", "30 años"),
new Jugador ("1234567890", "Alexander Dominguez", "Fénix's", "#2","27 años"),
new Jugador ("1723961148", "Miguel Catota", "Pichincha", "#19", "19 años"),
new Jugador ("1756163034", "Cristhian Ganchala","Occidental", "#18", "18 años"),
new Jugador ("1725036782", "Alexander Chinchin", "Palestino", "#6", "21 años")
];
@alexanderdeoz
alexanderdeoz / fibonaci imprecion en tablas
Created August 2, 2019 02:27
steven_chinchin_ds_1b_
<!DOCTYPE html>
<html lang="es">
<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">
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css" integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" crossorigin="anonymous">
<title>Serie Fibonacci</title>
</head>
@alexanderdeoz
alexanderdeoz / matrises_js
Created July 30, 2019 02:47
steven_chinchin_1b_ds
<!DOCTYPE html>
<html lang="es">
<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>Matrices</title>
</head>
@alexanderdeoz
alexanderdeoz / estilo_tabla
Created July 26, 2019 17:06
Chinchin_steven_1b_ds
<!DOCTYPE html>
<html lang="es">
<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"><link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css" integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" crossorigin="anonymous">
<title>Document</title>
</head>
<body>
<table id="lista" class="table-dark"> heroes </table>
function Burbuja() {
var lista = [389, 703, 247, 563, 224, 714, 464, 953, 708, 201, 887, 550, 515, 206, 131];
var n, i, k, aux;
n = lista.length;
console.log(lista); // Mostramos, por consola, la lista desordenada
// Algoritmo de burbuja
for (k = 1; k < n; k++) {
for (i = 0; i < (n - k); i++) {
if (lista[i] > lista[i + 1]) {
aux = lista[i];