class Pizza {
constructor(ingredients) {
this.ingredients = ingredients;
}
// is this thing in the pizza a topping?
isTopping(topping){
let newPizza = new Pizza(this.ingredients);
let index = newPizza.ingredients.indexOf(topping);
if (index === -1)
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
async def cmd_weather(self, channel, author): | |
import json | |
from array import array | |
import requests | |
from collections import OrderedDict | |
from pprint import pprint | |
api_key = "&APPID=507e30d896f751513350c41899382d89" | |
city_name_url = "http://api.openweathermap.org/data/2.5/weather?q=" | |
units = "&units=metric" | |
global general_info |
NewerOlder