Skip to content

Instantly share code, notes, and snippets.

View Ventsislav-Yordanov's full-sized avatar

Ventsislav Yordanov Ventsislav-Yordanov

View GitHub Profile
@hugobowne
hugobowne / tweet_listener.py
Last active October 6, 2023 18:48
NOTE: this code is for a previous version of the Twitter API and I will not be updating in the near future. If someone else would like to, I'd welcome that! Feel free to ping me. END NOTE. Here I define a Tweet listener that creates a file called 'tweets.txt', collects streaming tweets as .jsons and writes them to the file 'tweets.txt'; once 100…
class MyStreamListener(tweepy.StreamListener):
def __init__(self, api=None):
super(MyStreamListener, self).__init__()
self.num_tweets = 0
self.file = open("tweets.txt", "w")
def on_status(self, status):
tweet = status._json
self.file.write( json.dumps(tweet) + '\n' )
self.num_tweets += 1
@yradunchev
yradunchev / unmedia.txt
Last active June 4, 2020 02:05
unmedia.txt
20170204
--------
19min.bg
1kam1.eu
30dumi.eu
afera.bg
alterinformation.wordpress.com
anonybulgaria.wordpress.com
bez-cenzura.com
bezpartien.com
model mpg cyl disp hp drat wt qsec vs am gear carb
Mazda RX4 21 6 160 110 3.9 2.62 16.46 0 1 4 4
Mazda RX4 Wag 21 6 160 110 3.9 2.875 17.02 0 1 4 4
Datsun 710 22.8 4 108 93 3.85 2.32 18.61 1 1 4 1
Hornet 4 Drive 21.4 6 258 110 3.08 3.215 19.44 1 0 3 1
Hornet Sportabout 18.7 8 360 175 3.15 3.44 17.02 0 0 3 2
Valiant 18.1 6 225 105 2.76 3.46 20.22 1 0 3 1
Duster 360 14.3 8 360 245 3.21 3.57 15.84 0 0 3 4
Merc 240D 24.4 4 146.7 62 3.69 3.19 20 1 0 4 2
Merc 230 22.8 4 140.8 95 3.92 3.15 22.9 1 0 4 2
@Dr4g0
Dr4g0 / gist:6097772
Created July 28, 2013 07:04
Kaspichan Numbers
using System;
class KaspichanNumbers
{
static void Main()
{
ulong number = ulong.Parse(Console.ReadLine());
string[] kaspichanBaseNumbers = new string[256];
int counter = 1;
for (int i = 0; i < 26; i++)