Skip to content

Instantly share code, notes, and snippets.

Avatar

Cris Hernandez crishernandezmaps

View GitHub Profile
View down_video
#!/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']
View twitter_video_collector
#!/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 — forked from gokulkrishh/media-query.css
CSS Media Queries for Desktop, Tablet, Mobile.
View media-query.css
/*
##Device = Desktops
##Screen = 1281px to higher resolution desktops
*/
@media (min-width: 1281px) {
//CSS
@crishernandezmaps
crishernandezmaps / tweetables.py
Created Mar 9, 2017 — forked from hugovk/tweetables.py
Split a text into sentences shorter than 140 characters.
View tweetables.py
#!/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 Feb 7, 2017 — forked from yanofsky/tweet_dumper.py
A script to download all of a user's tweets into a csv
View tweet_dumper.py
#!/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 = ""
View twitter_collect.js
#!/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 / dabblet.css
Created Oct 31, 2013
The first commented line is your dabblet’s title
View dabblet.css
/**
* The first commented line is your dabblet’s title
*/
background: #f06;
background: linear-gradient(45deg, #f06, yellow);
min-height: 100%;
#hola {
background:#000;
You can’t perform that action at this time.