Skip to content

Instantly share code, notes, and snippets.

View bryarcole's full-sized avatar

Bryar Cole bryarcole

View GitHub Profile
@bryarcole
bryarcole / Centaur.js
Created February 16, 2019 22:48
Centaur excerise
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){
@bryarcole
bryarcole / victim.js
Last active February 16, 2019 21:30
Werewolf Excersise
class Victim {
constructor(name){
this.name = name;
this.alive = true;
}
}
module.exports = Victim;
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):
@bryarcole
bryarcole / simplebot.py
Created November 15, 2016 08:46 — forked from DW3B/simplebot.py
Super simple bot to get all hot posts from subreddits
#!/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)>'