- getting the list of debug sessions - https://github.com/microsoft/vscode/blob/main/src/vs/workbench/contrib/debug/common/debug.ts#L1167
- the function that's called when existing disconnect commands are called - https://github.com/microsoft/vscode/blob/8e7d6f87e7b7860c79bf23d205f3e83b597a1629/src/vs/workbench/contrib/debug/browser/debugCommands.ts#L600
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@mixin _scrollerThumb($size, $color) { | |
&::-webkit-scrollbar-thumb { | |
border: ($size / 3) var(--border-style) transparent; | |
border-radius: var(--border-radius-small); | |
background-color: $color; | |
background-clip: content-box; | |
-webkit-background-clip: content-box; | |
} | |
&::-webkit-scrollbar-thumb:hover { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export function setAbortableTimeout( | |
callback: (...args: any[]) => void, | |
delayInMilliseconds: number, | |
signal: AbortSignal, | |
...args: any[] | |
) { | |
if (!signal) { | |
return setTimeout(callback, delayInMilliseconds, ...args); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
type VariadicTupleOfVariadicTuples = readonly [...(readonly [...(readonly unknown[])])]; | |
type ProductResult<T extends VariadicTupleOfVariadicTuples> = { | |
// @ts-expect-error should be good | |
[K in keyof T]: T[K][number]; | |
}; | |
function product<T extends VariadicTupleOfVariadicTuples>(arrays: T): ProductResult<T> { | |
return arrays.reduce( |
It should be a tool that's used by developers to help adopt tooling.
When adopting something new, or experimenting with a new tool, it is important to keep track of the experiences, good or bad, of using the tool and the consquences of it.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name Yad2 Fixes | |
// @namespace http://tampermonkey.net/ | |
// @version 0.1 | |
// @description try to take over the world! | |
// @author You | |
// @match https://www.yad2.co.il/* | |
// @icon https://www.google.com/s2/favicons?sz=64&domain=co.il | |
// @grant none | |
// ==/UserScript== |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* @type {import('@commitlint/types').UserConfig} | |
*/ | |
module.exports = { | |
extends: ['@commitlint/config-conventional', '@commitlint/config-nx-scopes'], | |
rules: { | |
// NOTE: uncomment this if you want to alter the scopes | |
// 'scope-enum': async (ctx) => { | |
// const projects = | |
// require('@commitlint/config-nx-scopes').utils.getProjects(ctx); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* eslint-disable @typescript-eslint/no-explicit-any */ | |
import { getSchemaPath, OpenAPIObject } from '@nestjs/swagger'; | |
import _set from 'lodash.set'; | |
import _get from 'lodash.get'; | |
function flattenObject(theObject: any): Record<string, any> { | |
const toReturn: any = {}; | |
for (const objectKey in theObject) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
declare namespace Cypress { | |
interface Chainable { | |
tid: Cypress.Chainable['get']; | |
} | |
} | |
function attributeSelector(key: string, value: string) { | |
return `[${key}=${value}]`; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const smallArray: string[] = []; // initial value IDK? | |
// unless you need to update the array itself, you can leave with the set. | |
// If you need to update the array, you can do that close to actions on the set. | |
const smallSet = new Set<string>(smallArray); | |
addEventListener('new-array-to-compare', (bigArray: string[]) => { | |
for (const value of bigArray) { | |
if (smallSet.delete(value)) { | |
// value was in smallSet and was deleted |
NewerOlder