home.social

#reduce — Public Fediverse posts

Live and recent posts from across the Fediverse tagged #reduce, aggregated by home.social.

  1. Разбираем map, filter, reduce, any, all, zip и enumerate в Python

    Все мы начинали писать на Python примерно одинаково: создавали пустой список, запускали цикл for, проверяли условие через if и делали .append(). Это надежно, предсказуемо, но по мере роста кодовой базы такие конструкции начинают утомлять — мы тратим 4-5 строк на банальную трансформацию данных, которую можно уложить в одну лаконичную строку. В этой статье мы подробно разберем встроенный инструментарий Python для работы с итерируемыми объектами: map, filter, reduce, any, all, zip и enumerate.

    habr.com/ru/articles/1036696/

    #python #map #filter #reduce #функциональное_программирование #генераторы_списков #ленивые_вычисления #рефакторинг_кода

  2. Here's yet another tech repurposing/recycling post! :neobot_box:

    This USB SD card reader was DIY'd from a component I found in a trashed laptop someone had discarded and left on the side of a bin!

    The laptop's SD reader daughterboard was really just an USB device connected to one of the motherboard's internal USB ports via a ribbon cable. So, after figuring out which pin is which, desoldering that ribbon cable and replacing it with a regular USB one, as one would expect, effectively turned it into an external SD card reader

    At that point all I had to do was to find a case for it: I don't have a 3D printer, but trimming the board slightly and removing the plastic stands made it fit perfectly into this SD card holder, which does the job and is rather small all things considered!

    (And yes, the irony of using an SD card holder as its case isn't lost on me! :neobot_flop_blep: )

    #tech #technology #usb #repair #reduce #reuse #repurpose #recycle #sd #modding

  3. Here's yet another tech repurposing/recycling post! :neobot_box:

    This USB SD card reader was DIY'd from a component I found in a trashed laptop someone had discarded and left on the side of a bin!

    The laptop's SD reader daughterboard was really just an USB device connected to one of the motherboard's internal USB ports via a ribbon cable. So, after figuring out which pin is which, desoldering that ribbon cable and replacing it with a regular USB one, as one would expect, effectively turned it into an external SD card reader

    At that point all I had to do was to find a case for it: I don't have a 3D printer, but trimming the board slightly and removing the plastic stands made it fit perfectly into this SD card holder, which does the job and is rather small all things considered!

    (And yes, the irony of using an SD card holder as its case isn't lost on me! :neobot_flop_blep: )

    #tech #technology #usb #repair #reduce #reuse #repurpose #recycle #sd #modding

  4. Here's yet another tech repurposing/recycling post! :neobot_box:

    This USB SD card reader was DIY'd from a component I found in a trashed laptop someone had discarded and left on the side of a bin!

    The laptop's SD reader daughterboard was really just an USB device connected to one of the motherboard's internal USB ports via a ribbon cable. So, after figuring out which pin is which, desoldering that ribbon cable and replacing it with a regular USB one, as one would expect, effectively turned it into an external SD card reader

    At that point all I had to do was to find a case for it: I don't have a 3D printer, but trimming the board slightly and removing the plastic stands made it fit perfectly into this SD card holder, which does the job and is rather small all things considered!

    (And yes, the irony of using an SD card holder as its case isn't lost on me! :neobot_flop_blep: )

    #tech #technology #usb #repair #reduce #reuse #repurpose #recycle #sd #modding

  5. Here's yet another tech repurposing/recycling post! :neobot_box:

    This USB SD card reader was DIY'd from a component I found in a trashed laptop someone had discarded and left on the side of a bin!

    The laptop's SD reader daughterboard was really just an USB device connected to one of the motherboard's internal USB ports via a ribbon cable. So, after figuring out which pin is which, desoldering that ribbon cable and replacing it with a regular USB one, as one would expect, effectively turned it into an external SD card reader

    At that point all I had to do was to find a case for it: I don't have a 3D printer, but trimming the board slightly and removing the plastic stands made it fit perfectly into this SD card holder, which does the job and is rather small all things considered!

    (And yes, the irony of using an SD card holder as its case isn't lost on me! :neobot_flop_blep: )

    #tech #technology #usb #repair #reduce #reuse #repurpose #recycle #sd #modding

  6. Here's yet another tech repurposing/recycling post! :neobot_box:

    This USB SD card reader was DIY'd from a component I found in a trashed laptop someone had discarded and left on the side of a bin!

    The laptop's SD reader daughterboard was really just an USB device connected to one of the motherboard's internal USB ports via a ribbon cable. So, after figuring out which pin is which, desoldering that ribbon cable and replacing it with a regular USB one, as one would expect, effectively turned it into an external SD card reader

    At that point all I had to do was to find a case for it: I don't have a 3D printer, but trimming the board slightly and removing the plastic stands made it fit perfectly into this SD card holder, which does the job and is rather small all things considered!

    (And yes, the irony of using an SD card holder as its case isn't lost on me! :neobot_flop_blep: )

    #tech #technology #usb #repair #reduce #reuse #repurpose #recycle #sd #modding

  7. Pakistan concedes vulnerability to global shocks, lacks “strategic oil reserves like India” to buffer soaring fuel prices

    Islamabad [Pakistan], May 1 (ANI): Pakistan has conceded its severe vulnerability to the current global oil shock, admitting…
    #Economy #commercial #IMF #imfand #InternationalMonetaryFund #Islamabad #Malik #reduce #reducethe #reserves #thelevy #theminister
    europesays.com/2958592/

  8. Here at Fathom Publishing, we love our planet and educating on the many numbers of ways to protect it and keep it turning for us.

    🔗 Celebrate #EarthDay this April 22nd with us and inspire the younger generation to get involved with our #freeprintable #activitysheet: dlvr.it/TS8jBm

    #reduce #recycle #reuse

  9. Here at Fathom Publishing, we love our planet and educating on the many numbers of ways to protect it and keep it turning for us.

    🔗 Celebrate #EarthDay this April 22nd with us and inspire the younger generation to get involved with our #freeprintable #activitysheet: dlvr.it/TS8jBm

    #reduce #recycle #reuse

  10. Here at Fathom Publishing, we love our planet and educating on the many numbers of ways to protect it and keep it turning for us.

    🔗 Celebrate #EarthDay this April 22nd with us and inspire the younger generation to get involved with our #freeprintable #activitysheet: dlvr.it/TS8jBm

    #reduce #recycle #reuse

  11. Here at Fathom Publishing, we love our planet and educating on the many numbers of ways to protect it and keep it turning for us.

    🔗 Celebrate #EarthDay this April 22nd with us and inspire the younger generation to get involved with our #freeprintable #activitysheet: dlvr.it/TS8jBm

    #reduce #recycle #reuse

  12. Here at Fathom Publishing, we love our planet and educating on the many numbers of ways to protect it and keep it turning for us.

    🔗 Celebrate #EarthDay this April 22nd with us and inspire the younger generation to get involved with our #freeprintable #activitysheet: dlvr.it/TS8jBm

    #reduce #recycle #reuse

  13. europesays.com/ro/162541/ Inginerii Koenigsegg au patentat o metodă genială de a reduce vibraţiile în motoarele cu 3 cilindri şi a le asigura performanţe imense cu emisii Euro 7 | PiataAuto.md #3 #5 #Afaceri #arbori #Business #came #clindri #compresor #freevalve #geniala #koenigsegg #metoda #motoare #noua #patentat #reduce #RO #Română #Romania #Romanian #vibratii

  14. Man, having a roll-off dumpster on the driveway releases the “clear ALL the crap” pheromones or something.

    Remodel project spurs a garage clean up, crawl-space review, random bits-and-pieces-in-the attic clearance.

    Making significant headway.

    #cleanAllTheThings #reduce #dumpster #remodel

  15. Man, having a roll-off dumpster on the driveway releases the “clear ALL the crap” pheromones or something.

    Remodel project spurs a garage clean up, crawl-space review, random bits-and-pieces-in-the attic clearance.

    Making significant headway.

    #cleanAllTheThings #reduce #dumpster #remodel

  16. Man, having a roll-off dumpster on the driveway releases the “clear ALL the crap” pheromones or something.

    Remodel project spurs a garage clean up, crawl-space review, random bits-and-pieces-in-the attic clearance.

    Making significant headway.

    #cleanAllTheThings #reduce #dumpster #remodel

  17. Man, having a roll-off dumpster on the driveway releases the “clear ALL the crap” pheromones or something.

    Remodel project spurs a garage clean up, crawl-space review, random bits-and-pieces-in-the attic clearance.

    Making significant headway.

    #cleanAllTheThings #reduce #dumpster #remodel

  18. Man, having a roll-off dumpster on the driveway releases the “clear ALL the crap” pheromones or something.

    Remodel project spurs a garage clean up, crawl-space review, random bits-and-pieces-in-the attic clearance.

    Making significant headway.

    #cleanAllTheThings #reduce #dumpster #remodel

  19. europesays.com/es/504939/ Un nuevo medicamento anticoagulante reduce el riesgo de accidente cerebrovascular sin aumentar el riesgo de hemorragia #anticoagulante #ES #España #Health #medicamento #nuevo #reduce #riesgo #Salud #Spain