This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Use Gists to store code you would like to remember later on | |
| console.log(window); // log the "window" object to the console |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import praw | |
| import time | |
| import sqlite3 | |
| import datetime | |
| import traceback | |
| '''USER CONFIGURATION''' | |
| APP_ID = "" | |
| APP_SECRET = "-Y" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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'): |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ##### 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /** | |
| * Retrieves all the rows in the active spreadsheet that contain data and logs the | |
| * values for each row. | |
| * For more information on using the Spreadsheet API, see | |
| * https://developers.google.com/apps-script/service_spreadsheet | |
| */ | |
| function readRows() { | |
| var sheet = SpreadsheetApp.getActiveSheet(); | |
| var rows = sheet.getDataRange(); | |
| var numRows = rows.getNumRows(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function calcEffec(input,numbers) { | |
| for (var i = 0; i<input.length; i++) | |
| { | |
| for (var j = 1; j<numbers[i]; j++) | |
| { | |
| input.push(input[i]); | |
| } | |
| } | |
| input.sort(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import praw | |
| import config #has my reddit oauth info stuff | |
| import string | |
| import json | |
| import traceback | |
| import sqlite3 | |
| MODLIST = {'10thTARDIS', 'maximumhel', 'Skangryph', 'girlietrex', 'ri0tnrrd', 'SmileyFace', 'Mumbah_', 'Luminous_Nox'} | |
| MAX = 1000 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| .app a { | |
| color: #5294E2 | |
| } | |
| .titlebar { | |
| height: 5px | |
| } | |
| .guilds-wrapper { | |
| background: #2a2f38 | |
| } | |
| .guilds-wrapper .guilds .guild+.guild { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/python | |
| import praw | |
| import time | |
| import sys | |
| import random | |
| #description of your bot | |
| r = praw.Reddit(user_agent='') |
OlderNewer