If untoasted toast your nuts in a dry frying pan before roughly chopping them.
Bring a pan of salted water to the boil while cutting your broccoli into medium-sized florets and cutting the stalk into 1/2 cm - 0.2" rounds.
Once your water has come to the boil, add the gnocchi and broccoli and cook for 2 minutes. Drain well and allow to steam dry for a couple of minutes which will allow them to caramelize during the next steps.
Melt 30 g of butter in your frying pan over a medium-high heat before adding 2 T of harissa (more to taste, which I recommend).
Let the harissa sizzle for a few seconds before adding the gnocchi and broccoli to the pan and spreading them out in an even layer, floret-side down where possible. This will allow the broccoli to really soak up the flavors. Once everything's spread out in an even layer, resist the urge to move your broccoli or gnocchi around for at least 2 minutes (no shaking the pan either), this will allow them to caramelize.
After 2 minutes give everything a stir, turn down the heat and cook for another 4-5 minutes, stirring occasionally.
Season to taste, divide between two plates and sprinkle over your nuts from step one.