Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
const stocks = [ | |
'A - Agilent Technologies', | |
'AA - Alcoa', | |
'AAL - American Airlines', | |
'AAP - Advance Auto Parts', | |
'AAPL - Apple', | |
'AAXJ - MSCI All Country Asia ex Japan', | |
'ABBV - AbbVie', | |
'ABC - AmerisourceBergen', | |
'ABCL - AbCellera Biologics', |
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
# My second calculator | |
print('Calculator loading... please wait') | |
add = {i:{j:i+j for j in range(1000)} for i in range(1000)} | |
sub = {i:{j:i-j for j in range(1000)} for i in range(1000)} | |
mult = {i:{j:i*j for j in range(1000)} for i in range(1000)} | |
div = {i:{j:i/j for j in range(1,1000)} for i in range(1000)} | |
print(''' | |
Welcome to my calculator! | |
Please make a selection |
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 os | |
import random | |
import logging | |
import pygame | |
from discord.ext import commands | |
files = ['./claps/'+f for f in os.listdir('./claps')] | |
pygame.mixer.init() | |
pygame.init() |