Skip to content

Instantly share code, notes, and snippets.

View crishernandezmaps's full-sized avatar

Cris Hernandez crishernandezmaps

View GitHub Profile
@crishernandezmaps
crishernandezmaps / dabblet.css
Created October 31, 2013 14:18
The first commented line is your dabblet’s title
/**
* The first commented line is your dabblet’s title
*/
background: #f06;
background: linear-gradient(45deg, #f06, yellow);
min-height: 100%;
#hola {
background:#000;
#!/usr/bin/env node
var OAuth = require('oauth').OAuth;
var colors = require('colors');
var access_token = null;
var access_token_secret = null;
var key = null;
var secret = null;
@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 = ""
@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

README is empty

@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
#!/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
#!/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']
{"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
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.