Skip to content

Instantly share code, notes, and snippets.

View e1uone's full-sized avatar

Dmitry e1uone

  • Moscow
  • 08:05 (UTC +03:00)
View GitHub Profile
@harithzainudin
harithzainudin / commit-msg-linter.js
Created August 5, 2023 12:15
Scripts for checking commit message that use with Husky. Read more here to implement this -->
/**
* This JavaScript function checks if a Git commit message follows a specific format and provides
* success or failure messages accordingly.
* @param buffer - The `buffer` parameter is a buffer object that contains the content of a file. In
* this code, it is used to read the content of the `.git/COMMIT_EDITMSG` file.
* @returns The code is returning the first line of the commit message from the `.git/COMMIT_EDITMSG`
* file.
*/
let supportsColor = { stdout: true };
const fs = require("fs");
@loilo
loilo / pass-slots.md
Last active August 16, 2024 07:34
Vue: Pass Slots through from Parent to Child Components

Vue: Pass Slots through from Parent to Child Components

The Situation

  • We've got some components A, B and C which provide different slots.
    const A = {
      template: `<div><slot name="a">Default A Content</slot></div>`
    }

const B = {

@BrynM
BrynM / README.md
Last active July 19, 2024 21:19
Steam Workshop Subscriptions Scraper

Steam Workshop Subscriptions Scraper

Description

This is just something I whipped up to dump a listing of my own subscriptions for a particular game. Unfortunately Vavle/Steam doesn't do such a thing natively and I had to get really creative for my list of several hundred items so I could share with a friend.

So I made this little monstrosity over an evening.

Use