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 Centaur { | |
| constructor(name, breed){ | |
| this.name = name; | |
| this.breed = breed; | |
| this.cranky = false; | |
| this.standing = true; | |
| this.count = 0; | |
| this.layingDown = false; | |
| } | |
| speak(message){ |
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 Victim { | |
| constructor(name){ | |
| this.name = name; | |
| this.alive = true; | |
| } | |
| } | |
| module.exports = Victim; |
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 hashlib | |
| import json | |
| from textwrap import dedent | |
| from typing import List, Any | |
| from uuid import uuid4 | |
| from time import time | |
| from flask import Flask, jsonify, request | |
| class BlockChain(object): |
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/python2.7 | |
| import praw, sqlite3 | |
| # This lets Reddit know the purpose of your bot. I use the following format, | |
| # but it really doesn't matter as long as you put some kind of info. | |
| USER_AGENT = '<YOUR BOTS NAME>. <BRIEF DESCRIPTION> by <YOUR USERNAME>' | |
| # This can be just one subreddit (e.g. 'all') or a list of subreddits | |
| # joined with a '+' (e.g. 'python+funny+pics') | |
| SUBREDDITS = '<TARGET SUBREDDIT(s)>' |