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
| from xml.dom.minidom import parse | |
| import os | |
| import sys | |
| def main(): | |
| if len(sys.argv) < 2: | |
| exit('Usage: sum.py folder-with-xmls') | |
| dirname = sys.argv[1] |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
| # Type queries into this side of the screen, and you will | |
| # see intelligent typeaheads aware of the current GraphQL type schema, | |
| # live syntax, and validation errors highlighted within the text. | |
| # We'll get you started with a simple query showing your username! | |
| query { | |
| viewer { | |
| repositories(first:100, ownerAffiliations:[OWNER]) { | |
| nodes { | |
| name |
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
| 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' |
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
| 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 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
| struct Matrix { | |
| contents: Vec<f64>, | |
| filas: usize, | |
| columnas: usize, | |
| } | |
| impl Matrix { | |
| fn new(filas: usize, columnas: usize) { | |
| Matrix { | |
| } |
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
| #!/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 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
| [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 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
| 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 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
| <!doctype html> | |
| <html> | |
| <head> | |
| <meta charset="utf8" /> | |
| <style> | |
| :root { | |
| --thing-color: blue; | |
| } | |
| #cosa { |