Skip to content

Instantly share code, notes, and snippets.

View amalitsky's full-sized avatar
⛰️
Climb the mountain

Alexander Malitsky amalitsky

⛰️
Climb the mountain
View GitHub Profile
@amalitsky
amalitsky / campground-checklist.md
Last active July 5, 2023 18:49
Campground Checklist

Campground Checklist

Living Quarters

  • tent
  • sleeping bag
  • mattress
  • table light
  • small hammer
  • chairs
  • ear plugs
@amalitsky
amalitsky / track-day-checklist.md
Last active April 6, 2024 05:59
Track day checklist

Track day checklist

Preparation

  • check oil level
  • bleed brakes
  • track tires on
  • track brake pads on

Driver Gear

  • helmet
@amalitsky
amalitsky / stylelint.config.js
Created January 13, 2019 06:35
Extensive Stylelint config file for LESS syntax based on config-recommended with rules and declarations ordering
const orderedPropertyHash = require('css-property-sort-order-smacss');
/** @type {string[]} List of CSS properties */
const orderedPropertyList = [];
Object.values(orderedPropertyHash).forEach(listOrListOfLists => {
listOrListOfLists.forEach(propertyOrList => {
if (Array.isArray(propertyOrList)) {
orderedPropertyList.push(...propertyOrList);
} else {
@amalitsky
amalitsky / angularjs-deps-list-runtime.js
Created November 2, 2018 13:17
Returns AngularJS dependencies (injectables) list grouped by AngularJS app module. Run this script from console in Chrome.
(function angularJsDepsAnalyzer(angular) {
'use strict';
//console.time('total execution time');
function naturalSort(a = '', b = '') {
return `${a}`.localeCompare(`${b}`, undefined, {numeric: true});
}
const modules = [