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
/*! bulma.io v0.9.3 | MIT License | github.com/jgthms/bulma */ | |
/* Bulma Utilities */ | |
.button, .input, .textarea, .select select, .file-cta, | |
.file-name, .pagination-previous, | |
.pagination-next, | |
.pagination-link, | |
.pagination-ellipsis { | |
-moz-appearance: none; | |
-webkit-appearance: none; | |
align-items: center; |
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
{ | |
"$schema": "https://raw.githubusercontent.com/Septh/tmlanguage/master/tmLanguage.schema.json", | |
"name": "Embedded Javascript", | |
"scopeName": "text.html.ejs", | |
"injectionSelector": "L:text.html", | |
"injections": { | |
"text.html.ejs - (meta.embedded.block.ejs | meta.embedded.line.ejs | meta.tag | comment), L:meta.tag, L:source.js.embedded.html": { | |
"patterns": [ | |
{ | |
"begin": "(^\\s*)(?=<%+#(?![^%]*%>))", |
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
{ | |
"customizeUI.font.monospace": "Fantasque Sans Mono", | |
// "customizeUI.font.regular": "Input Sans Compressed", | |
"customizeUI.font.regular": "SF Pro Display", | |
"customizeUI.fontSizeMap": { | |
"13px": "12px" | |
// "monospace": "12px" | |
}, | |
"customizeUI.stylesheet": { | |
// ".monaco-icon-label.italic>.monaco-icon-label-container>.monaco-icon-name-container>.label-name": "font-weight: lighter", |
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
# Usage: yarn list --json | jq -r 'include "yarn-list-flat"; yarnListFlat' | |
def yarnListFlat: | |
select(.type = "tree") | |
|.data.trees[] | |
|( | |
.name, | |
(.children[]? | ( | |
.name, | |
(.children[]? | ( | |
.name, |
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
document.querySelector('svg').querySelectorAll('a').forEach(function (a) { | |
var u = new URL(a.href.baseVal, document.location.href); | |
u.protocol = 'vscode:'; | |
u.pathname = u.pathname.replace(/^\/*/, '//file/'); | |
a.href.baseVal = u.href; | |
}); |
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
/* ==UserStyle== | |
@name Gitlab Dark Operations Dashboard Improvements | |
@namespace github.com/openstyles/stylus | |
@version 1.0.0 | |
@description Show more cards in the dashboard! Fix some styling! | |
@author Emily Marigold Klassen <github.com/forivall> | |
==/UserStyle== */ | |
@-moz-document domain('custom.domain'), | |
domain('invent.kde.org'), |
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 ValueOf<T> = T[keyof T]; | |
export const literalToEnum = <Enum extends Record<string, string | number>>( | |
// eslint-disable-next-line @typescript-eslint/no-unused-vars | |
enumButJustForTyping: Enum | |
) => <Candidate extends EnumLiteralType<Enum>>(v: Candidate) => | |
(v as string) as LiteralToEnum<Enum, Candidate>; | |
export type LiteralToEnum< | |
Enum extends Record<string, string | number>, |
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
import {UnionToIntersection} from 'ts-essentials'; | |
/** | |
* Turns a union like `{ a: number } | { b: string }` into `{ a: number, b?: | |
* never } | { b: string, a?: never } | |
*/ | |
type UnionKeys<T> = T extends never ? never : keyof T; | |
export type UnionExpand<T> = ValueOf<UnionExpandInner<T, UnionKeys<T>>>; | |
type UnionExpandInner<T, Keys extends PropertyKey> = { | |
[K in Keys]: T extends { [_ in K]: any } | |
? T & { [_ in Exclude<Keys, keyof T>]?: never } |
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
import type { UnionToIntersection } from 'ts-essentials'; | |
export type UnionToBuildable<T> = { | |
-readonly [K in Extract<keyof UnionToIntersection<T>, keyof T>]: T[K]; | |
} & | |
{ | |
-readonly [K in Exclude< | |
keyof UnionToIntersection<T>, | |
keyof T | |
>]?: T extends { [_ in K]: infer U } ? U : never; |