Skip to content

Instantly share code, notes, and snippets.

const getPixels = require("get-pixels");
let hiddenMsg = new String
//cb triggered once image loaded
getPixels("http://www.northern.co//wp-content/themes/northern/images/puzzle.png", function(err, pixels) {
if(err) {
console.log("Bad image path")
return
}
@arjunlol
arjunlol / sorry.py
Created September 5, 2017 21:47 — forked from benrules2/sorry.py
Reddit Sorry Counter
import praw
def get_subreddit_comments(reddit_agent, subreddit, comments_out = [], count = 100):
try:
sub = reddit_agent.get_subreddit(subreddit)
comments_raw = sub.get_comments(sub, limit=count)
comments_flat = praw.helpers.flatten_tree(comments_raw)
for comment in comments_flat:
try:
if hasattr(comment, 'comments'):
import requests
import csv
import os
from dotenv import load_dotenv
load_dotenv()
token = os.getenv("GITHUB_TOKEN")
headers = {"Authorization": f"Bearer {token}"}