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 multiprocessing import Pool | |
import jsonlines | |
from datetime import datetime | |
def get_full_text(tweet): | |
if tweet['truncated']: | |
return(tweet['extended_tweet']['full_text']) | |
return (tweet['text']) | |
def dothings(tweets): |
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.
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
''' | |
MIT License | |
Copyright (c) 2019 Luca Hammer | |
Permission is hereby granted, free of charge, to any person obtaining a copy | |
of this software and associated documentation files (the "Software"), to deal | |
in the Software without restriction, including without limitation the rights | |
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
copies of the Software, and to permit persons to whom the Software is | |
furnished to do so, subject to the following conditions: | |
The above copyright notice and this permission notice shall be included in all |
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
byobu https://byobu.org/ | |
log2ram https://github.com/azlux/log2ram |
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 json_lines | |
import pprint | |
pp = pprint.PrettyPrinter(indent=1) | |
def get_companies(line_number=0,lines=1): | |
""" | |
Returns as many companies as you want as a list. | |
The higher the starting line, the longer it takes. | |
""" |
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
// Change this to the column numbers of your HSL values | |
// A == 1, B == 2,... | |
var hColumn = 5; | |
var sColumn = 6; | |
var lColumn = 7; | |
var ui = SpreadsheetApp.getUi(); | |
var sheet = SpreadsheetApp.getActiveSheet(); | |
// setup Buttons |
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 multiprocessing import Pool | |
import requests | |
import datetime | |
import time | |
MAX_PROCESSES = 100 #number of python processes that can run in parallel | |
TOOTS_PER_INSTANCE = 4000 #multiples of 40 | |
MASTOVERSE = ["mstdn.jp","pawoo.net","friends.nico","mastodon.social","mimumedon.com"] #instances you want to examine | |
def get_local_timeline(instance_url, count=80): |