Skip to content

Instantly share code, notes, and snippets.

View pkshultz's full-sized avatar

Peter K. Shultz pkshultz

View GitHub Profile
@pkshultz
pkshultz / liked-tweets.py
Last active December 22, 2019 21:35
Retrieve links to a user's liked tweets
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)

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 March 26, 2015 18:40
Sieve of Eratosthenes
// 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)