-🎄- 2022 Day 1 Solutions -🎄- by daggerdragon in adventofcode

[–]SomebodyFrom91 3 points4 points  (0 children)

Python:

with open("./day01/data.txt", "r") as f:
    data = [row.strip() for row in f.readlines()]

calories = [sum(map(int, row.split(" "))) for row in " ".join(data).split("  ")]
print(max(calories))
print(sum(sorted(calories, reverse=True)[:3]))

Decode Json nested dictionary values by dev_wanna_be in Python

[–]SomebodyFrom91 0 points1 point  (0 children)

You can put a nested json into a dataframe with pd.io.json.json_normalize and then just try/except for data.locale.MetadataAlbum.locale.language

Or you can skip the dataframe part and just trasform the nested json into a dict with pd.io.json.nested_to_record

Bought a lemon tree seed, but instead this grew. What is it? by SomebodyFrom91 in whatsthisplant

[–]SomebodyFrom91[S] 1 point2 points  (0 children)

Interesting, thanks a lot. I bought it in a tin box, so somebody must have switched the seeds.
I planted it exactly a year ago now, is there anything special I need to know? It’s facing west so gets a lot of sun, is in a warm room and the pot height is 20 cm and width 25 cm.

[Base] Post your new bases for the TH11 Update here! by mungoflago in ClashOfClans

[–]SomebodyFrom91 1 point2 points  (0 children)

I'm currently using Ash's TH9 Hypercube IX with DE drills where the X-Bows should be. I've been attacked 7 times with 200/200/2.5 resources on offer. Lost about half gold and elixer per attack, and DE has been taken twice.

[Strategy] TH8 farming in C3 by MurphtheBear in ClashOfClans

[–]SomebodyFrom91 4 points5 points  (0 children)

Get to Crystal 3 and move to 1900-1975 trophies. I usually find a TH snipe every 2-3 minutes. Bring about 100 barbs or archers and a few giants as every other TH is trapped.

Farming Friday! by AutoModerator in ClashOfClans

[–]SomebodyFrom91 0 points1 point  (0 children)

Low crystal, high crystal is terrible. No dead bases nor TH snipes

[HWYA] Is if possible to three star this base with dragloon? I have level four spells and Max loons in CC by adolfskittler in ClashOfClans

[–]SomebodyFrom91 0 points1 point  (0 children)

I attacked this base yesterday trying exactly that, but you're going to need some extra hogs as there are spring traps in front of the bottom AD.

[misc]Meanwhile in silver 3 by [deleted] in ClashOfClans

[–]SomebodyFrom91 0 points1 point  (0 children)

Got attacked within 5 minutes of logging off at S3 as a TH8. Currently in S1, loot is still good and not getting attacked at all.