Skip to content

Instantly share code, notes, and snippets.

@balsama
balsama / gist:293b93a250ecf912fb83e81e0bec6e6d
Created July 10, 2026 15:51
Triaged Canvas issues - Q2 2026
Apr 13 https://www.drupal.org/project/canvas/issues/3583746#comment-16547993
Apr 13 https://www.drupal.org/project/canvas/issues/3583848#comment-16548197
Apr 16 https://www.drupal.org/project/canvas/issues/3581474#comment-16551255
Apr 16 https://www.drupal.org/project/canvas/issues/3581581#comment-16551268
Apr 16 https://www.drupal.org/project/canvas/issues/3581110#comment-16551288
Apr 17 https://www.drupal.org/project/canvas/issues/3581829#comment-16553373
Apr 17 https://www.drupal.org/project/canvas/issues/3561270#comment-16553414
Apr 17 https://www.drupal.org/project/canvas/issues/3569248#comment-16553419
Apr 17 https://www.drupal.org/project/canvas/issues/3585135#comment-16554510
Apr 17 https://www.drupal.org/project/canvas/issues/3576124#comment-16554586
@balsama
balsama / gist:710148486517a2ef506f3438d2d85cc7
Created July 10, 2026 15:50
Tech debt-tagged issues - Q2 2025
Apr 9 https://www.drupal.org/project/canvas/issues/3583494
Apr 10 https://www.drupal.org/project/canvas/issues/3584143
Apr 14 https://www.drupal.org/project/canvas/issues/3580247
Apr 16 https://www.drupal.org/project/canvas/issues/3585319 (penyaskito)
Apr 17 https://www.drupal.org/project/canvas/issues/3585192 (penyaskito)
Apr 23 https://www.drupal.org/project/canvas/issues/3578635 (bnjmnm)
Apr 24 https://www.drupal.org/project/canvas/issues/3586535
Apr 27 https://www.drupal.org/project/canvas/issues/3586216
Apr 28 https://www.drupal.org/project/canvas/issues/3572553#comment-16568178
May 6 https://www.drupal.org/project/canvas/issues/3587539
@balsama
balsama / gist:cbac0c24440a98595f9cd015d861bc61
Created July 10, 2026 15:47
Automated review feedback list - Q2 2026
Apr 13 https://www.drupal.org/project/canvas/issues/3582966
Apr 14 https://www.drupal.org/project/canvas/issues/3580247 (Adam H)
Apr 15 https://www.drupal.org/project/canvas/issues/3584511
Apr 16 https://www.drupal.org/project/canvas/issues/3585319 (penyaskito)
Apr 17 https://www.drupal.org/project/canvas/issues/3585192 (penyaskito)
Apr 21 https://www.drupal.org/project/canvas/issues/3585788
Apr 22 https://www.drupal.org/project/canvas/issues/3586128 (penyaskito)
Apr 29 https://www.drupal.org/project/canvas/issues/3586655
Apr 29 https://www.drupal.org/project/canvas/issues/3587543
Apr 30 https://www.drupal.org/project/canvas/issues/3529128
@balsama
balsama / gist:41dbbc146bd60402bdde9881c5c8a3a8
Created January 29, 2025 03:09
CSV writer helper method
/**
* Writes an array of arrays to a CSV file.
*
* @param string[] $headers
* The names of the table columns. Pass an empty array if you don't want any headers (e.g. if you're appending to
* an existing file.
* @param array[] $data
* Data to write. Each top-level array should contain an array the same length as the $header array.
* @param string $filename
* @param bool $append
Show a list of all years from 1900 to 2100 in which december 1st falls on a sunday
ChatGPT said:
ChatGPT
Here is a list of all the years from 1900 to 2100 in which December 1st falls on a Sunday:
csv
Copy code
year
1901
1904
@balsama
balsama / composer.json
Created October 13, 2023 17:27
Example `acquia_cms_community` `composer.json` generated by acms:build
{
"name": "acquia/drupal-recommended-project",
"description": "Acquia-compatible Drupal application based on the Drupal Recommended Project",
"license": "GPL-2.0-or-later",
"authors": [
{
"name": "Acquia Engineering",
"homepage": "https://www.acquia.com",
"role": "Maintainer"
}
@balsama
balsama / boston311-trash-by-zip-and-year.json
Created September 11, 2023 00:09
Boston 311 reports about Trash by zip code by year
{
"2023": {
"02134": {
"year": "2023",
"zip": "02134",
"count": "433",
"zip_population": 18437,
"zip_area": 854.4388723219971,
"per_capita": 0.023485382654444865,
"per_area": 0.5067653333974522,
@balsama
balsama / uhub-articles-per-day.csv
Created August 10, 2023 03:11
Number of articles published on universalhub.com per day
date count
2020-11-28 3
2020-11-29 4
2020-11-30 6
2020-12-01 10
2020-12-02 9
2020-12-03 11
2020-12-04 5
2020-12-05 8
2020-12-06 6
@balsama
balsama / rangeConverter.php
Created June 9, 2022 14:11
Function to convert a value in a range to an equivalent value in a different range.
<?php
function rangeConverter(
int $input,
int $inputRangeMin,
int $inputRangeMax,
int $outputRangeMin = 0,
int $outputRangeMax = 100
) :int
{
@balsama
balsama / northEndWalkTimeToFruit.json
Created June 3, 2022 06:56
Walk time to nearest store that sells fruit for every address in the north end
{
"2 Atlantic Ave 02110": {
"timeToClosestPlace": 151,
"closestPlace": "golden goose",
"latlong": "42.364078674443,-71.050740588314",
"parcelId": "0303030010"
},
"206-214 Atlantic Ave 02110": {
"timeToClosestPlace": 426,
"closestPlace": "golden goose",