Skip to content

Instantly share code, notes, and snippets.

View misspokeycat's full-sized avatar

Catherine D'Alfonso misspokeycat

  • Austin, Texas
View GitHub Profile
Map heroMap = new HashMap();
heroMap.put("hulk") = 0;
heroMap.put("bat") = 0;
heroMap.put("iron") = 0;
heroMap.put("flash") = 0;
heroMap.put("capt") = 0;
heroMap.put("super") = 0;
if (strength >= 6){
# To deploy this script to your box:
# Open PowerShell
# Paste the following into the shell and run it:
# iex ((New-Object System.Net.WebClient).DownloadString('https://gist.githubusercontent.com/pokemonmegaman/1e0f7ce4b36c02d143653e8c2a6cc282/raw/11bf0a34a18559096038c9d3bef6cefa9d549070/pokemap-deploy-windows.ps1'))
# Deployment script for Pokemon Go bot
# Installs python, node, python and node dependencies, and builds launch script.
# Must be ran as Admin.
# Download Python 2.7.12, install
def target_rares():
return ["Charizard",
"Blastoise",
"Venusaur",
"Ninetales",
"Golem",
"Snorlax",
"Dragonite",
"Omastar",
"Kabutops",
bool ProductInventory::removeProduct(string name, string locator){
//Get index of our product (linear search)
int i = 0;
do {
if (products[i].getName() == name && products[i].getLocator() == locator){
//we got it, now replace it
products[i] = products[productCount];
//and delete it
productCount--; //product count is what I am using in my file to track number of elements in array
//and say that we did it
Product firstProduct = new Product("Iphone", "22", 3, 199.99);
Product secondProduct = new Product("Android", "17", 9, 150.00);
//call the greaterThan() function of the first product with the second product as a param, to see if firstProduct > secondProduct
bool isItGreater = firstProduct.greaterThan(secondProduct);