Skip to content

Instantly share code, notes, and snippets.

@ecool
ecool / .flake8
Created January 29, 2022 14:25
flake8 config
[flake8]
max-line-length = 80
select =
E # pep8 errors
F # pyflakes errors
W # pep8 warnings
B # flake8-bugbear warnings
ignore =
E201 # whitespace after '['
E202 # whitespace before ']'
@ecool
ecool / .editorconfig
Last active January 29, 2022 14:22
.editorconfig
root = true
[*]
indent_style = space
indent_size = 4
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true
@ecool
ecool / quickpick-input.ts
Last active March 25, 2021 20:13
QuickPick Multi-Select Custom Input
export async function quickPickTag(
tags: string[],
canSelectMany: boolean = false,
acceptInput: boolean = true): Promise<string[]> {
let options = tags.map(tag => ({ label: tag }));
return new Promise((resolve, _) => {
let quickPick = vscode.window.createQuickPick();
let placeholder = "Select a tag.";
import * as vscode from 'vscode';
export async function quickPickItem(items: string[]): Promise<string[]> {
const options = items.map(item => ({ label: item }));
return new Promise((resolve, _) => {
const quickPick = vscode.window.createQuickPick();
const placeholder = "Select a item.";
quickPick.placeholder = placeholder;
@ecool
ecool / quickpick-multi-select-custom-input.ts
Created January 8, 2021 19:25
QuickPick Multi-Select Custom Input Issue Example
export async function showMultiSelectInputBox(): Promise<string[]> {
const items = ["testing", "boop", "77708"];
const mappedItems = items.map((item) => ({ label: item }));
return new Promise((resolve, _) => {
const quickPick = window.createQuickPick();
quickPick.placeholder = "Select/Insert a selection.";
quickPick.items = mappedItems;
@ecool
ecool / myweechat
Last active November 3, 2022 17:38 — forked from pascalpoitras/config.md
My always up-to-date WeeChat configuration (weechat-dev)
# Encrypted password in sec.conf
/secure passphrase <pass>
/secure set zncpass <pass>
# Default setting for all network