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
import random | |
def quicksort_iterativo(lista: [int]) -> [int]: | |
''' Una implementación del mismo algoritmo que conoces y amas, pero sin | |
utilizar recursión, solo bucles y una pila ''' | |
ordenada = lista[:] | |
pila = [(0, len(lista) - 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
Diagrama Xalapa | |
44.4,46.7,41.4,65.9,110.8,278,206.1,164.9,255,89.4,58.7,50 | |
15.7,16.6,18.8,21.1,22,21.7,20.7,20.8,20.4,19.3,17.8,16.4 | |
Diagrama Perote | |
13.3,14.2,11.1,26.2,34.8,74.9,53.3,54.6,110.8,76,24.8,13.8 | |
9.9,10.9,13.3,14.9,15.4,14.7,13.6,13.4,13.4,12,10.7,12.7 | |
Diagrama Paso de ovejas | |
14.8,10.2,8.6,10.6,32.3,172.6,239,180.5,161.3,61.2,27.8,14.7 | |
21.4,22.2,24.3,26.7,28.2,28.1,26.7,26.9,26.9,25.8,24.2,22.1 | |
Diagrama las Vigas |
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
import json | |
import requests | |
import pandas | |
from pandas.io.json import json_normalize | |
import geopandas as gpd | |
import matplotlib.pyplot as plt | |
url = "https://smn.conagua.gob.mx/tools/PHP/sivea/siveaEsri2/php/temp_genjson.php?per=T3" | |
resp = requests.get(url) | |
data = resp.json() |
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
<!doctype html> | |
<html> | |
<head> | |
<meta charset="utf8" /> | |
<style> | |
:root { | |
--thing-color: blue; | |
} | |
#cosa { |
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
import hashlib | |
h = hashlib.new('md5') | |
h.update(b"39") | |
new = (h.hexdigest() + '+47').encode() | |
h = hashlib.new('md5') | |
h.update(new) |
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
[Unit] | |
Description=El servicio de la aplicación flask del curso | |
After=network.target | |
[Service] | |
User=infopata | |
Group=infopata | |
WorkingDirectory=/home/infopata/Proyectos/APIRest/ | |
ExecStart=/ruta/hacia/node index.js | |
Restart=always |
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
#!/usr/bin/env python3 | |
import subprocess | |
import csv | |
import os | |
from datetime import datetime | |
BASE_DIR = os.path.dirname(os.path.abspath(__file__)) | |
OUT_DIR = os.path.join(BASE_DIR, 'output') | |
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
struct Matrix { | |
contents: Vec<f64>, | |
filas: usize, | |
columnas: usize, | |
} | |
impl Matrix { | |
fn new(filas: usize, columnas: usize) { | |
Matrix { | |
} |
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
import os | |
dirname = "/tmp/csv" # adjust this | |
for vLayer in iface.mapCanvas().layers(): | |
QgsVectorFileWriter.writeAsVectorFormat( | |
vLayer, | |
os.path.join(dirname, vLayer.name() + ".csv"), | |
"utf-8", | |
vLayer.crs(), |
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
set encoding=utf-8 | |
scriptencoding utf-8 | |
set nocompatible | |
filetype off | |
set rtp+=~/.vim/bundle/Vundle.vim | |
call vundle#begin() | |
Plugin 'VundleVim/Vundle.vim' | |
Plugin 'vim-scripts/Align' |
NewerOlder