Skip to content

Instantly share code, notes, and snippets.

View bsmirnov's full-sized avatar

Boris Smirnov bsmirnov

View GitHub Profile
@bsmirnov
bsmirnov / Handoff.md
Created February 21, 2025 13:58
Handoff checks and details

Drupal 10 Project Handoff Checklist

Code Quality & Standards

  • Clean codebase
    • Remove debug statements
    • Remove commented code
    • Remove unused modules/themes/functions
  • Code formatting meets Drupal standards (drupalcs passing)
  • JavaScript/TypeScript code follows standards (eslint passing)
  • Naming conventions are meaningful and consistent
@bsmirnov
bsmirnov / Problem Statement.md
Created February 20, 2025 15:05
Form Tracking

Problem Statement A Drupal website includes a webform tool that allows users (likely healthcare professionals) to perform financial calculations for kidney transplant programs. The website owners need to track user engagement with minimal personal data collection. Key Requirements:

Track when a user selects a provider/institution from the dropdown (first form field) Record which calculation tools the user shows interest in:

Living donation cost benefits Kidney paired exchange cost benefits Staff cost analysis

We Are a Family – Not Roommates: Our Moment of Truth

[Begin calmly, making eye contact with each family member]

I've gathered all of us here today because we stand at a crossroads in our family's journey. This isn't about assigning blame. This isn't about creating more rules. This is about recognizing a fundamental truth: we are a family, not roommates.

What Is vs. What Could Be

Today, this is our reality:

# basic pfctl control
# ==
# Related: http://www.OpenBSD.org
# Last update: Tue Dec 28, 2004
# ==
# Note:
# this document is only provided as a basic overview
# for some common pfctl commands and is by no means
# a replacement for the pfctl and pf manual pages.
@bsmirnov
bsmirnov / voucherator.py
Created February 6, 2017 14:18 — forked from gholms/buttond.py
Unifi wireless voucher generator
#!/usr/bin/python -tt
# Copyright 2017 Garrett Holmstrom
#
# This program is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by the
# Free Software Foundation; either version 3 of the License or (at your
# option) any later version accepted by the Santa Barbara Hackerspace (or
# its successor approved by the Santa Barbara Hackerspace), which shall
# act as a proxy as defined in Section 14 of version 3 of the license.
@bsmirnov
bsmirnov / voucherator.py
Created February 6, 2017 14:18 — forked from gholms/buttond.py
Unifi wireless voucher generator
#!/usr/bin/python -tt
# Copyright 2017 Garrett Holmstrom
#
# This program is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by the
# Free Software Foundation; either version 3 of the License or (at your
# option) any later version accepted by the Santa Barbara Hackerspace (or
# its successor approved by the Santa Barbara Hackerspace), which shall
# act as a proxy as defined in Section 14 of version 3 of the license.
@bsmirnov
bsmirnov / what-to-wear.js
Created January 15, 2016 02:34 — forked from monkbroc/what-to-wear.js
What to wear
function forecastUrl(apiKey, location) {
var apiUrl = "https://api.forecast.io/forecast";
var excludeFields = "exclude=minutely,hourly";
return apiUrl + "/" + apiKey + "/" + location + "?" + excludeFields;
}
function getForecast(url) {
var got = require("got");
return got(url)
.then(function (response) {
@bsmirnov
bsmirnov / list.md
Last active August 29, 2015 14:27

Remaining issues NJCORE

  • Search page Uploaded By missing user name for anonymous.
  • Uploaded by on node resource says anonymous when user is anonymous.
  • Dashboard can be seen by anonymous, what is the expected behavior
  • Anion / dashboard upload resource 404
  • Add resource button 404
  • State Standards links to resources
  • Toolkit: Professional Development is cutoff. CSS ?
  • Footer : Standards links to standards/statestand
@bsmirnov
bsmirnov / gist:0b32ca045d35046b49bc
Last active August 29, 2015 14:19
Content Lock

#Issue Symptoms:

When on node add/edit page. When uploading images only one works and we get javascript error relating to jQuery function:

	(anonymous function) (content_lock_init.js, line 30)```

#Issue Analysis:

It seems the issue is related to how we are handling header/footer js and alternate versions of jQuery mapped to $ and jQuery. Because the jQuery plugins are mapped to $ and jQuery variable separately by Drupal and BH versions of jquery and javascript using the wrong($/jQuery) one will return undefined for some functions.