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
//https://bl.ocks.org/d3noob/43a860bc0024792f8803bba8ca0d5ecd | |
//DEFINE CANVAS | |
console.log("D3 TREE LOADED") | |
console.log(d3) | |
treeData={ | |
"name": "SIN", |
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 asyncio, asyncssh, sys | |
#PASS DICT TO STTRING | |
import json | |
import copy | |
""" | |
Este método es para generar un identificador único para distintas instancias | |
durante el tiempo de operación del servidor | |
""" | |
import uuid | |
def my_random_string(string_length=10): |
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
name=system("echo $estacion_now") | |
N=system("echo $N") | |
set terminal qt size 2000,1300 | |
set multiplot layout 3,1 title "Estacion GPS: E-N-Up" | |
set xlabel 'Tiempo' | |
set timefmt "%s" | |
set xdata time |
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
#!/bin/bash | |
proyecto='' | |
folder='' | |
#Nombre tab de terminal base, desde donde ejecuto script | |
wmctrl -r :ACTIVE: -N "Base" | |
#Obtengo los nombres de carpeta y proyecto | |
for i in "$@" | |
do | |
echo $i | |
case $i in |
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 django.contrib.gis.db import models | |
# Create your models here. | |
from django_countries.fields import CountryField | |
#database regiones, provincias y comunas Chile | |
#https://github.com/knxroot/bdcut-cl | |
class Region(models.Model): | |
nombre = models.CharField(max_length=200) | |
numero_decimal = models.CharField(max_length=100, unique = True) | |
numero_romano = models.CharField(max_length=80, blank=True) |
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
Iquique,1 | |
Alto Hospicio,1 | |
Pozo Almonte,1 | |
Camiña,1 | |
Colchane,1 | |
Huara,1 | |
Pica,1 | |
Antofagasta,2 | |
Mejillones,2 | |
Sierra Gorda,2 |
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
Tarapacá,1 | |
Antofagasta,2 | |
Atacama,3 | |
Coquimbo,4 | |
Valparaíso,5 | |
Región del Libertador Gral. Bernardo O'Higgins,6 | |
Región del Maule,7 | |
Región del Biobío,8 | |
Región de la Araucanía,9 | |
Región de Los Lagos,10 |
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 | |
from apps.localizacion.models import Region, Comuna | |
import csv, codecs | |
def load_places(): | |
dir = os.path.dirname(os.path.abspath(__file__)) | |
print(dir) | |
comunas_path = dir+'/comunas.txt' | |
regiones_path = dir+'/regiones.txt' | |
comunas = codecs.open( comunas_path, 'r' , encoding='utf-8') |
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
var gulp = require('gulp'); | |
//var path = require('path'); | |
var sass = require('gulp-sass'); | |
var watch = require('gulp-watch'); | |
var minifycss = require('gulp-clean-css'); | |
var rename = require('gulp-rename'); | |
var gzip = require('gulp-gzip'); | |
var browserSync = require('browser-sync'); | |
var reload = browserSync.reload; |
NewerOlder