This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* | |
| Credit: Peter Bartholemew | |
| https://www.linkedin.com/in/peterbartholomew/ | |
| https://techcommunity.microsoft.com/t5/user/viewprofilepage/user-id/214174#profile | |
| --- | |
| BMAPλ | |
| Recursively bisects an array and applies a function to the leaf nodes. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* | |
| feidmath v0.1.0 - MATH FUNCTIONS BY FIAKO ENGINEERING | |
| OFFICIAL GIST (feidmath v0.1.x): | |
| https://gist.github.com/taruma/8b0978227dffbee50c3a9d56e31d34f3 | |
| REPOSITORY: | |
| https://github.com/fiakoenjiniring/feidlambda | |
| CONTRIBUTOR: @taruma, @iingLK | |
| TESTED: Microsoft Excel 365 v2304 | |
| */ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* | |
| feidlambda v0.4.0 - LOGIC / UTILITIES FUNCTIONS BY FIAKO ENGINEERING | |
| OFFICIAL GIST (feidlambda v0.4.x): | |
| https://gist.github.com/taruma/b4df638ecb7af48ab63691951481d6b2 | |
| REPOSITORY: | |
| https://github.com/fiakoenjiniring/feidlambda | |
| CONTRIBUTOR: @taruma, @iingLK | |
| TESTED: Microsoft Excel 365 v2304 | |
| */ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* | |
| array is a column of stuff to which we want to apply element function | |
| row_function is some function that produces an array with a fixed number of columns | |
| the column count produced by row_function must be identical regardless of input | |
| stack_function is one of V or H | |
| If you're unsure how these work or why we would use them, please review these videos: | |
| https://youtu.be/04jOeiMypXw | |
| https://youtu.be/wEBLT9QfQRw |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* Module Contains 5g Compliant functions that deal with dates */ | |
| /* FUNCTION NAME: Aboutλ | |
| DESCRIPTION:*//**Displays the URL to this module's Gist which includes documentation*/ | |
| /* REVISIONS: Date Developer Description | |
| Mar 17 2023 Craig Hatmaker Original Development | |
| Mar 22 2023 Craig Hatmaker Added About | |
| Apr 06 2023 Craig Hatmaker Added Help to LAMBDAs | |
| Aug 28 2023 Craig Hatmaker Conformed to new template | |
| Jan 02 2024 Craig Hatmaker See CountDOWλ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| cpreg1 = LAMBDA(temp, press, | |
| LET( | |
| tau, 1386 / temp, | |
| pi, 0.1 * press / 16.53, | |
| -0.001 * rgas_water * tau ^ 2 * gammatautaureg1(tau, pi) | |
| ) | |
| ); | |
| cpreg2 = LAMBDA(temp, press, | |
| LET( |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* | |
| Append two ranges horizontally. | |
| Inputs: | |
| - range1: the first range | |
| - range2: the second range | |
| - default: the value entered into missing rows. | |
| Return: The merged ranges, with empty rows filled with the default value. Missing | |
| value within either of the two ranges filled with zeros (0). The number of rows |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import csv | |
| from django.http import HttpResponse | |
| def export_as_csv_action(description="Export selected objects as CSV file", fields=None, exclude=None, header=True): | |
| """ | |
| This function returns an export csv action | |
| 'fields' and 'exclude' work like in django ModelForm | |
| 'header' is whether or not to output the column names as the first row | |
| """ | |
| def export_as_csv(modeladmin, request, queryset): |