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
| def main(): | |
| print("Input the folowing data for the donor:") | |
| donors = list() # 'columns represent name, address, contact' | |
| # get information for three donors | |
| for i in range(3): | |
| # ask for donor information and store in temporary variables | |
| first_name = input('First name: ') | |
| address = input('Address: ') |
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
| from discord.ext import commands | |
| import apraw | |
| # instatiate a `Bot` instance | |
| # this is using the Discord.py library | |
| # source can be found here: https://github.com/Rapptz/discord.py | |
| bot = commands.Bot(COMMAND_PREFIX, description=DESCRIPTION) | |
| # instantiate a `Reddit` instance | |
| # you can also supply a key to an entry within a praw.ini |
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
| public static ArrayList<File> getSubFolders(File folder) { | |
| File[] dirs = {folder}; | |
| ArrayList<File> directories = new ArrayList<>(Arrays.asList(dirs)); | |
| File[] fs = {folder}; | |
| ArrayList<File> folders = new ArrayList<>(Arrays.asList(fs)); | |
| while (folders.size() > 0){ | |
| ArrayList<File> remove = new ArrayList<>(); | |
| ArrayList<File> add = new ArrayList<>(); |
NewerOlder