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 sys | |
with open('svg-font.svg', 'r') as r: | |
lines = r.read().split('\n') | |
glyphs = [x for x in lines if '<glyph' in x] | |
# for every glyph element in the file | |
for i in range(0, len(glyphs)): | |
with open(str(i + 1).rjust(3, '0') + '.svg', 'w') as w: | |
w.write('<?xml version="1.0" standalone="no"?>\n') | |
w.write('<svg width="1500px" height="1500px" version="1.1" xmlns="http://www.w3.org/2000/svg">\n') |
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
# -*- coding: UTF-8 -*- | |
import time, json, urllib, math | |
from pymongo import MongoClient | |
# python -c "from crawler2 import *; iterar_sobre_area(44.00766,-1.083201,40.544736,-1.75312)" | |
def deg_to_rad(deg): | |
return deg * (math.pi/180) | |
def get_distance_from_latlon_km(lat1,lon1,lat2,lon2): |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
# -*- coding: UTF-8 -*- | |
import os, json, time | |
from area import area | |
from termcolor import colored | |
# python3 -c "from fix_geojson import *; fix_geojson('ESP_MAD_adm6.json')" | |
def fix_geojson(filename): | |
try: |
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 lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>Premier</title> | |
</head> | |
<style> | |
body { | |
position: relative; | |
width: 100%; |
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
[ | |
{ | |
"project": { | |
"name": "Proyecto 1", | |
"manager": { | |
"name": "JM Royo", | |
"role": "manager", | |
"ID": "13" | |
}, | |
"tasks": [ |
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
ab01821e77d2f1c44e9d71c826e54db6 | |
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
281f92fae4192c4a569fc992d10a9914 | |
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
bac7eeee671dc16e387b | |
OlderNewer