http://htmlpreview.github.io/?https://gist.github.com/sente/0752c2f3bac09445a7b45ffb2329465c/raw
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
{ | |
"rows": [ | |
"cell": [ "08/04/17 08:00:45", "MEXICAN - ATLANTE UTN", "Atlante", "#BuenD\u00eda #Azulgranas #YaEsViernes y tu coraz\u00f3n los sabe.\n\u00a1HOY juega el Potro!\n#TodosSomosAtlante https://t.co/lYh0VAjzzn", "893441576344723456", "Yes", "91.59", "tweet", "similarity-threshold" ] }, | |
"cell": [ "08/03/17 18:04:42", "MEXICAN - ATLANTE UTN", "Atlante", "Acude a #LaPreviaAzulgrana en el #Andr\u00e9sQuintanaRoo antes del partido Atlante vs Celaya.\n#TodosSomosAtlante https://t.co/mU7ETBqLt7", "893231176705507332", "Yes", "93.62", "tweet", "similarity-threshold" ] }, | |
"cell": [ "08/03/17 17:36:22", "MEXICAN - ATLANTE UTN", "Atlante", "A retomar el paso ganador: \n\u201cPotro\u201d Guti\u00e9rrez\n\n++ Atlante va ante Celaya ante su afici\u00f3n por su segundo triunfo... https://t.co/FECLUSFQW7", "893224045927436288", "Yes", "93.82", "tweet", "similarity-threshold" ] }, | |
"cell": [ "08/03/17 12:19:23", "MEXICAN - ATLANTE UTN", "Atlante", "#LizandroEcheverr\u |
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
from bson.objectid import ObjectId | |
from analysis.tw import * | |
import pprint | |
client = pymongo.MongoClient('mongodb://algdev.sportsmanias.com') | |
db = client['sportmanias']['tweets'] | |
parent = Tw(db.find_one({'id_str':'890067420207042561'})) | |
a = Tw(db.find_one({'id_str':'889706097598054400'})) |
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 numpy as np | |
from sklearn.cluster import MeanShift, estimate_bandwidth | |
import os | |
import stat | |
files = ['archives/2017-07/{}'.format(f) for f in list(os.walk('archives/2017-07/'))[0][2]] | |
ar = [] | |
arr = [] |
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
[[snippets]] | |
description = "Grep all files in a folder" | |
command = "grep -rn \"texthere\" ." | |
output = "" | |
[[snippets]] | |
description = "Sync only certain files using filters and rsync" | |
command = "rsync -rv --include '*/' --include '*something*' --exclude '*' --prune-empty-dirs Source/ Target/" | |
output = "" |
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
[ | |
{ "_id" : { "$oid" : "58d205734e6336f85a8b473e" }, "created_at" : { "$date" : "2017-03-22T05:02:41.000+0000" }, "id" : { "$numberLong" : "844414001492742150" }, "id_str" : "844414001492742150", "text" : "Arizona Women's Basketball's LaBrittney Jones Achieves On and Off the Court\nPhoto Cred: Douglas Taylor… https://t.co/CKsnV06Qxj", "display_text_range" : [ { "$numberLong" : "0" }, { "$numberLong" : "140" } ], "source" : "<a href=\"http://twitter.com\" rel=\"nofollow\">Twitter Web Client</a>", "truncated" : true, "in_reply_to_status_id" : null, "in_reply_to_status_id_str" : null, "in_reply_to_user_id" : null, "in_reply_to_user_id_str" : null, "in_reply_to_screen_name" : null, "user" : { "id" : { "$numberLong" : "403798720" }, "id_str" : "403798720", "name" : "ZonaZealots Go Cats!", "screen_name" : "ZonaZealots", "location" : "Tucson, AZ", "url" : "http://www.ZonaZealots.com", "description" : "Zona Zealots is a Sports Illustrated http://Fansided.com site, get the latest in Arizona Wildcats sports news and op |
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
[ | |
{ "_id" : { "$oid" : "58d151084e63367a1e8b45da" }, "created_at" : { "$date" : "2017-03-21T16:12:55.000+0000" }, "id" : { "$numberLong" : "844220283263377409" }, "id_str" : "844220283263377409", "text" : "Women’s Basketball Set for WBI Semifinals with Milwaukee Thursday at Fleming Gymnasium https://t.co/QN4SZhGnXn #letsgoG", "source" : "<a href=\"https://about.twitter.com/products/tweetdeck\" rel=\"nofollow\">TweetDeck</a>", "truncated" : false, "in_reply_to_status_id" : null, "in_reply_to_status_id_str" : null, "in_reply_to_user_id" : null, "in_reply_to_user_id_str" : null, "in_reply_to_screen_name" : null, "user" : { "id" : { "$numberLong" : "29792721" }, "id_str" : "29792721", "name" : "UNCG Athletics", "screen_name" : "uncgsports", "location" : "Greensboro, NC", "url" : "http://www.uncgspartans.com", "description" : "The official twitter account of UNCG Athletics. Located on the web at http://www.uncgspartans.com", "protected" : false, "verified" : true, "followers_count" : { "$numberLong" : "7130" }, "f |
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
a | |
abandon | |
ability | |
able | |
abortion | |
about | |
above | |
abroad | |
absence | |
absolute |
We can make this file beautiful and searchable if this error is corrected: It looks like row 2 should actually have 31 columns, instead of 30. in line 1.
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
file,Acholi.txt,Arabic.txt,Azerbaijani.txt,Chinese Simplified.txt,English.txt,French.txt,German.txt,Greek.txt,Hebrew.txt,Hindi.txt,Italian.txt,Malagasy.txt,Malay.txt,Nepali.txt,Pashto.txt,Persian.txt,Portuguese.txt,Russian.txt,Somali.txt,"Spanish, Chile.txt","Spanish, Mexico.txt",Spanish.txt,Swahili.txt,Telugu.txt,Thai.txt,Turkish.txt,Urdu (India).txt,Urdu (Pakistan).txt,Urdu.txt,Vietnamese.txt | |
Joined_Success,crwdns15907:0crwdne15907:0,تمت الإضافة بنجاح,Successfully joined.,Successfully joined.,Successfully joined.,Successfully joined.,Successfully joined.,Successfully joined.,Successfully joined.,Successfully joined.,Successfully joined.,Successfully joined.,Successfully joined.,Successfully joined.,Successfully joined.,Successfully joined.,Successfully joined.,Successfully joined.,Successfully joined.,Successfully joined.,Successfully joined.,Se unió con éxito.,Successfully joined.,Successfully joined.,Successfully joined.,Successfully joined.,Successfully joined.,کامیابی کے ساتھ شمولیت اختیار کی ھے,کامیابی |