I hereby claim:
- I am rootisenabled on github.
- I am oleksiv (https://keybase.io/oleksiv) on keybase.
- I have a public key ASBu9dXVmm1BueJ8CXXYmoNbYoLEF-bAGIFfXCHXTZ-ccQo
To claim this, I am signing this object:
from cloud.mountingsurface.models import MountingSurface | |
from cloud.businessunits.models import BusinessUnit | |
bu_copy_from = BusinessUnit.objects.get(slug='otovo-nl') | |
bu_copy_to = BusinessUnit.objects.get(slug='otovo-be') | |
ms = MountingSurface.get_valid_choices_by_business_unit(bu_copy_from) | |
for m in ms: | |
m.pk = None |
from cloud.inventory.models import BatteryModel, PanelModel, SmartMeterModel, EvChargerModel, InverterModel | |
from cloud.location.enums import Country | |
sm = SmartMeterModel.objects.filter(enabled_in_markets__contains=['de']) | |
bm = BatteryModel.objects.filter(enabled_in_markets__contains=['de']) | |
pm = PanelModel.objects.filter(enabled_in_markets__contains=['de']) | |
evm = EvChargerModel.objects.filter(enabled_in_markets__contains=['de']) | |
im = InverterModel.objects.filter(enabled_in_markets__contains=['de']) | |
I hereby claim:
To claim this, I am signing this object:
Picking the right architecture = Picking the right battles + Managing trade-offs
// array utils | |
// ================================================================================================= | |
const combine = (...arrays) => [].concat(...arrays); | |
const compact = arr => arr.filter(Boolean); | |
const contains = (() => Array.prototype.includes | |
? (arr, value) => arr.includes(value) | |
: (arr, value) => arr.some(el => el === value) |