Skip to content

Instantly share code, notes, and snippets.

View binarybrat's full-sized avatar

Cloei binarybrat

View GitHub Profile
@binarybrat
binarybrat / automod-schedule
Last active July 19, 2016 04:34
Automoderator set up for a daily schedule by months of the year aka every 12 days
##### If you edit this page, you must [click this link, then click "send"](http://www.reddit.com/message/compose/?to=AutoModerator&subject=anxiety&message=schedule) to have AutoModerator re-load the schedule from here
---
first: "July 19, 2016 6:00 AM -07"
repeat: 12 days
title: "This is for January"
text: |
This is the body part
@binarybrat
binarybrat / youtubespamtracking.py
Created June 4, 2016 14:48
Testing/Playing with portion of aperson's modbot
class YoutubeSpam(Filter):
def __init__(self, reddit, youtube):
Filter.__init__(self)
self.tag = "[Youtube Spam]"
self.reddit = reddit
self.y = youtube
def _isVideo(self, submission):
'''Returns video author name if this is a video'''
if submission.domain in ('m.youtube.com', 'youtube.com', 'youtu.be'):
import praw
import time
import sqlite3
import datetime
import traceback
'''USER CONFIGURATION'''
APP_ID = ""
APP_SECRET = "-Y"
@binarybrat
binarybrat / 0_reuse_code.js
Last active September 12, 2015 07:41
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console