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
# 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 |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
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] |
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
#!/bin/bash | |
res=`python -c " | |
a=1 | |
a+=1 | |
print(a) | |
"` | |
echo $res |
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' |
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
data = [ | |
"44013001", | |
"44042099", | |
"44071001", | |
"44071002", | |
"44072101", | |
"44072102", | |
"44072199", | |
"44072201", | |
"44072299", |