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
{ | |
"version": "0.2.0", | |
"configurations": [ | |
{ | |
"name": "Deno", | |
"type": "node", | |
"request": "launch", | |
"cwd": "${workspaceFolder}", | |
"runtimeExecutable": "deno", | |
"runtimeArgs": ["run", "--inspect-brk", "-A", "${fileBasename}"], |
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
java -Xmx4096M -Xms4096M -jar server.jar |
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 trimQuotes(str: string): string { | |
str = str.trim(); | |
const arr = Array.from(str); | |
const quotationMark = '"'; | |
const first = arr.findIndex(char => char !== quotationMark); | |
const last = arr.reverse().findIndex(char => char !== quotationMark); | |
return (first === -1 && last === -1) ? '' : str.substring(first, str.length - last); | |
} |
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 { Appwrite } from 'appwrite'; | |
export type Document<T = any> = T & { | |
$id: string; | |
$collection: string; | |
$permissions: any; | |
}; | |
export type DocumentsList<T = any> = { | |
sum: 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
az group list --tag delete --query [].name -o tsv | xargs -otl az group delete --no-wait [-y ignores prompt] -n ${rg} |
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
function sleep(ms) { | |
return new Promise((resolve) => { | |
setTimeout(resolve, ms); | |
}); | |
} |
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 { GenericResource } from '@azure/arm-resources'; | |
import { AzExtTreeItem } from '@microsoft/vscode-azext-utils'; | |
import * as vscode from 'vscode'; | |
interface TreeNodeConfiguration { | |
readonly label: string; | |
readonly description?: string; | |
readonly icon?: vscode.ThemeIcon; | |
readonly contextValue?: string; | |
} |
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 { GenericResource } from "@azure/arm-resources"; | |
import { | |
AzExtParentTreeItem, | |
AzExtTreeItem, | |
IActionContext, | |
ISubscriptionContext, | |
TreeItemIconPath | |
} from "@microsoft/vscode-azext-utils"; | |
import * as vscode from "vscode"; |
OlderNewer