Skip to content

Instantly share code, notes, and snippets.

View sergous's full-sized avatar
⚒️
building new startup!

Sergei Smirnov sergous

⚒️
building new startup!
View GitHub Profile
@sergous
sergous / zustandStoreLogger.ts
Last active May 24, 2024 02:21
Zustand Redux-Like logger middleware
// Zustand Redux-Like logger middleware
//
// Based on https://github.com/itsramiel/zustand-logger-middleware and
// https://github.com/pmndrs/zustand/discussions/788#discussioncomment-7663573
//
// Require all store actions to be scoped in 'actions':
//
// const uiStoreCreator = (set, get) => {
// return {
// uiState: get()?.uiState || defaultUiState,
@sergous
sergous / github-readme-stats.md
Last active December 3, 2023 09:29
GitHub Readme Stats

Harlok's WakaTime stats

@sergous
sergous / pivotal_tracker_bookmarklet.md
Last active November 30, 2023 06:49
PivotalTracker Bookmarklet

Based on https://makandracards.com/makandra/465824-bookmarklet-to-generate-a-pivotal-tracker-story-from-zammad-ticket/read

This is a bookmarklet you can add to Chrome or Firefox which will allow you to create a story in Pivotal Tracker from a any URL. This might come in handy when creating stories.

But first you will have to set two variables in the script below:

pt_project_id: the ID of the Pivotal Tracker Project you want to add stories to. This can be found as part of the URL of the project (https://www.pivotaltracker.com/n/projects/<pt_project_id>)

pt_token: the Pivotal Tracker token used for authentication. Can be found in your PT profile