Skip to content

Instantly share code, notes, and snippets.

@pkshultz
pkshultz / liked-tweets.py
Last active Dec 22, 2019
Retrieve links to a user's liked tweets
View liked-tweets.py
import tweepy
consumer_key = ""
consumer_secret = ""
access_token = ""
access_token_secret = ""
auth = tweepy.OAuthHandler(consumer_key, consumer_secret)
auth.set_access_token(access_token, access_token_secret)
View keybase.md

Keybase proof

I hereby claim:

  • I am pkshultz on github.
  • I am pkshultz (https://keybase.io/pkshultz) on keybase.
  • I have a public key ASA2ihGPq1uybkPVYmOSZ6caheYixamsdTc-JZWTS_qmQAo

To claim this, I am signing this object:

@pkshultz
pkshultz / sieve.java
Created Mar 26, 2015
Sieve of Eratosthenes
View sieve.java
// Sieve of Eratosthenes
public int sieve_of_eratosthenes(int input)
{
boolean [] is_prime = new boolean [input];
int number_of_primes = 0;
// Set all values to true
Arrays.fill(is_prime, Boolean.TRUE)