https://academy.microsoft.com/en-us/tracks/artificial-intelligence/
https://training.linuxfoundation.org/content/e-learning-courses
## Images and static content is treated different | |
location ~* \.(jpg|jpeg|gif|css|png|js|ico|xml|swf|eot|woff|ttf)$ { | |
access_log off; | |
expires 30d; | |
} | |
## Cache policy for webfonts | |
location ~* \.(eot|ttf|woff)$ { | |
add_header Access-Control-Allow-Origin *; | |
} | |
## Disable viewing hidden files |
index index.php index.html; | |
location ~ \.php { | |
fastcgi_split_path_info ^(.+\.php)(.*)$; | |
fastcgi_param GATEWAY_INTERFACE CGI/1.1; | |
fastcgi_param SERVER_SOFTWARE nginx; | |
fastcgi_param QUERY_STRING $query_string; | |
fastcgi_param REQUEST_METHOD $request_method; | |
fastcgi_param CONTENT_TYPE $content_type; | |
fastcgi_param CONTENT_LENGTH $content_length; | |
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; |
server { | |
listen 80; | |
server_name {domain} {domain}.localhost; | |
root /var/www/{domain}; | |
include /etc/nginx/conf.d/common.conf; | |
include /etc/nginx/conf.d/php.conf; | |
#include /var/www/{domain}/app.conf; | |
location / { | |
try_files $uri $uri/ /index.php; | |
} |
// http://paulirish.com/2011/requestanimationframe-for-smart-animating/ | |
// http://my.opera.com/emoller/blog/2011/12/20/requestanimationframe-for-smart-er-animating | |
// requestAnimationFrame polyfill by Erik Möller. fixes from Paul Irish and Tino Zijdel | |
// MIT license | |
(function() { | |
var lastTime = 0; | |
var vendors = ['ms', 'moz', 'webkit', 'o']; |
# coding: utf-8 | |
import requests | |
import sys | |
# Replace these values | |
instance='REPLACEME.arcgis.com/REPLACEME' | |
document='REPLACEME' | |
layer='REPLACEME' #usually 0 | |
baseURL='https://'+instance+'/ArcGIS/rest/services/'+document+'/FeatureServer/'+layer |
#!/bin/bash | |
# prerequisites: | |
# libs: xsv, curl, dity, xpath, sed, paste | |
# files: procesado.csv contains in column 1 the ID for the DRO and column 3 the url of the popup | |
for line in `xsv select 1,3 --no-headers procesado.csv`; do | |
# skip first line, need to research if theres an option for it | |
if [ "${line}" != "No.,Datos" ]; then | |
# split $line into $data array[id,url] |
#!/bin/bash | |
DIR="./myfolder/" | |
# Cleanup | |
rm "${DIR}/csv/*" | |
# Convert XLSX to CSV | |
# https://wiki.openoffice.org/wiki/Documentation/DevGuide/Spreadsheets/Filter_Options | |
# CSV, DoubleQuotes, UTF8, NoSkipping, NoCellFormats, NoLangId, QuoteAll, NumbersAsNumbers, SaveCellsAsShown |
# coding: utf-8 | |
import os | |
import csv | |
import pandas as pd | |
import unidecode | |
directory = '2017-10-03/' | |
estados = ['CDMX','CHIAPAS','EDOMEX','GUERRERO','HIDALGO','MICHOACAN','MORELOS','OAXACA','PUEBLA','TLAXCALA'] | |
files = [f for f in os.listdir(os.path.join(directory, 'csv'))] |
http://acapulco.gob.mx | |
http://av.sectur.gob.mx | |
http://cancun.gob.mx | |
http://celaya.gob.mx | |
http://cepropie.gob.mx | |
http://chimalhuacan.gob.mx | |
http://cnegsr.salud.gob.mx | |
http://coahuila.gob.mx | |
http://coyoacan.df.gob.mx | |
http://culiacan.gob.mx |