Skip to content

Instantly share code, notes, and snippets.

View crishernandezmaps's full-sized avatar

Cris Hernandez crishernandezmaps

View GitHub Profile
This file has been truncated, but you can view the full file.
{
"datasets":[{
"version": "v1",
"data": {
"id": "earthquakes",
"label": "new dataset",
"color": [143, 47, 191],
"allData": [
["1967/08/01 10:33:50.47", 36.08, -121.07083, 80.339, 2.5, "Mx", 10, 292, 42, 0.25, "NCSN", 1000872],
["1967/08/02 02:49:12.55", 35.63433, -120.75716, 3.98, 2.6, "Mx", 9, 322, 108, 0.24, "NCSN", 1000887],
We can make this file beautiful and searchable if this error is corrected: No commas found in this CSV file in line 0.
ano;arrivals;lat;lon;place;stamp
2020;23023;27.992401;-15.628671;Canarias;01-01-20
2020;16610;40.415349;-3.686704;Península;01-01-20
2020;2228;35.887949;-5.329905;Ceuta y Melilla;01-01-20
2019;2687;27.992401;-15.628671;Canarias;01-01-19
2019;21863;40.415349;-3.686704;Península;01-01-19
2019;7899;35.887949;-5.329905;Ceuta y Melilla;01-01-19
2018;1307;27.992401;-15.628671;Canarias;01-01-18
2018;54703;40.415349;-3.686704;Península;01-01-18
2018;8288;35.887949;-5.329905;Ceuta y Melilla;01-01-18
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
{"datasets":[{"version":"v1","data":{"id":"uzjzuwccb","label":"rutas_n.csv","color":[143,47,191],"allData":[["Somalia-Libia",3.86425,46.75781,32.80574,13.0957,500],["Malí-Lampedusa",16.72038,-2.94433,36.91476,12.1289,350],["Malí-Túnez y Malí-Marruecos",16.72038,-2.94433,36.91476,-5.053,5000],["Senegal-Marruecos",14.47723,17.72167,35.74651,-5.05371,10000]],"fields":[{"name":"name","type":"string","format":"","analyzerType":"STRING"},{"name":"origin_lat","type":"real","format":"","analyzerType":"FLOAT"},{"name":"origin_lon","type":"real","format":"","analyzerType":"FLOAT"},{"name":"destiniy_lat","type":"real","format":"","analyzerType":"FLOAT"},{"name":"destiniy_lon","type":"real","format":"","analyzerType":"FLOAT"},{"name":"population","type":"integer","format":"","analyzerType":"INT"}]}}],"config":{"version":"v1","config":{"visState":{"filters":[],"layers":[{"id":"j13524","type":"point","config":{"dataId":"uzjzuwccb","label":"origin","color":[255,203,153],"columns":{"lat":"origin_lat","lng":"origin_lon","alti
#!/usr/bin/env python3
import pandas as pd
import sys
import os, glob
import wget
file_with_links = sys.argv[1]
def to_extract(file_with_links=file_with_links):
cols = ['user','timeStamp','media','hashtag']
#!/usr/bin/env python3
import tweepy
from config import *
import csv
import unidecode
import time
import datetime
from datetime import timedelta
from timeloop import Timeloop
import bs4 as bs
@crishernandezmaps
crishernandezmaps / media-query.css
Created May 18, 2019 21:46 — forked from gokulkrishh/media-query.css
CSS Media Queries for Desktop, Tablet, Mobile.
/*
##Device = Desktops
##Screen = 1281px to higher resolution desktops
*/
@media (min-width: 1281px) {
//CSS

README is empty

@crishernandezmaps
crishernandezmaps / tweetables.py
Created March 9, 2017 16:00 — forked from hugovk/tweetables.py
Split a text into sentences shorter than 140 characters.
#!/usr/bin/env python
# encoding: utf-8
"""
Split a text into sentences shorter than 140 characters.
You'll need to first install TextBlob by running:
pip install -U textblob
Then stick your text into the text bit below and run this script:
python tweetables.py
@crishernandezmaps
crishernandezmaps / tweet_dumper.py
Created February 7, 2017 11:24 — forked from yanofsky/LICENSE
A script to download all of a user's tweets into a csv
#!/usr/bin/env python
# encoding: utf-8
import tweepy #https://github.com/tweepy/tweepy
import csv
#Twitter API credentials
consumer_key = ""
consumer_secret = ""
access_key = ""